本文整理汇总了PHP中RevSlider::getArrSlidersWithSlidesShort方法的典型用法代码示例。如果您正苦于以下问题:PHP RevSlider::getArrSlidersWithSlidesShort方法的具体用法?PHP RevSlider::getArrSlidersWithSlidesShort怎么用?PHP RevSlider::getArrSlidersWithSlidesShort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RevSlider
的用法示例。
在下文中一共展示了RevSlider::getArrSlidersWithSlidesShort方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getWildcardsSettings
/**
*
* get wildcards settings object
* $isInsidePost it means that it's used inside the post and not template page.
*/
public static function getWildcardsSettings(){
$settings = new UniteSettingsAdvancedRev();
//add youtube, excerpt and vimeo id
$slider = new RevSlider();
$arrOutput = array();
$arrOutput["default"] = "default";
$arrSlides = $slider->getArrSlidersWithSlidesShort(RevSlider::SLIDER_TYPE_TEMPLATE);
$arrOutput = $arrOutput + $arrSlides; //union arrays
$settings->addSelect("slide_template", $arrOutput, __("Choose Slide Template",REVSLIDER_TEXTDOMAIN),"default");
/*
$params = array("class"=>"textbox_small","description"=>"Overwrite the global excerpt words limit option for this post");
$settings->addTextBox("revslider_excerpt_limit", "", "Excerpt Words Limit",$params);
$params = array("description"=>"The youtube ID, example: 9bZkp7q19f0");
$settings->addTextBox("youtube_id", "", "Youtube ID", $params);
$params = array("description"=>"The youtube ID, example: 18554749");
$settings->addTextBox("vimeo_id", "", "Vimeo ID",$params);
*/
return($settings);
}
示例2: getWildcardsSettings
public static function getWildcardsSettings()
{
$settings = new UniteSettingsAdvancedRev();
$slider = new RevSlider();
$arrOutput = array();
$arrOutput["default"] = "default";
$arrSlides = $slider->getArrSlidersWithSlidesShort(RevSlider::SLIDER_TYPE_TEMPLATE);
$arrOutput = $arrOutput + $arrSlides;
$settings->addSelect("slide_template", $arrOutput, __("Choose Slide Template", REVSLIDER_TEXTDOMAIN), "default");
return $settings;
}
示例3: customPostFieldsOutput
/**
* custom output function
*/
public static function customPostFieldsOutput()
{
$meta = get_post_meta(get_the_ID(), 'slide_template', true);
if ($meta == '') {
$meta = 'default';
}
$slider = new RevSlider();
$arrOutput = array();
$arrOutput["default"] = "default";
$arrSlides = $slider->getArrSlidersWithSlidesShort(RevSlider::SLIDER_TYPE_TEMPLATE);
$arrOutput = $arrOutput + $arrSlides;
//union arrays
?>
<ul class="revslider_settings">
<li id="slide_template_row">
<div title="" class="setting_text" id="slide_template_text"><?php
_e('Choose Slide Template', 'revslider');
?>
</div>
<div class="setting_input">
<select name="slide_template" id="slide_template">
<?php
foreach ($arrOutput as $handle => $name) {
echo '<option ' . selected($handle, $meta) . ' value="' . $handle . '">' . $name . '</option>';
}
?>
</select>
</div>
<div class="clear"></div>
</li>
</ul>
<?php
}