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


PHP UniteSettingsAdvancedRev::addSelect方法代码示例

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


在下文中一共展示了UniteSettingsAdvancedRev::addSelect方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: UniteSettingsAdvancedRev

$arrEasing = $operations->getArrEasing();
$arrEndEasing = $operations->getArrEndEasing();
$captionsAddonHtml = $htmlButtonDown . $buttonEditStyles . $buttonEditStylesGlobal;
//set Layer settings
$layerSettings = new UniteSettingsAdvancedRev();
$layerSettings->addSection(ControllerModulerevslideropencart::$lang_var['Layer_Params'], ControllerModulerevslideropencart::$lang_var['layer_params']);
$layerSettings->addSap(ControllerModulerevslideropencart::$lang_var['Layer_Params'], ControllerModulerevslideropencart::$lang_var['layer_params']);
$layerSettings->addTextBox("layer_caption", ControllerModulerevslideropencart::$lang_var['caption_green'], ControllerModulerevslideropencart::$lang_var['Style'], array(UniteSettingsRev::PARAM_ADDTEXT => $captionsAddonHtml, "class" => "textbox-caption"));
$addHtmlTextarea = '';
if ($sliderTemplate == "true") {
    $addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Insert Meta", "linkInsertTemplate", "disabled revblue button-primary");
}
$addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Insert Button", "linkInsertButton", "disabled revblue button-primary");
$layerSettings->addTextArea("layer_text", "", ControllerModulerevslideropencart::$lang_var['Text_Html'], array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", ControllerModulerevslideropencart::$lang_var['Image_Link'], array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => ControllerModulerevslideropencart::$lang_var['Same_Window'], "new" => ControllerModulerevslideropencart::$lang_var['New_Window']), ControllerModulerevslideropencart::$lang_var['Link_Open'], "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, ControllerModulerevslideropencart::$lang_var['Start_Animation'], "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, ControllerModulerevslideropencart::$lang_var['Start_Easing'], "Power3.easeInOut");
$params = array("unit" => ControllerModulerevslideropencart::$lang_var['ms']);
$paramssplit = array("unit" => ControllerModulerevslideropencart::$lang_var['ms_keep_low']);
$layerSettings->addTextBox("layer_speed", "", "Start Duration", $params);
$layerSettings->addTextBox("layer_splitdelay", "10", "Split Delay", $paramssplit);
$layerSettings->addSelect("layer_split", $arrSplit, ControllerModulerevslideropencart::$lang_var['Split_Text_per'], "none");
$layerSettings->addCheckbox("layer_hidden", false, ControllerModulerevslideropencart::$lang_var['Hide_Under_Width']);
$params = array("hidden" => true);
$layerSettings->addTextBox("layer_link_id", "", ControllerModulerevslideropencart::$lang_var['Link_ID'], $params);
$layerSettings->addTextBox("layer_link_class", "", ControllerModulerevslideropencart::$lang_var['Link_Classes'], $params);
$layerSettings->addTextBox("layer_link_title", "", ControllerModulerevslideropencart::$lang_var['Link_Title'], $params);
$layerSettings->addTextBox("layer_link_rel", "", ControllerModulerevslideropencart::$lang_var['Link_Rel'], $params);
//scale for img
$textScaleX = ControllerModulerevslideropencart::$lang_var['Width'];
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:31,代码来源:layer_settings.php

示例4: UniteSettingsAdvancedRev

$arrEasing = $operations->getArrEasing();
$arrEndEasing = $operations->getArrEndEasing();
$captionsAddonHtml = $htmlButtonDown . $buttonEditStyles . $buttonEditStylesGlobal;
//set Layer settings
$layerSettings = new UniteSettingsAdvancedRev();
$layerSettings->addSection(__("Layer Params", REVSLIDER_TEXTDOMAIN), __("layer_params", REVSLIDER_TEXTDOMAIN));
$layerSettings->addSap(__("Layer Params", REVSLIDER_TEXTDOMAIN), __("layer_params", REVSLIDER_TEXTDOMAIN));
$layerSettings->addTextBox(__("layer_caption", REVSLIDER_TEXTDOMAIN), __("caption_green", REVSLIDER_TEXTDOMAIN), __("Style", REVSLIDER_TEXTDOMAIN), array(UniteSettingsRev::PARAM_ADDTEXT => $captionsAddonHtml, "class" => "textbox-caption"));
$addHtmlTextarea = '';
if ($sliderTemplate == "true") {
    $addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "insert post template", "linkInsertTemplate", "disabled");
}
$addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "insert button", "linkInsertButton", "disabled");
$layerSettings->addTextArea("layer_text", "", __("Text / Html", REVSLIDER_TEXTDOMAIN), array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", __("Image Link", REVSLIDER_TEXTDOMAIN), array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => __("Same Window", REVSLIDER_TEXTDOMAIN), "new" => __("New Window", REVSLIDER_TEXTDOMAIN)), __("Link Open In", REVSLIDER_TEXTDOMAIN), "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, __("Start Animation", REVSLIDER_TEXTDOMAIN), "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, __("Start Easing", REVSLIDER_TEXTDOMAIN), "Power3.easeInOut");
$params = array("unit" => __("ms", REVSLIDER_TEXTDOMAIN));
$layerSettings->addTextBox("layer_speed", "", "Start Speed", $params);
$layerSettings->addCheckbox("layer_hidden", false, __("Hide Under Width", REVSLIDER_TEXTDOMAIN));
//scale for img
$textScaleX = __("Width", REVSLIDER_TEXTDOMAIN);
$textScaleProportionalX = __("Width/Height", REVSLIDER_TEXTDOMAIN);
$params = array("attrib_text" => "data-textproportional='" . $textScaleProportionalX . "' data-textnormal='" . $textScaleX . "'", "hidden" => false);
$layerSettings->addTextBox("layer_scaleX", "", __("Width", REVSLIDER_TEXTDOMAIN), $params);
$layerSettings->addTextBox("layer_scaleY", "", __("Height", REVSLIDER_TEXTDOMAIN), array("hidden" => false));
$layerSettings->addCheckbox("layer_proportional_scale", false, __("Scale Proportional", REVSLIDER_TEXTDOMAIN), array("hidden" => false));
//put left top
$textOffsetX = __("OffsetX", REVSLIDER_TEXTDOMAIN);
$textX = __("X", REVSLIDER_TEXTDOMAIN);
开发者ID:ConceptHaus,项目名称:huasca,代码行数:31,代码来源:layer_settings.php

示例5: RevOperations

<?php

$operations = new RevOperations();
//set Slide settings
$arrTransitions = $operations->getArrTransition();
$slideSettings = new UniteSettingsAdvancedRev();
//transition
$params = array("description" => "The appearance transition of this slide.");
$slideSettings->addSelect("slide_transition", $arrTransitions, "Transition", "random", $params);
//slot amount
$params = array("description" => "The number of slots or boxes the slide is divided into. If you use boxfade, over 7 slots can be juggy.", "class" => "small");
$slideSettings->addTextBox("slot_amount", "7", "Slot Amount", $params);
//rotation:
$params = array("description" => "Rotation (-720 -> 720, 999 = random) Only for Simple Transitions.", "class" => "small");
$slideSettings->addTextBox("transition_rotation", "0", "Rotation", $params);
//transition speed
$params = array("description" => "The duration of the transition (Default:300, min: 100 max 2000). ", "class" => "small");
$slideSettings->addTextBox("transition_duration", "300", "Transition Duration", $params);
//delay
$params = array("description" => "A new Dealy value for the Slide. If no delay defined per slide, the dealy defined via Options will be used", "class" => "small");
$slideSettings->addTextBox("delay", "", "Delay", $params);
//-----------------------
//enable link
$slideSettings->addSelect_boolean("enable_link", "Enable Link", false, "Enable", "Disable");
//link
$params = array("description" => "A link on the whole slide pic");
$slideSettings->addTextBox("link", "", "Slide Link", $params);
//link target
$params = array("description" => "The target of the slide link");
$slideSettings->addSelect("link_open_in", array("same" => "Same Window", "new" => "New Window"), "Link Open In", "same", $params);
$slideSettings->addControl("enable_link", "link", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
开发者ID:rohichurch,项目名称:rohichurch-wp,代码行数:31,代码来源:slide_settings.php

示例6: UniteSettingsAdvancedRev

$arrEasing = $operations->getArrEasing();
$arrEndEasing = $operations->getArrEndEasing();
$captionsAddonHtml = $htmlButtonDown . $buttonEditStyles . $buttonEditStylesGlobal;
//set Layer settings
$layerSettings = new UniteSettingsAdvancedRev();
$layerSettings->addSection(__("Layer Params", REVSLIDER_TEXTDOMAIN), __("layer_params", REVSLIDER_TEXTDOMAIN));
$layerSettings->addSap(__("Layer Params", REVSLIDER_TEXTDOMAIN), __("layer_params", REVSLIDER_TEXTDOMAIN));
$layerSettings->addTextBox("layer_caption", __("caption_green", REVSLIDER_TEXTDOMAIN), __("Style", REVSLIDER_TEXTDOMAIN), array(UniteSettingsRev::PARAM_ADDTEXT => $captionsAddonHtml, "class" => "textbox-caption"));
$addHtmlTextarea = '';
if ($sliderTemplate == "true") {
    $addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Insert Meta", "linkInsertTemplate", "disabled revblue button-primary");
}
$addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Insert Button", "linkInsertButton", "disabled revblue button-primary");
$layerSettings->addTextArea("layer_text", "", __("Text / Html", REVSLIDER_TEXTDOMAIN), array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", __("Image Link", REVSLIDER_TEXTDOMAIN), array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => __("Same Window", REVSLIDER_TEXTDOMAIN), "new" => __("New Window", REVSLIDER_TEXTDOMAIN)), __("Link Open In", REVSLIDER_TEXTDOMAIN), "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, __("Start Animation", REVSLIDER_TEXTDOMAIN), "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, __("Start Easing", REVSLIDER_TEXTDOMAIN), "Power3.easeInOut");
$params = array("unit" => __("ms", REVSLIDER_TEXTDOMAIN));
$paramssplit = array("unit" => __(" ms (keep it low i.e. 1- 200)", REVSLIDER_TEXTDOMAIN));
$layerSettings->addTextBox("layer_speed", "", "Start Duration", $params);
$layerSettings->addTextBox("layer_splitdelay", "10", "Split Delay", $paramssplit);
$layerSettings->addSelect("layer_split", $arrSplit, __("Split Text per", REVSLIDER_TEXTDOMAIN), "none");
$layerSettings->addCheckbox("layer_hidden", false, __("Hide Under Width", REVSLIDER_TEXTDOMAIN));
$params = array("hidden" => true);
$layerSettings->addTextBox("layer_link_id", "", __("Link ID", REVSLIDER_TEXTDOMAIN), $params);
$layerSettings->addTextBox("layer_link_class", "", __("Link Classes", REVSLIDER_TEXTDOMAIN), $params);
$layerSettings->addTextBox("layer_link_title", "", __("Link Title", REVSLIDER_TEXTDOMAIN), $params);
$layerSettings->addTextBox("layer_link_rel", "", __("Link Rel", REVSLIDER_TEXTDOMAIN), $params);
//scale for img
$textScaleX = __("Width", REVSLIDER_TEXTDOMAIN);
开发者ID:szpaddy,项目名称:the7,代码行数:31,代码来源:layer_settings.php

示例7: array

$arrPremiumTransitions = $operations->getArrTransition(true);
$defaultTransition = $operations->getDefaultTransition();
$arrSlideNames = array();
if (isset($slider) && $slider->isInited()) {
    $arrSlideNames = $slider->getArrSlideNames();
}
$slideSettings = new UniteSettingsAdvancedRev();
//title
$params = array("description" => Mage::helper('nwdrevslider')->__("The title of the slide, will be shown in the slides list."), "class" => "medium");
$slideSettings->addTextBox("title", Mage::helper('nwdrevslider')->__("Slide"), Mage::helper('nwdrevslider')->__("Slide Title"), $params);
// store view
$arrParams = array('minwidth' => '250px', 'description' => Mage::helper('nwdrevslider')->__('Slide will be visible on selected stores'));
$slideSettings->addChecklist("store_id", Mage::helper('nwdrevslider')->getStoreOptions(), Mage::helper('nwdrevslider')->__("Store View"), 0, $params);
//state
$params = array("description" => Mage::helper('nwdrevslider')->__("The state of the slide. The unpublished slide will be excluded from the slider."));
$slideSettings->addSelect("state", array("published" => Mage::helper('nwdrevslider')->__("Published"), "unpublished" => Mage::helper('nwdrevslider')->__("Unpublished")), Mage::helper('nwdrevslider')->__("State"), "published", $params);
$params = array("description" => Mage::helper('nwdrevslider')->__("If set, slide will be visible after the date is reached"));
$slideSettings->addDatePicker("date_from", "", Mage::helper('nwdrevslider')->__("Visible from"), $params);
$params = array("description" => Mage::helper('nwdrevslider')->__("If set, slide will be visible till the date is reached"));
$slideSettings->addDatePicker("date_to", "", Mage::helper('nwdrevslider')->__("Visible until"), $params);
$slideSettings->addHr("");
//transition
$params = array("description" => Mage::helper('nwdrevslider')->__("The appearance transitions of this slide."), "minwidth" => "250px");
$slideSettings->addChecklist("slide_transition", $arrTransitions, Mage::helper('nwdrevslider')->__("Transitions"), $defaultTransition, $params);
//slot amount
$params = array("description" => Mage::helper('nwdrevslider')->__("The number of slots or boxes the slide is divided into. If you use boxfade, over 7 slots can be juggy."), "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("slot_amount", "7", Mage::helper('nwdrevslider')->__("Slot Amount"), $params);
//rotation:
$params = array("description" => Mage::helper('nwdrevslider')->__("Rotation (-720 -> 720, 999 = random) Only for Simple Transitions."), "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_rotation", "0", Mage::helper('nwdrevslider')->__("Rotation"), $params);
//transition speed
开发者ID:perseusl,项目名称:kingdavid,代码行数:31,代码来源:slide_settings.php

示例8: UniteSettingsAdvancedRev

$arrAnimations = $operations->getArrAnimations();
$arrEndAnimations = $operations->getArrEndAnimations();
$htmlButtonDown = '<div id="layer_captions_down" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-arrowthick-1-s"></span></div>';
$buttonEditStyles = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Edit CSS File", "button_edit_css", "button-secondary");
$arrEasing = $operations->getArrEasing();
$arrEndEasing = $operations->getArrEndEasing();
$captionsAddonHtml = $htmlButtonDown . $buttonEditStyles;
//set Layer settings
$layerSettings = new UniteSettingsAdvancedRev();
$layerSettings->addSection("Layer Params", "layer_params");
$layerSettings->addSap("Layer Params", "layer_params");
$layerSettings->addTextBox("layer_caption", "caption_green", "Style", array(UniteSettingsRev::PARAM_ADDTEXT => $captionsAddonHtml, "class" => "textbox-caption"));
$addHtmlTextarea = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "insert button", "linkInsertButton", "disabled");
$layerSettings->addTextArea("layer_text", "", "Text / Html", array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", "Image Link", array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => "Same Window", "new" => "New Window"), "Link Open In", "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, "Animation", "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, "Easing", "easeOutExpo");
$params = array("unit" => "ms");
$layerSettings->addTextBox("layer_speed", "", "Speed", $params);
$layerSettings->addTextBox("layer_left", "", "X");
$layerSettings->addTextBox("layer_top", "", "Y");
$layerSettings->addCheckbox("layer_video_autoplay", false, "Video Autoplay", array("hidden" => true));
$layerSettings->addSelect("layer_slide_link", $arrSlideLink, "Link To Slide", "nothing");
$layerSettings->addButton("button_edit_video", "Edit Video", array("hidden" => true));
$params = array("unit" => "ms");
$layerSettings->addTextBox("layer_endtime", "", "End Time", $params);
$layerSettings->addTextBox("layer_endspeed", "", "End Speed", $params);
$layerSettings->addSelect("layer_endanimation", $arrEndAnimations, "End Animation", "auto");
$layerSettings->addSelect("layer_endeasing", $arrEndEasing, "Easing", "nothing");
$params = array("unit" => "ms");
开发者ID:ConceptHaus,项目名称:huasca,代码行数:31,代码来源:layer_settings.php

示例9: UniteSettingsAdvancedRev

$sliderMainSettings = new UniteSettingsAdvancedRev();
$sliderMainSettings->addTextBox("title", "", Mage::helper('nwdrevslider')->__("Slider Title"), array("description" => Mage::helper('nwdrevslider')->__("The title of the slider. Example: Slider1"), "required" => "true"));
$sliderMainSettings->addTextBox("alias", "", Mage::helper('nwdrevslider')->__("Slider Alias"), array("description" => Mage::helper('nwdrevslider')->__("The alias that will be used for embedding the slider. Example: slider1"), "required" => "true"));
$sliderMainSettings->addTextBox("shortcode", "", Mage::helper('nwdrevslider')->__("Slider Shortcode"), array("readonly" => true, "class" => "code"));
$sliderMainSettings->addHr();
//source type
$arrSourceTypes = array("posts" => Mage::helper('nwdrevslider')->__("Products"), "specific_posts" => Mage::helper('nwdrevslider')->__("Specific Products"), "gallery" => Mage::helper('nwdrevslider')->__("Gallery"));
$sliderMainSettings->addRadio("source_type", $arrSourceTypes, Mage::helper('nwdrevslider')->__("Source Type"), "gallery");
$arrParams = array("description" => Mage::helper('nwdrevslider')->__("Type here the Products IDs you want to use separated by coma. ex: 23,24,25"));
$sliderMainSettings->addTextBox("posts_list", "", Mage::helper('nwdrevslider')->__("Specific Products List"), $arrParams);
$sliderMainSettings->addControl("source_type", "posts_list", UniteSettingsRev::CONTROL_TYPE_SHOW, "specific_posts");
$sliderMainSettings->startBulkControl("source_type", UniteSettingsRev::CONTROL_TYPE_SHOW, "posts");
//post types
$arrPostTypes = array('category' => 'Category');
$arrParams = array("args" => "multiple size='5'");
$sliderMainSettings->addSelect("post_types", $arrPostTypes, Mage::helper('nwdrevslider')->__("Source Types"), "", $arrParams);
//post categories
$arrParams = array("args" => "multiple size='7'");
$sliderMainSettings->addSelect("post_category", Mage::helper('nwdrevslider')->getProductCategoriesForClient(), Mage::helper('nwdrevslider')->__("Product Categories"), "", $arrParams);
//sort by
$arrSortBy = Mage::helper('nwdrevslider')->getArrSortBy();
//events integration
if (UniteEmRev::isEventsExists()) {
    $arrEventsFilter = UniteEmRev::getArrFilterTypes();
    $sliderMainSettings->addHr();
    $sliderMainSettings->addSelect("events_filter", $arrEventsFilter, Mage::helper('nwdrevslider')->__("Filter Events By"), UniteEmRev::DEFAULT_FILTER);
    $sliderMainSettings->addHr();
    //add values to sortby array
    $arrEMSortBy = UniteEmRev::getArrSortBy();
    $arrSortBy = $arrSortBy + $arrEMSortBy;
}
开发者ID:perseusl,项目名称:kingdavid,代码行数:31,代码来源:slider_settings.php

示例10: UniteSettingsAdvancedRev

<?php

//set Slide settings
$arrTransitions = $operations->getArrTransition();
$arrSlideNames = $slider->getArrSlideNames();
$slideSettings = new UniteSettingsAdvancedRev();
//title
$params = array("description" => "The title of the slide, will be shown in the slides list.", "class" => "medium");
$slideSettings->addTextBox("title", "Slide", "Slide Title", $params);
//state
$params = array("description" => "The state of the slide. The unpublished slide will be excluded from the slider.");
$slideSettings->addSelect("state", array("published" => "Published", "unpublished" => "Unpublished"), "State", "published", $params);
//transition
$params = array("description" => "The appearance transition of this slide.");
$slideSettings->addSelect("slide_transition", $arrTransitions, "Transition", "random", $params);
//slot amount
$params = array("description" => "The number of slots or boxes the slide is divided into. If you use boxfade, over 7 slots can be juggy.", "class" => "small");
$slideSettings->addTextBox("slot_amount", "7", "Slot Amount", $params);
//rotation:
$params = array("description" => "Rotation (-720 -> 720, 999 = random) Only for Simple Transitions.", "class" => "small");
$slideSettings->addTextBox("transition_rotation", "0", "Rotation", $params);
//transition speed
$params = array("description" => "The duration of the transition (Default:300, min: 100 max 2000). ", "class" => "small");
$slideSettings->addTextBox("transition_duration", "300", "Transition Duration", $params);
//delay
$params = array("description" => "A new delay value for the Slide. If no delay defined per slide, the delay defined via Options ( {$sliderDelay} ms) will be used", "class" => "small");
$slideSettings->addTextBox("delay", "", "Delay", $params);
//-----------------------
//enable link
$slideSettings->addSelect_boolean("enable_link", "Enable Link", false, "Enable", "Disable");
$slideSettings->startBulkControl("enable_link", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
开发者ID:ashanrupasinghe,项目名称:govforuminstalledlocal,代码行数:31,代码来源:slide_settings.php

示例11: array

$sliderMainSettings->addTextBox("title", "", RevsliderPrestashop::$lang['Slider_Title'], array("description" => RevsliderPrestashop::$lang['title_slider'], "required" => "true"));
$sliderMainSettings->addTextBox("alias", "", RevsliderPrestashop::$lang['Slider_Alias'], array("description" => RevsliderPrestashop::$lang['alias_slider'], "required" => "true"));
$sliderMainSettings->addHr();
//start set IMages Size
$gethooks = array();
require_once dirname(__FILE__) . '../../hook/hook.php';
$hookobj = new sds_rev_hooks_class();
$customhooks = $hookobj->get_all_hooks();
if (isset($customhooks) && !empty($customhooks)) {
    foreach ($customhooks as $values) {
        foreach ($values as $valu) {
            $gethooks[$valu] = $valu;
        }
    }
}
$sliderMainSettings->addSelect("displayhook", $gethooks, RevsliderPrestashop::$lang['Display_Hook'], 'id');
$arrSourceTypes = array("posts" => RevsliderPrestashop::$lang['Products'], "specific_posts" => RevsliderPrestashop::$lang['Specific_Products'], "gallery" => RevsliderPrestashop::$lang['Gallery']);
$sliderMainSettings->addRadio("source_type", $arrSourceTypes, RevsliderPrestashop::$lang['Source_Type'], "gallery");
$sliderMainSettings->startBulkControl("source_type", UniteSettingsRev::CONTROL_TYPE_SHOW, "posts");
//post types
$arrPostTypes = UniteFunctionsWPRev::getPostTypesAssoc(array("product"));
$arrParams = array("args" => "multiple size='5'");
$sliderMainSettings->addSelect("post_types", $arrPostTypes, RevsliderPrestashop::$lang['Types'], "product", $arrParams);
//post categories
$arrParams = array("args" => "multiple size='7'");
$sliderMainSettings->addSelect("post_category", array(), RevsliderPrestashop::$lang['Product_Categories'], "", $arrParams);
//sort by
$arrSortBy = UniteFunctionsWPRev::getArrSortBy();
$sliderMainSettings->addSelect("post_sortby", $arrSortBy, RevsliderPrestashop::$lang['Sort_Posts'], RevSlider::DEFAULT_POST_SORTBY);
//start set IMages Size
$GetArrImageSize = UniteFunctionsWPRev::GetArrImageSize();
开发者ID:evgrishin,项目名称:se1614,代码行数:31,代码来源:slider_settings.php

示例12: RevOperations

<?php

$operations = new RevOperations();
//set Layer settings
$contentCSS = $operations->getCaptionsContent();
$arrAnimations = $operations->getArrAnimations();
$htmlButtonDown = '<div id="layer_captions_down" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-arrowthick-1-s"></span></div>';
$buttonEditStyles = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Edit CSS File", "button_edit_css", "button-secondary");
$arrEasing = $operations->getArrEasing();
$captionsAddonHtml = $htmlButtonDown . $buttonEditStyles;
//set Layer settings
$layerSettings = new UniteSettingsAdvancedRev();
$layerSettings->addSection("Layer Params", "layer_params");
$layerSettings->addSap("Layer Params", "layer_params");
$layerSettings->addTextBox("layer_caption", "caption_green", "Style", array(UniteSettingsRev::PARAM_ADDTEXT => $captionsAddonHtml, "class" => "textbox-caption"));
$addHtmlTextarea = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "insert button", "linkInsertButton", "disabled");
$layerSettings->addTextArea("layer_text", "", "Text / Html", array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", "Image Link", array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => "Same Window", "new" => "New Window"), "Link Open In", "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, "Animation", "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, "Easing", "easeOutExpo");
$layerSettings->addTextBox("layer_speed", "", "Speed");
$layerSettings->addTextBox("layer_left", "", "X");
$layerSettings->addTextBox("layer_top", "", "Y");
$layerSettings->addButton("button_edit_video", "Edit Video", array("hidden" => true));
self::storeSettings("layer_settings", $layerSettings);
//store settings of content css for editing on the client.
self::storeSettings("css_captions_content", $contentCSS);
开发者ID:rohichurch,项目名称:rohichurch-wp,代码行数:28,代码来源:layer_settings.php

示例13: array

//set Slide settings
$arrTransitions = $operations->getArrTransition();
$arrPremiumTransitions = $operations->getArrTransition(true);
$defaultTransition = $operations->getDefaultTransition();
$arrSlideNames = array();
if (isset($slider) && $slider->isInited()) {
    $arrSlideNames = $slider->getArrSlideNames();
}
$slideSettings = new UniteSettingsAdvancedRev();
//title
$params = array("description" => ControllerModulerevslideropencart::$lang_var['shown_slides_list'], "class" => "medium");
$slideSettings->addTextBox("title", ControllerModulerevslideropencart::$lang_var['Slide'], ControllerModulerevslideropencart::$lang_var['Slide_Title'], $params);
//state
$params = array("description" => ControllerModulerevslideropencart::$lang_var['excluded_slider']);
$slideSettings->addSelect("state", array("published" => ControllerModulerevslideropencart::$lang_var['Published'], "unpublished" => ControllerModulerevslideropencart::$lang_var['Unpublished']), ControllerModulerevslideropencart::$lang_var['State'], "published", $params);
if (isset($slider) && $slider->isInited()) {
    $isWpmlExists = UniteWpmlRev::isWpmlExists();
    $useWpml = $slider->getParam("use_wpml", "off");
    if ($isWpmlExists && $useWpml == "on") {
        $arrLangs = UniteWpmlRev::getArrLanguages();
        $params = array("description" => ControllerModulerevslideropencart::$lang_var['language_slide']);
        $slideSettings->addSelect("lang", $arrLangs, ControllerModulerevslideropencart::$lang_var['Language'], "all", $params);
    }
}
$params = array("description" => ControllerModulerevslideropencart::$lang_var['slide_visible']);
$slideSettings->addDatePicker("date_from", "", ControllerModulerevslideropencart::$lang_var['Visible_from'], $params);
$params = array("description" => ControllerModulerevslideropencart::$lang_var['slide_visible_reached']);
$slideSettings->addDatePicker("date_to", "", ControllerModulerevslideropencart::$lang_var['Visible_until'], $params);
$slideSettings->addHr("");
//transition
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:30,代码来源:slide_settings.php

示例14: array

//set Slide settings
$arrTransitions = $operations->getArrTransition();
$arrPremiumTransitions = $operations->getArrTransition(true);
$defaultTransition = $operations->getDefaultTransition();
$arrSlideNames = array();
if (isset($slider) && $slider->isInited()) {
    $arrSlideNames = $slider->getArrSlideNames();
}
$slideSettings = new UniteSettingsAdvancedRev();
//title
$params = array("description" => RevsliderPrestashop::$lang['shown_slides_list'], "class" => "medium");
$slideSettings->addTextBox("title", RevsliderPrestashop::$lang['slide'], RevsliderPrestashop::$lang['Slide_Title'], $params);
//state
$params = array("description" => RevsliderPrestashop::$lang['excluded_slider']);
$slideSettings->addSelect("state", array("published" => RevsliderPrestashop::$lang['Published'], "unpublished" => RevsliderPrestashop::$lang['Unpublished']), RevsliderPrestashop::$lang['State'], "published", $params);
if (isset($slider) && $slider->isInited()) {
    $isWpmlExists = UniteWpmlRev::isWpmlExists();
    $useWpml = $slider->getParam("use_wpml", "off");
    if ($isWpmlExists && $useWpml == "on") {
        $arrLangs = UniteWpmlRev::getArrLanguages();
        $params = array("description" => RevsliderPrestashop::$lang['language_slide']);
        $slideSettings->addSelect("lang", $arrLangs, RevsliderPrestashop::$lang['Language'], "all", $params);
    }
}
$params = array("description" => RevsliderPrestashop::$lang['slide_visible']);
$slideSettings->addDatePicker("date_from", "", RevsliderPrestashop::$lang['Visible_from'], $params);
$params = array("description" => RevsliderPrestashop::$lang['slide_visible_reached']);
$slideSettings->addDatePicker("date_to", "", RevsliderPrestashop::$lang['Visible_until'], $params);
$slideSettings->addHr("");
//transition
开发者ID:evgrishin,项目名称:se1614,代码行数:30,代码来源:slide_settings.php

示例15: array

//set Slide settings
$arrTransitions = $operations->getArrTransition();
$arrPremiumTransitions = $operations->getArrTransition(true);
$defaultTransition = $operations->getDefaultTransition();
$arrSlideNames = array();
if (isset($slider) && $slider->isInited()) {
    $arrSlideNames = $slider->getArrSlideNames();
}
$slideSettings = new UniteSettingsAdvancedRev();
//title
$params = array("description" => __ug("The title of the slide, will be shown in the slides list.", REVSLIDER_TEXTDOMAIN), "class" => "medium");
$slideSettings->addTextBox("title", __ug("Slide", REVSLIDER_TEXTDOMAIN), __ug("Slide Title", REVSLIDER_TEXTDOMAIN), $params);
//state
$params = array("description" => __ug("The state of the slide. The unpublished slide will be excluded from the slider.", REVSLIDER_TEXTDOMAIN));
$slideSettings->addSelect("state", array("published" => __ug("Published", REVSLIDER_TEXTDOMAIN), "unpublished" => __ug("Unpublished", REVSLIDER_TEXTDOMAIN)), __ug("State", REVSLIDER_TEXTDOMAIN), "published", $params);
if (isset($slider) && $slider->isInited()) {
    $isWpmlExists = UniteWpmlRev::isWpmlExists();
    $useWpml = $slider->getParam("use_wpml", "off");
    if ($isWpmlExists && $useWpml == "on") {
        $arrLangs = UniteWpmlRev::getArrLanguages();
        $params = array("description" => __ug("The language of the slide (uses WPML plugin).", REVSLIDER_TEXTDOMAIN));
        $slideSettings->addSelect("lang", $arrLangs, __ug("Language", REVSLIDER_TEXTDOMAIN), "all", $params);
    }
}
$params = array("description" => __ug("If set, slide will be visible after the date is reached", REVSLIDER_TEXTDOMAIN));
$slideSettings->addDatePicker("date_from", "", __ug("Visible from", REVSLIDER_TEXTDOMAIN), $params);
$params = array("description" => __ug("If set, slide will be visible till the date is reached", REVSLIDER_TEXTDOMAIN));
$slideSettings->addDatePicker("date_to", "", __ug("Visible until", REVSLIDER_TEXTDOMAIN), $params);
$slideSettings->addHr("");
//transition
开发者ID:naka211,项目名称:myloyal,代码行数:30,代码来源:slide_settings.php


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