当前位置: 首页>>代码示例>>PHP>>正文


PHP RevSlider::getArrSlidersWithSlidesShort方法代码示例

本文整理汇总了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);
		}
开发者ID:verbazend,项目名称:AWFA,代码行数:30,代码来源:revslider_operations.class.php

示例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;
 }
开发者ID:evgrishin,项目名称:se1614,代码行数:11,代码来源:revslider_operations.class.php

示例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 
    }
开发者ID:zruiz,项目名称:NG,代码行数:36,代码来源:revslider-admin.class.php


注:本文中的RevSlider::getArrSlidersWithSlidesShort方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。