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


PHP UniteFunctionsRev::getHTMLSelect方法代码示例

本文整理汇总了PHP中UniteFunctionsRev::getHTMLSelect方法的典型用法代码示例。如果您正苦于以下问题:PHP UniteFunctionsRev::getHTMLSelect方法的具体用法?PHP UniteFunctionsRev::getHTMLSelect怎么用?PHP UniteFunctionsRev::getHTMLSelect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UniteFunctionsRev的用法示例。


在下文中一共展示了UniteFunctionsRev::getHTMLSelect方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: form

 /**
  * 
  * the form
  */
 public function form($instance)
 {
     $slider = new RevSlider();
     $arrSliders = $slider->getArrSlidersShort();
     $sliderID = UniteFunctionsRev::getVal($instance, "rev_slider");
     if (empty($arrSliders)) {
         echo __("No sliders found, Please create a slider", tk_theme_name);
     } else {
         $field = "rev_slider";
         $fieldID = $this->get_field_id($field);
         $fieldName = $this->get_field_name($field);
         $select = UniteFunctionsRev::getHTMLSelect($arrSliders, $sliderID, 'name="' . $fieldName . '" id="' . $fieldID . '"', true);
     }
     echo "Choose slider: ";
     echo $select;
 }
开发者ID:rohichurch,项目名称:rohichurch-wp,代码行数:20,代码来源:revslider_widget.class.php

示例2: form

    /**
     * 
     * the form
     */
    public function form($instance)
    {
        $slider = new RevSlider();
        $arrSliders = $slider->getArrSlidersShort();
        if (empty($arrSliders)) {
            echo __("No sliders found, Please create a slider");
        } else {
            $sliderID = UniteFunctionsRev::getVal($instance, "rev_slider");
            $homepage = UniteFunctionsRev::getVal($instance, "rev_slider_homepage");
            $field = "rev_slider";
            $fieldID = $this->get_field_id($field);
            $fieldName = $this->get_field_name($field);
            $select = UniteFunctionsRev::getHTMLSelect($arrSliders, $sliderID, 'name="' . $fieldName . '" id="' . $fieldID . '"', true);
            $fieldCheck = "rev_slider_homepage";
            $fieldID_check = $this->get_field_id($fieldCheck);
            $fieldName_check = $this->get_field_name($fieldCheck);
            $checked = "";
            if ($homepage == "on") {
                $checked = "checked='checked'";
            }
            ?>
			Choose Slider: <?php 
            echo $select;
            ?>
			<div style="padding-top:10px;"></div>
			<label for="<?php 
            echo $fieldID_check;
            ?>
">Home Page Only:</label>
			<input type="checkbox" name="<?php 
            echo $fieldName_check;
            ?>
" id="<?php 
            echo $fieldID_check;
            ?>
" <?php 
            echo $checked;
            ?>
 >
			<div style="padding-top:10px;"></div>
		<?php 
        }
        //else
    }
开发者ID:ConceptHaus,项目名称:huasca,代码行数:48,代码来源:revslider_widget.class.php

示例3: form

    /**
     * 
     * the form
     */
    public function form($instance)
    {
        try {
            $slider = new RevSlider();
            $arrSliders = $slider->getArrSlidersShort();
        } catch (Exception $e) {
        }
        if (empty($arrSliders)) {
            echo __("No sliders found, Please create a slider", REVSLIDER_TEXTDOMAIN);
        } else {
            $field = "rev_slider";
            $fieldPages = "rev_slider_pages";
            $fieldCheck = "rev_slider_homepage";
            $fieldTitle = "rev_slider_title";
            $sliderID = UniteFunctionsRev::getVal($instance, $field);
            $homepage = UniteFunctionsRev::getVal($instance, $fieldCheck);
            $pagesValue = UniteFunctionsRev::getVal($instance, $fieldPages);
            $title = UniteFunctionsRev::getVal($instance, $fieldTitle);
            $fieldID = $this->get_field_id($field);
            $fieldName = $this->get_field_name($field);
            $select = UniteFunctionsRev::getHTMLSelect($arrSliders, $sliderID, 'name="' . $fieldName . '" id="' . $fieldID . '"', true);
            $fieldID_check = $this->get_field_id($fieldCheck);
            $fieldName_check = $this->get_field_name($fieldCheck);
            $checked = "";
            if ($homepage == "on") {
                $checked = "checked='checked'";
            }
            $fieldPages_ID = $this->get_field_id($fieldPages);
            $fieldPages_Name = $this->get_field_name($fieldPages);
            $fieldTitle_ID = $this->get_field_id($fieldTitle);
            $fieldTitle_Name = $this->get_field_name($fieldTitle);
            ?>
			<label for="<?php 
            echo $fieldTitle_ID;
            ?>
"><?php 
            _e("Title", REVSLIDER_TEXTDOMAIN);
            ?>
:</label>
			<input type="text" name="<?php 
            echo $fieldTitle_Name;
            ?>
" id="<?php 
            echo $fieldTitle_ID;
            ?>
" value="<?php 
            echo $title;
            ?>
" class="widefat">
			
			<br><br>
			
			<?php 
            _e("Choose Slider", REVSLIDER_TEXTDOMAIN);
            ?>
: <?php 
            echo $select;
            ?>
			<div style="padding-top:10px;"></div>
			
			<label for="<?php 
            echo $fieldID_check;
            ?>
"><?php 
            _e("Home Page Only", REVSLIDER_TEXTDOMAIN);
            ?>
:</label>
			<input type="checkbox" name="<?php 
            echo $fieldName_check;
            ?>
" id="<?php 
            echo $fieldID_check;
            ?>
" <?php 
            echo $checked;
            ?>
 >
			<br><br>
			<label for="<?php 
            echo $fieldPages_ID;
            ?>
"><?php 
            _e("Pages: (example: 2,10)", REVSLIDER_TEXTDOMAIN);
            ?>
</label>
			<input type="text" name="<?php 
            echo $fieldPages_Name;
            ?>
" id="<?php 
            echo $fieldPages_ID;
            ?>
" value="<?php 
            echo $pagesValue;
            ?>
">
			
//.........这里部分代码省略.........
开发者ID:RDePoppe,项目名称:luminaterealestate,代码行数:101,代码来源:revslider_widget.class.php

示例4: previewOutputMarkup

    public function previewOutputMarkup($sliderID, $output = null)
    {
        if ($sliderID == "empty_output") {
            $this->loadingMessageOutput();
            exit;
        }
        if ($output == null) {
            $output = new RevSliderOutput();
        }
        $slider = new RevSlider();
        $slider->initByID($sliderID);
        $isWpmlExists = UniteWpmlRev::isWpmlExists();
        $useWpml = $slider->getParam("use_wpml", "off");
        $wpmlActive = false;
        if ($isWpmlExists && $useWpml == "on") {
            $wpmlActive = true;
            $arrLanguages = UniteWpmlRev::getArrLanguages(false);
            //set current lang to output
            $currentLang = UniteFunctionsRev::getPostGetVariable("lang");
            if (empty($currentLang)) {
                $currentLang = UniteWpmlRev::getCurrentLang();
            }
            if (empty($currentLang)) {
                $currentLang = $arrLanguages[0];
            }
            $output->setLang($currentLang);
            $selectLangChoose = UniteFunctionsRev::getHTMLSelect($arrLanguages, $currentLang, "id='select_langs'", true);
        }
        $output->setPreviewMode();
        //put the output html
        $urlPlugin = "http://yourpluginpath/";
        $urlPreviewPattern = UniteBaseClassRev::$url_ajax_actions . "&client_action=preview_slider&only_markup=true&sliderid=" . $sliderID . "&lang=[lang]&nonce=[nonce]";
        $nonce = wp_create_nonce("revslider_actions");
        $setBase = is_ssl() ? "https://" : "http://";
        $f = new ThemePunch_Fonts();
        $my_fonts = $f->get_all_fonts();
        ?>
			<html>
			<head>
				<script type='text/javascript' src='<?php 
        echo $setBase;
        ?>
ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'></script>
			</head>
			<body style="padding:0px;margin:0px;">
				<?php 
        if ($wpmlActive == true) {
            ?>
					<div style="margin-bottom:10px;text-align:center;">
					<?php 
            _e("Choose language", REVSLIDER_TEXTDOMAIN);
            ?>
: <?php 
            echo $selectLangChoose;
            ?>
					</div>

					<script type="text/javascript">
						var g_previewPattern = '<?php 
            echo $urlPreviewPattern;
            ?>
';
						jQuery("#select_langs").change(function(){
							var lang = this.value;
							var nonce = "<?php 
            echo $nonce;
            ?>
";
							var pattern = g_previewPattern;
							var urlPreview = pattern.replace("[lang]",lang).replace("[nonce]",nonce);
							location.href = urlPreview;
						});

						jQuery('body').on('click', '#rev_replace_images', function(){
							var from = jQuery('input[name="orig_image_path"]').val();
							var to = jQuery('input[name="replace_image_path"]').val();

							jQuery('#rev_script_content').val(jQuery('#rev_script_content').val().replace(from, to));
							jQuery('#rev_the_content').val(jQuery('#rev_the_content').val().replace(from, to));
							jQuery('#rev_style_content').val(jQuery('#rev_style_content').val().replace(from, to));
							jQuery('#rev_head_content').val(jQuery('#rev_head_content').val().replace(from, to));
						});

					</script>
				<?php 
        }
        ?>
			<?php 
        //UniteBaseClassRev::$url_plugin
        ob_start();
        ?>
<link rel='stylesheet' href='<?php 
        echo $urlPlugin;
        ?>
css/settings.css?rev=<?php 
        echo GlobalsRevSlider::SLIDER_REVISION;
        ?>
' type='text/css' media='all' />
<?php 
        $http = is_ssl() ? 'https' : 'http';
//.........这里部分代码省略.........
开发者ID:misfist,项目名称:missdrepants-network,代码行数:101,代码来源:revslider_operations.class.php

示例5: previewOutput

    /**
     * 
     * preview slider output
     * if output object is null - create object
     */
    public function previewOutput($sliderID, $output = null)
    {
        if ($sliderID == "empty_output") {
            $this->loadingMessageOutput();
            exit;
        }
        if ($output == null) {
            $output = new RevSliderOutput();
        }
        $slider = new RevSlider();
        $slider->initByID($sliderID);
        $isWpmlExists = UniteWpmlRev::isWpmlExists();
        $useWpml = $slider->getParam("use_wpml", "off");
        $wpmlActive = false;
        if ($isWpmlExists && $useWpml == "on") {
            $wpmlActive = true;
            $arrLanguages = UniteWpmlRev::getArrLanguages(false);
            //set current lang to output
            $currentLang = UniteFunctionsRev::getPostGetVariable("lang");
            if (empty($currentLang)) {
                $currentLang = UniteWpmlRev::getCurrentLang();
            }
            if (empty($currentLang)) {
                $currentLang = $arrLanguages[0];
            }
            $output->setLang($currentLang);
            $selectLangChoose = UniteFunctionsRev::getHTMLSelect($arrLanguages, $currentLang, "id='select_langs'", true);
        }
        $output->setPreviewMode();
        //put the output html
        $urlPlugin = RevSliderAdmin::$url_plugin . "rs-plugin/";
        $urlPreviewPattern = UniteBaseClassRev::$url_ajax_actions . "&client_action=preview_slider&sliderid=" . $sliderID . "&lang=[lang]&nonce=[nonce]";
        $nonce = wp_create_nonce("revslider_actions");
        $setBase = is_ssl() ? "https://" : "http://";
        ?>
				<html>
					<head>
						<link rel='stylesheet' href='<?php 
        echo $urlPlugin;
        ?>
css/settings.css?rev=<?php 
        echo GlobalsRevSlider::SLIDER_REVISION;
        ?>
' type='text/css' media='all' />
						<?php 
        //check if dynamic-captions.css exists. If not, include captions.php
        //if(file_exists(UniteBaseClassRev::$path_plugin."rs-plugin/css/dynamic-captions.css") == false){
        ?>
							<link rel='stylesheet' href='<?php 
        echo $urlPlugin;
        ?>
css/captions.php?rev=<?php 
        echo GlobalsRevSlider::SLIDER_REVISION;
        ?>
' type='text/css' media='all' />
							<?php 
        /*}else{
        			?>
        			<link rel='stylesheet' href='<?php echo $urlPlugin?>css/dynamic-captions.css?rev=<?php echo GlobalsRevSlider::SLIDER_REVISION; ?>' type='text/css' media='all' />
        			<?php
        		}*/
        $custom_css = RevOperations::getStaticCss();
        echo '<style type="text/css">' . $custom_css . '</style>';
        /*<!--link rel='stylesheet' href='<?php echo $urlPlugin?>css/static-captions.css?rev=<?php echo GlobalsRevSlider::SLIDER_REVISION; ?>' type='text/css' media='all' /-->*/
        ?>
						
						<script type='text/javascript' src='<?php 
        echo $setBase;
        ?>
ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'></script>
						<script type='text/javascript' src='<?php 
        echo $urlPlugin;
        ?>
js/jquery.themepunch.plugins.min.js?rev=<?php 
        echo GlobalsRevSlider::SLIDER_REVISION;
        ?>
'></script>
						<script type='text/javascript' src='<?php 
        echo $urlPlugin;
        ?>
js/jquery.themepunch.revolution.min.js?rev=<?php 
        echo GlobalsRevSlider::SLIDER_REVISION;
        ?>
'></script>
					</head>
					<body style="padding:0px;margin:0px;">	
						<?php 
        if ($wpmlActive == true) {
            ?>
							<div style="margin-bottom:10px;text-align:center;">
							<?php 
            _e("Choose language", REVSLIDER_TEXTDOMAIN);
            ?>
: <?php 
            echo $selectLangChoose;
//.........这里部分代码省略.........
开发者ID:RagnarDanneskjold,项目名称:goodbyeloans.com,代码行数:101,代码来源:revslider_operations.class.php

示例6: getHtmlSelectCaptionClasses

 /**
  * 
  * get the select classes html for putting in the html by ajax 
  */
 private function getHtmlSelectCaptionClasses($contentCSS)
 {
     $arrCaptions = $this->getArrCaptionClasses($contentCSS);
     $htmlSelect = UniteFunctionsRev::getHTMLSelect($arrCaptions, "", "id='layer_caption' name='layer_caption'", true);
     return $htmlSelect;
 }
开发者ID:ranrolls,项目名称:ras-full-portal,代码行数:10,代码来源:revslider_operations.class.php

示例7:

        $htmlBefore = "";
        $htmlBefore .= "<li class='item_operation operation_delete'><a data-operation='delete' href='javascript:void(0)'>" . "\n";
        $htmlBefore .= "<img src='" . $urlIconDelete . "'/> " . $textDelete . "\n";
        $htmlBefore .= "</a></li>" . "\n";
        $htmlBefore .= "<li class='item_operation operation_edit'><a data-operation='edit' href='javascript:void(0)'>" . "\n";
        $htmlBefore .= "<img src='" . $urlIconEdit . "'/> " . $textEdit . "\n";
        $htmlBefore .= "</a></li>" . "\n";
        $htmlBefore .= "<li class='item_operation operation_preview'><a data-operation='preview' href='javascript:void(0)'>" . "\n";
        $htmlBefore .= "<img src='" . $urlIconPreview . "'/> " . $textPreview . "\n";
        $htmlBefore .= "</a></li>" . "\n";
        $htmlBefore .= "<li class='item_operation operation_sap'>" . "\n";
        $htmlBefore .= "<div class='float_menu_sap'></div>" . "\n";
        $htmlBefore .= "</a></li>" . "\n";
        $langFloatMenu = UniteWpmlRev::getLangsWithFlagsHtmlList("id='slides_langs_float' class='slides_langs_float'", $htmlBefore);
    }
} else {
    //slides from posts
    $templateName = "slides_posts";
    $sourceType = $slider->getParam("source_type", "posts");
    $showSortBy = $sourceType == "posts" ? true : false;
    //get button links
    $urlNewPost = UniteFunctionsWPRev::getUrlNewPost();
    $linkNewPost = UniteFunctionsRev::getHtmlLink($urlNewPost, ControllerModulerevslideropencart::$lang_var['New_Post'], "button_new_post", "button-primary revblue", true);
    //get ordering
    $arrSortBy = UniteFunctionsWPRev::getArrSortBy();
    $sortBy = $slider->getParam("post_sortby", RevSlider::DEFAULT_POST_SORTBY);
    $selectSortBy = UniteFunctionsRev::getHTMLSelect($arrSortBy, $sortBy, "id='select_sortby'", true);
}
require self::getPathTemplate($templateName);
?>
	
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:30,代码来源:slides.php

示例8: _e

if ($revolution_exists) {
    ?>
			<li>
				<p>
					<label><?php 
    _e('Revolution Slider', 'wpdance');
    ?>
 </label>
					<?php 
    $slider = new RevSlider();
    $arrSliders = $slider->getArrSlidersShort();
    $sliderID = $datas['page_revolution'];
    if (count($arrSliders) > 0) {
        ?>
					<?php 
        echo UniteFunctionsRev::getHTMLSelect($arrSliders, $sliderID, 'name="page_revolution" id="page_revolution_id"', true);
        ?>
					
					<?php 
    } else {
        echo '<strong>Please Create A Revolution Slider.</strong>';
    }
    ?>
				</p> 			
			</li>
			<?php 
}
?>
			<?php 
if ($layerslider_exists) {
    ?>
开发者ID:booklein,项目名称:wp,代码行数:31,代码来源:page_configuration.php

示例9: RevSlider

}
$slider = new RevSlider();
$slider->initByID($sliderID);
$sliderParams = $slider->getParams();
$arrSliders = $slider->getArrSlidersShort($sliderID);
$selectSliders = UniteFunctionsRev::getHTMLSelect($arrSliders, "", "id='selectSliders'", true);
$numSliders = count($arrSliders);
//set iframe parameters
$width = $sliderParams["width"];
$height = $sliderParams["height"];
$iframeWidth = $width + 60;
$iframeHeight = $height + 50;
$iframeStyle = "width:{$iframeWidth}px;height:{$iframeHeight}px;";
//handle wpml
$isWpmlExists = UniteWpmlRev::isWpmlExists();
$useWpml = $slider->getParam("use_wpml", "off");
$langFilterValue = null;
$wpmlActive = false;
if ($isWpmlExists && $useWpml == "on") {
    $wpmlActive = true;
    $arrLangs = UniteWpmlRev::getArrLanguages();
    $langFilterValue = $operations->getLangFilterValue();
    $selectLangsFilter = UniteFunctionsRev::getHTMLSelect($arrLangs, $langFilterValue, "id='select_lang_filter' ", true);
    $langFloatMenu = UniteWpmlRev::getLangsWithFlagsHtmlList("id='slides_langs_float' class='slides_langs_float'");
}
$arrSlides = $slider->getSlides(false, $langFilterValue);
$numSlides = count($arrSlides);
$linksSliderSettings = self::getViewUrl(RevSliderAdmin::VIEW_SLIDER, "id={$sliderID}");
require self::getPathTemplate("slides");
?>
	
开发者ID:jgabrielfreitas,项目名称:MultipagosTestesAPP,代码行数:30,代码来源:slides.php

示例10: putSlideLinkField

    /**
     * 
     * put custom field - slide link
     */
    public function putSlideLinkField($isLayer = false)
    {
        if ($isLayer == true) {
            //layer option
            $name = "layer_slide_link";
            $state = array("found" => false);
            $defaultValue = "";
            $rowID = $name . "_row";
            $selectID = $name;
        } else {
            //slide option
            $name = "slide_link";
            $state = UniteControlsRev::getState($name);
            $state = UniteControlsRev::getState($name);
            $defaultValue = $this->params->get($name);
            $rowID = $name . "-li";
            $selectID = "jform_params_{$name}";
        }
        $arrSlides = array();
        $arrSlides["nothing"] = "-- Not Chosen --";
        $arrSlides["next"] = "-- Next Slide --";
        $arrSlides["prev"] = "-- Previous Slide --";
        //dmp($this->arrSlides);exit();
        foreach ($this->arrSlides as $key => $value) {
            $arrSlides[$key] = $value;
        }
        $this->arrSlidesForLink = $arrSlides;
        $style = "";
        $disabled = "";
        $class = "";
        if ($state["found"] == true) {
            if ($state["hidden"] == true) {
                $style = " style='display:none;' ";
            }
            if ($state["disabled"] == true) {
                $disabled = " disabled='disabled'";
                $class = "field_disabled";
            }
        }
        $htmlParams = ' id="' . $selectID . '" class="" name="jform[params][' . $name . ']" aria-invalid="false" ' . $style . $disabled;
        $htmlSelect = UniteFunctionsRev::getHTMLSelect($arrSlides, $defaultValue, ' ' . $htmlParams, true);
        echo "<li id='{$rowID}'>";
        ?>
			<label id="jform_params_slide_link-lbl" class="hasTip <?php 
        echo $class;
        ?>
" title="Link To Slide::Choose a slide that this slide will be link to." for="jform_params_slide_link" aria-invalid="false" <?php 
        echo $style;
        ?>
>Link To Slide</label>
			<?php 
        echo $htmlSelect;
        ?>
		<?php 
        echo "</li>";
    }
开发者ID:DanyCan,项目名称:wisten.github.io,代码行数:60,代码来源:view.html.php

示例11: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $operations = new RevOperations();
     $sliderID = $this->getRequest()->getParam('id');
     $storeID = $this->getRequest()->getParam('store_id', 0);
     if (empty($sliderID)) {
         UniteFunctionsRev::throwError("Slider ID not found");
     }
     $slider = new RevSlider();
     $slider->initByID($sliderID);
     $sliderParams = $slider->getParams();
     $arrSliders = $slider->getArrSlidersShort($sliderID);
     $selectSliders = UniteFunctionsRev::getHTMLSelect($arrSliders, "", "id='selectSliders'", true);
     $numSliders = count($arrSliders);
     //set iframe parameters
     $width = $sliderParams["width"];
     $height = $sliderParams["height"];
     $iframeWidth = $width + 60;
     $iframeHeight = $height + 50;
     $iframeStyle = "width:" . $iframeWidth . "px;height:" . $iframeHeight . "px;";
     $arrSlides = $slider->getSlides(false, $storeID);
     $numSlides = count($arrSlides);
     $linksSliderSettings = $this->helper("adminhtml")->getUrl('adminhtml/nwdrevslider/slider/id/' . $sliderID);
     $patternViewSlide = $this->helper("adminhtml")->getUrl('adminhtml/nwdrevslider/slider/id/[slideid]');
     $useStaticLayers = $slider->getParam("enable_static_layers", "off");
     //treat in case of slides from gallery
     if ($slider->isSlidesFromPosts() == false) {
         $templateName = "slides_gallery";
         // store view
         $selectStoreView = Mage::app()->getLayout()->createBlock('core/html_select')->setName('select_storeview')->setId('select_storeview')->setTitle('Store View')->setValue($storeID)->setOptions(Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(false, true))->getHtml();
         $this->assign('storeID', $storeID);
         $this->assign('selectStoreView', $selectStoreView);
         $this->setTemplate('nwdthemes/revslider/templates/slides_gallery.phtml');
     } else {
         //slides from posts
         $templateName = "slides_posts";
         $sourceType = $slider->getParam("source_type", "posts");
         $showSortBy = $sourceType == "posts" ? true : false;
         $showDelete = $sourceType == "specific_posts" ? true : false;
         //get button links
         $urlNewPost = $this->helper('adminhtml')->getUrl('adminhtml/catalog_product/new');
         $linkNewPost = UniteFunctionsRev::getHtmlLink($urlNewPost, $this->__("<i class='revicon-pencil-1'></i>New Product"), "button_new_post", "button-primary revblue", true);
         //get ordering
         $arrSortBy = $this->helper('nwdrevslider')->getArrSortBy();
         $sortBy = $slider->getParam("post_sortby", RevSlider::DEFAULT_POST_SORTBY);
         $selectSortBy = UniteFunctionsRev::getHTMLSelect($arrSortBy, $sortBy, "id='select_sortby'", true);
         $this->assign('showSortBy', $showSortBy);
         $this->assign('showDelete', $showDelete);
         $this->assign('selectSortBy', $selectSortBy);
         $this->assign('linkNewPost', $linkNewPost);
         $this->setTemplate('nwdthemes/revslider/templates/slides_posts.phtml');
     }
     $this->assign('sliderID', $sliderID);
     $this->assign('iframeStyle', $iframeStyle);
     $this->assign('patternViewSlide', $patternViewSlide);
     $this->assign('selectSliders', $selectSliders);
     $this->assign('linksSliderSettings', $linksSliderSettings);
     $this->assign('useStaticLayers', $useStaticLayers);
     $this->assign('arrSlides', $arrSlides);
     $this->assign('slider', $slider);
     $this->assign('numSlides', $numSlides);
     $this->assign('numSliders', $numSliders);
 }
开发者ID:perseusl,项目名称:kingdavid,代码行数:67,代码来源:Slides.php

示例12: RevSlider

<?php

$sliderID = self::getGetVar("id");
if (empty($sliderID)) {
    UniteFunctionsRev::throwError("Slider ID not found");
}
$slider = new RevSlider();
$slider->initByID($sliderID);
$sliderParams = $slider->getParams();
$arrSliders = $slider->getArrSlidersShort($sliderID);
$selectSliders = UniteFunctionsRev::getHTMLSelect($arrSliders, "", "id='selectSliders'", true);
$numSliders = count($arrSliders);
//set iframe parameters
$width = $sliderParams["width"];
$height = $sliderParams["height"];
$iframeWidth = $width + 60;
$iframeHeight = $height + 50;
$iframeStyle = "width:{$iframeWidth}px;height:{$iframeHeight}px;";
$arrSlides = $slider->getSlides();
$numSlides = count($arrSlides);
$linksSliderSettings = self::getViewUrl(RevSliderAdmin::VIEW_SLIDER, "id={$sliderID}");
require self::getPathTemplate("slides");
?>
	
开发者ID:kivivuori,项目名称:jotain,代码行数:23,代码来源:slides.php

示例13: previewOutput

    /**
     * 
     * preview slider output
     * if output object is null - create object
     */
    public function previewOutput($sliderID, $output = null)
    {
        if ($sliderID == "empty_output") {
            $this->loadingMessageOutput();
            exit;
        }
        if ($output == null) {
            $output = new RevSliderOutput();
        }
        $slider = new RevSlider();
        $slider->initByID($sliderID);
        $isWpmlExists = UniteWpmlRev::isWpmlExists();
        $useWpml = $slider->getParam("use_wpml", "off");
        $wpmlActive = false;
        if ($isWpmlExists && $useWpml == "on") {
            $wpmlActive = true;
            $arrLanguages = UniteWpmlRev::getArrLanguages(false);
            //set current lang to output
            $currentLang = UniteFunctionsRev::getPostGetVariable("lang");
            if (empty($currentLang)) {
                $currentLang = UniteWpmlRev::getCurrentLang();
            }
            if (empty($currentLang)) {
                $currentLang = $arrLanguages[0];
            }
            $output->setLang($currentLang);
            $selectLangChoose = UniteFunctionsRev::getHTMLSelect($arrLanguages, $currentLang, "id='select_langs'", true);
        }
        $output->setPreviewMode();
        //put the output html
        $urlPlugin = RevSliderAdmin::$url_plugin . "rs-plugin/";
        $urlPreviewPattern = UniteBaseClassRev::$url_ajax_actions . "&client_action=preview_slider&sliderid={$sliderID}&lang=[lang]";
        ?>
				<html>
					<head>
						<link rel='stylesheet' href='<?php 
        echo $urlPlugin;
        ?>
css/settings.css' type='text/css' media='all' />
						<link rel='stylesheet' href='<?php 
        echo $urlPlugin;
        ?>
css/captions.css' type='text/css' media='all' />
						<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'></script>
						<script type='text/javascript' src='<?php 
        echo $urlPlugin;
        ?>
js/jquery.themepunch.revolution.min.js'></script>
					</head>
					<body style="padding:0px;margin:0px;">						
						<?php 
        if ($wpmlActive == true) {
            ?>
							<div style="margin-bottom:10px;text-align:center;">
							<?php 
            _e("Choose language");
            ?>
: <?php 
            echo $selectLangChoose;
            ?>
							</div>
							
							<script type="text/javascript">
								var g_previewPattern = '<?php 
            echo $urlPreviewPattern;
            ?>
';
								jQuery("#select_langs").change(function(){
									var lang = this.value;
									var pattern = g_previewPattern;
									var urlPreview = pattern.replace("[lang]",lang);
									location.href = urlPreview;
								});
							</script>
						<?php 
        }
        ?>
						
						<?php 
        $output->putSliderBase($sliderID);
        ?>
					</body>
				</html>
			<?php 
        exit;
    }
开发者ID:scoutrul,项目名称:sys,代码行数:91,代码来源:revslider_operations.class.php

示例14: form

    public function form($instance)
    {
        if (isset($instance['show_filter'])) {
            $show_filter = $instance['show_filter'];
        } else {
            $show_filter = TRUE;
        }
        if (isset($instance['horizontal_filter'])) {
            $horizontal_filter = $instance['horizontal_filter'];
        } else {
            $horizontal_filter = FALSE;
        }
        $slider = new RevSlider();
        $arrSliders = $slider->getArrSlidersShort();
        $field = "revolution_slider";
        $fieldID = $this->get_field_id($field);
        $fieldName = $this->get_field_name($field);
        $sliderID = UniteFunctionsRev::getVal($instance, $field);
        $select = UniteFunctionsRev::getHTMLSelect($arrSliders, $sliderID, 'name="' . $fieldName . '" id="' . $fieldID . '"', true);
        ?>

                <p>
                    <label for="<?php 
        echo $this->get_field_id('revolution_slider');
        ?>
"><?php 
        echo __('Revolution Slider', 'aviators');
        ?>
</label>
                    <?php 
        print $select;
        ?>
                </p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('show_filter');
        ?>
"><?php 
        echo __('Show filter', 'aviators');
        ?>
</label>
			<input type="checkbox" id="<?php 
        echo $this->get_field_id('show_filter');
        ?>
" name="<?php 
        echo $this->get_field_name('show_filter');
        ?>
" value="1" <?php 
        checked($show_filter);
        ?>
>
		</p>

		<p>
			<label for="<?php 
        echo $this->get_field_id('horizontal_filter');
        ?>
"><?php 
        echo __('Horizontal filter', 'aviators');
        ?>
</label>
			<input type="checkbox" id="<?php 
        echo $this->get_field_id('horizontal_filter');
        ?>
" name="<?php 
        echo $this->get_field_name('horizontal_filter');
        ?>
" value="1" <?php 
        checked($horizontal_filter);
        ?>
>
		</p>
	<?php 
    }
开发者ID:dongchpp,项目名称:BIPHP,代码行数:74,代码来源:revolution_slider.php


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