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


PHP UniteSettingsAdvancedRev::addRadio方法代码示例

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


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

示例1: UniteSettingsAdvancedRev

			<?php 
//set "slider_main" settings
$sliderMainSettings = new UniteSettingsAdvancedRev();
$sliderMainSettings->addTextBox("title", "", __("Slider Title", REVSLIDER_TEXTDOMAIN), array("description" => __("The title of the slider. Example: Slider1", REVSLIDER_TEXTDOMAIN), "required" => "true"));
$sliderMainSettings->addTextBox("alias", "", __("Slider Alias", REVSLIDER_TEXTDOMAIN), array("description" => __("The alias that will be used for embedding the slider. Example: slider1", REVSLIDER_TEXTDOMAIN), "required" => "true"));
$sliderMainSettings->addTextBox("shortcode", "", __("Slider Shortcode", REVSLIDER_TEXTDOMAIN), array("readonly" => true, "class" => "code", "hidden" => true));
//source type
$arrSourceTypes = array("posts" => __("Posts", REVSLIDER_TEXTDOMAIN), "specific_posts" => __("Specific Posts", REVSLIDER_TEXTDOMAIN), "gallery" => __("Gallery", REVSLIDER_TEXTDOMAIN));
$sliderMainSettings->addRadio("source_type", $arrSourceTypes, __("Source Type", REVSLIDER_TEXTDOMAIN), "gallery", array("hidden" => true));
$sliderMainSettings->startBulkControl("source_type", UniteSettingsRev::CONTROL_TYPE_SHOW, "posts");
//post types
$arrPostTypes = UniteFunctionsWPRev::getPostTypesAssoc(array("post"));
$arrParams = array("args" => "multiple size='5'");
$sliderMainSettings->addSelect("post_types", $arrPostTypes, __("Post Types", REVSLIDER_TEXTDOMAIN), "post", $arrParams);
//post categories
$arrParams = array("args" => "multiple size='7'");
$sliderMainSettings->addSelect("post_category", array(), __("Post Categories", REVSLIDER_TEXTDOMAIN), "", $arrParams);
//sort by
$arrSortBy = UniteFunctionsWPRev::getArrSortBy();
//events integration
if (UniteEmRev::isEventsExists()) {
    $arrEventsFilter = UniteEmRev::getArrFilterTypes();
    $sliderMainSettings->addHr();
    $sliderMainSettings->addSelect("events_filter", $arrEventsFilter, __("Filter Events By", REVSLIDER_TEXTDOMAIN), UniteEmRev::DEFAULT_FILTER);
    $sliderMainSettings->addHr();
    //add values to sortby array
    $arrEMSortBy = UniteEmRev::getArrSortBy();
    $arrSortBy = $arrSortBy + $arrEMSortBy;
}
$sliderMainSettings->addSelect("post_sortby", $arrSortBy, __("Sort Posts By", REVSLIDER_TEXTDOMAIN), RevSlider::DEFAULT_POST_SORTBY);
//sort direction
开发者ID:TeamCodeStudio,项目名称:fpmoz,代码行数:31,代码来源:slider_settings.php

示例2: UniteSettingsAdvancedRev

<?php

//set "slider_main" settings
$sliderMainSettings = new UniteSettingsAdvancedRev();
$sliderMainSettings->addTextBox("title", "", "Slider Title", array("description" => "The title of the slider. Example: Slider1", "required" => "true"));
$sliderMainSettings->addTextBox("alias", "", "Slider Alias", array("description" => "The alias that will be used for embedding the slider. Example: slider1", "required" => "true"));
$sliderMainSettings->addTextBox("shortcode", "", "Slider Short Code", array("readonly" => true, "class" => "code"));
$sliderMainSettings->addHr();
$sliderMainSettings->addRadio("slider_type", array("fixed" => "Fixed", "responsitive" => "Responsive", "fullwidth" => "Full Width"), "Slider Type", "fixed");
$paramsSize = array("width" => 960, "height" => 350);
$sliderMainSettings->addCustom("slider_size", "slider_size", "", "Slider Size", $paramsSize);
$paramsResponsitive = array("w1" => 940, "sw1" => 770, "w2" => 780, "sw2" => 500, "w3" => 510, "sw3" => 310);
$sliderMainSettings->addCustom("responsitive_settings", "responsitive", "", "Responsive Sizes", $paramsResponsitive);
$sliderMainSettings->addHr();
self::storeSettings("slider_main", $sliderMainSettings);
//set "slider_params" settings.
$sliderParamsSettings = new UniteSettingsAdvancedRev();
$sliderParamsSettings->loadXMLFile(self::$path_settings . "/slider_settings.xml");
self::storeSettings("slider_params", $sliderParamsSettings);
开发者ID:nimishavyas,项目名称:proiti,代码行数:19,代码来源:slider_settings.php

示例3: array

$params = array("description" => __ug("The number of slots or boxes the slide is divided into. If you use boxfade, over 7 slots can be juggy.", REVSLIDER_TEXTDOMAIN), "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("slot_amount", "7", __ug("Slot Amount", REVSLIDER_TEXTDOMAIN), $params);
//rotation:
$params = array("description" => __ug("Rotation (-720 -> 720, 999 = random) Only for Simple Transitions.", REVSLIDER_TEXTDOMAIN), "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_rotation", "0", __ug("Rotation", REVSLIDER_TEXTDOMAIN), $params);
//transition speed
$params = array("description" => __ug("The duration of the transition (Default:300, min: 100 max 2000). ", REVSLIDER_TEXTDOMAIN), "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_duration", "300", __ug("Transition Duration", REVSLIDER_TEXTDOMAIN), $params);
if (!isset($sliderDelay)) {
    $sliderDelay = 0;
}
//delay
$params = array("description" => __ug("A new delay value for the Slide. If no delay defined per slide, the delay defined via Options (", REVSLIDER_TEXTDOMAIN) . $sliderDelay . __ug("ms) will be used", REVSLIDER_TEXTDOMAIN), "class" => "small", "datatype" => UniteSettingsRev::DATATYPE_NUMBEROREMTY);
$slideSettings->addTextBox("delay", "", __ug("Delay", REVSLIDER_TEXTDOMAIN), $params);
$params = array("description" => __ug("", REVSLIDER_TEXTDOMAIN), "class" => "small");
$slideSettings->addRadio("save_performance", array("on" => __ug("On", REVSLIDER_TEXTDOMAIN), "off" => __ug("Off", REVSLIDER_TEXTDOMAIN)), __ug("Save Performance", REVSLIDER_TEXTDOMAIN), "off", $params);
$slideSettings->addHr("");
//-----------------------
//enable link
$slideSettings->addSelect_boolean("enable_link", __ug("Enable Link", REVSLIDER_TEXTDOMAIN), false, __ug("Enable", REVSLIDER_TEXTDOMAIN), __ug("Disable", REVSLIDER_TEXTDOMAIN));
$slideSettings->startBulkControl("enable_link", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
//link type
$slideSettings->addRadio("link_type", array("regular" => __ug("Regular", REVSLIDER_TEXTDOMAIN), "slide" => __ug("To Slide", REVSLIDER_TEXTDOMAIN)), __ug("Link Type", REVSLIDER_TEXTDOMAIN), "regular");
//link
$params = array('id' => 'rev_link', "description" => __ug("A link on the whole slide pic (use %link% or %meta:somemegatag% in template sliders to link to a post or some other meta)", REVSLIDER_TEXTDOMAIN));
$slideSettings->addTextBox("link", "", __ug("Slide Link", REVSLIDER_TEXTDOMAIN), $params);
//link target
$params = array("description" => __ug("The target of the slide link", REVSLIDER_TEXTDOMAIN));
$slideSettings->addSelect("link_open_in", array("same" => __ug("Same Window", REVSLIDER_TEXTDOMAIN), "new" => __ug("New Window")), __ug("Link Open In", REVSLIDER_TEXTDOMAIN), "same", $params);
//num_slide_link
$arrSlideLink = array();
开发者ID:naka211,项目名称:myloyal,代码行数:31,代码来源:slide_settings.php

示例4: array

$slideSettings->addTextBox("transition_rotation", "0", __("Rotation", REVSLIDER_TEXTDOMAIN), $params);
//transition speed
$params = array("description" => __("The duration of the transition (Default:300, min: 100 max 2000). ", REVSLIDER_TEXTDOMAIN), "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_duration", "300", __("Transition Duration", REVSLIDER_TEXTDOMAIN), $params);
if (!isset($sliderDelay)) {
    $sliderDelay = 0;
}
//delay
$params = array("description" => __("A new delay value for the Slide. If no delay defined per slide, the delay defined via Options (", REVSLIDER_TEXTDOMAIN) . $sliderDelay . __("ms) will be used", REVSLIDER_TEXTDOMAIN), "class" => "small", "datatype" => UniteSettingsRev::DATATYPE_NUMBEROREMTY);
$slideSettings->addTextBox("delay", "", __("Delay", REVSLIDER_TEXTDOMAIN), $params);
//-----------------------
//enable link
$slideSettings->addSelect_boolean("enable_link", __("Enable Link", REVSLIDER_TEXTDOMAIN), false, __("Enable", REVSLIDER_TEXTDOMAIN), __("Disable", REVSLIDER_TEXTDOMAIN));
$slideSettings->startBulkControl("enable_link", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
//link type
$slideSettings->addRadio("link_type", array("regular" => __("Regular", REVSLIDER_TEXTDOMAIN), "slide" => __("To Slide", REVSLIDER_TEXTDOMAIN)), __("Link Type", REVSLIDER_TEXTDOMAIN), "regular");
//link
$params = array("description" => __("A link on the whole slide pic (use %link% or %meta:somemegatag% in template sliders to link to a post or some other meta)", REVSLIDER_TEXTDOMAIN));
$slideSettings->addTextBox("link", "", __("Slide Link", REVSLIDER_TEXTDOMAIN), $params);
//link target
$params = array("description" => __("The target of the slide link", REVSLIDER_TEXTDOMAIN));
$slideSettings->addSelect("link_open_in", array("same" => __("Same Window", REVSLIDER_TEXTDOMAIN), "new" => __("New Window")), __("Link Open In", REVSLIDER_TEXTDOMAIN), "same", $params);
//num_slide_link
$arrSlideLink = array();
$arrSlideLink["nothing"] = __("-- Not Chosen --", REVSLIDER_TEXTDOMAIN);
$arrSlideLink["next"] = __("-- Next Slide --", REVSLIDER_TEXTDOMAIN);
$arrSlideLink["prev"] = __("-- Previous Slide --", REVSLIDER_TEXTDOMAIN);
$arrSlideLinkLayers = $arrSlideLink;
$arrSlideLinkLayers["scroll_under"] = __("-- Scroll Below Slider --", REVSLIDER_TEXTDOMAIN);
foreach ($arrSlideNames as $slideNameID => $arr) {
    $slideName = $arr["title"];
开发者ID:cybKIRA,项目名称:roverlink-updated,代码行数:31,代码来源:slide_settings.php

示例5: array

$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");
//link type
$slideSettings->addRadio("link_type", array("regular" => "Regular", "slide" => "To Slide"), "Link Type", "regular");
//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);
//num_slide_link
$arrSlideLink = array("nothing" => "-- Not Chosen --", "next" => "-- Next Slide --", "prev" => "-- Previous Slide --");
foreach ($arrSlideNames as $slideNameID => $slideName) {
    $arrSlideLink[$slideNameID] = $slideName;
}
$slideSettings->addSelect("slide_link", $arrSlideLink, "Link To Slide", "nothing");
$params = array("description" => "The position of the link related to layers");
$slideSettings->addRadio("link_pos", array("front" => "Front", "back" => "Back"), "Link Position", "front", $params);
$slideSettings->addHr("link_sap");
开发者ID:nimishavyas,项目名称:proiti,代码行数:31,代码来源:slide_settings.php

示例6: UniteSettingsAdvancedRev

			<?php 
//set "slider_main" settings
$sliderMainSettings = new UniteSettingsAdvancedRev();
$sliderMainSettings->addTextBox("title", "", __("Slider Title", REVSLIDER_TEXTDOMAIN), array("description" => __("The title of the slider. Example: Slider1", REVSLIDER_TEXTDOMAIN), "required" => "true"));
$sliderMainSettings->addTextBox("alias", "", __("Slider Alias", REVSLIDER_TEXTDOMAIN), array("description" => __("The alias that will be used for embedding the slider. Example: slider1", REVSLIDER_TEXTDOMAIN), "required" => "true"));
$sliderMainSettings->addTextBox("shortcode", "", __("Slider Shortcode", REVSLIDER_TEXTDOMAIN), array("readonly" => true, "class" => "code"));
$sliderMainSettings->addHr();
//set slider type / texts
$sliderMainSettings->addRadio("slider_type", array("fixed" => __("Fixed", REVSLIDER_TEXTDOMAIN), "responsitive" => __("Custom", REVSLIDER_TEXTDOMAIN), "fullwidth" => __("Auto Responsive", REVSLIDER_TEXTDOMAIN), "fullscreen" => __("Full Screen", REVSLIDER_TEXTDOMAIN)), __("Slider Layout", REVSLIDER_TEXTDOMAIN), "fixed");
$arrParams = array("class" => "medium", "description" => __("Example: #header | The height of fullscreen slider will be decreased with the height of the #header to fit perfect in the screen", REVSLIDER_TEXTDOMAIN));
$sliderMainSettings->addTextBox("fullscreen_offset_container", "", __("Fullscreen Offset Container", REVSLIDER_TEXTDOMAIN), $arrParams);
$sliderMainSettings->addControl("slider_type", "fullscreen_offset_container", UniteSettingsRev::CONTROL_TYPE_SHOW, "fullscreen");
$paramsSize = array("width" => 960, "height" => 350);
$sliderMainSettings->addCustom("slider_size", "slider_size", "", __("Grid Settings", REVSLIDER_TEXTDOMAIN), $paramsSize);
$paramsResponsitive = array("w1" => 940, "sw1" => 770, "w2" => 780, "sw2" => 500, "w3" => 510, "sw3" => 310);
$sliderMainSettings->addCustom("responsitive_settings", "responsitive", "", __("Custom Responsive Sizes"), $paramsResponsitive);
$sliderMainSettings->addHr();
self::storeSettings("slider_main", $sliderMainSettings);
//set "slider_params" settings.
$sliderParamsSettings = new UniteSettingsAdvancedRev();
$sliderParamsSettings->loadXMLFile(self::$path_settings . "/slider_settings.xml");
//update transition type setting.
$settingFirstType = $sliderParamsSettings->getSettingByName("first_transition_type");
$operations = new RevOperations();
$arrTransitions = $operations->getArrTransition();
$settingFirstType["items"] = $arrTransitions;
$sliderParamsSettings->updateArrSettingByName("first_transition_type", $settingFirstType);
//store params
self::storeSettings("slider_params", $sliderParamsSettings);
?>
				
开发者ID:kivivuori,项目名称:jotain,代码行数:30,代码来源:slider_settings.php

示例7: array

$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
$params = array("description" => Mage::helper('nwdrevslider')->__("The duration of the transition (Default:300, min: 100 max 2000). "), "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_duration", "300", Mage::helper('nwdrevslider')->__("Transition Duration"), $params);
if (!isset($sliderDelay)) {
    $sliderDelay = 0;
}
//delay
$params = array("description" => Mage::helper('nwdrevslider')->__("A new delay value for the Slide. If no delay defined per slide, the delay defined via Options (") . $sliderDelay . Mage::helper('nwdrevslider')->__("ms) will be used"), "class" => "small", "datatype" => UniteSettingsRev::DATATYPE_NUMBEROREMTY);
$slideSettings->addTextBox("delay", "", Mage::helper('nwdrevslider')->__("Delay"), $params);
$params = array("description" => Mage::helper('nwdrevslider')->__(""), "class" => "small");
$slideSettings->addRadio("save_performance", array("on" => Mage::helper('nwdrevslider')->__("On"), "off" => Mage::helper('nwdrevslider')->__("Off")), Mage::helper('nwdrevslider')->__("Save Performance"), "off", $params);
$slideSettings->addHr("");
//-----------------------
//enable link
$slideSettings->addSelect_boolean("enable_link", Mage::helper('nwdrevslider')->__("Enable Link"), false, Mage::helper('nwdrevslider')->__("Enable"), Mage::helper('nwdrevslider')->__("Disable"));
$slideSettings->startBulkControl("enable_link", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
//link type
$slideSettings->addRadio("link_type", array("regular" => Mage::helper('nwdrevslider')->__("Regular"), "slide" => Mage::helper('nwdrevslider')->__("To Slide")), Mage::helper('nwdrevslider')->__("Link Type"), "regular");
//link
$params = array('id' => 'rev_link', "description" => Mage::helper('nwdrevslider')->__("A link on the whole slide pic (use %view_link% or %cart_link% in template sliders to link to a product or add to cart)"));
$slideSettings->addTextBox("link", "", Mage::helper('nwdrevslider')->__("Slide Link"), $params);
//link target
$params = array("description" => Mage::helper('nwdrevslider')->__("The target of the slide link"));
$slideSettings->addSelect("link_open_in", array("same" => Mage::helper('nwdrevslider')->__("Same Window"), "new" => Mage::helper('nwdrevslider')->__("New Window")), Mage::helper('nwdrevslider')->__("Link Open In"), "same", $params);
//num_slide_link
$arrSlideLink = array();
开发者ID:perseusl,项目名称:kingdavid,代码行数:31,代码来源:slide_settings.php

示例8: UniteSettingsAdvancedRev

			<?php 
//set "slider_main" settings
$sliderMainSettings = new UniteSettingsAdvancedRev();
$sliderMainSettings->addTextBox("title", "", ControllerModulerevslideropencart::$lang_var['Slider_Title'], array("description" => ControllerModulerevslideropencart::$lang_var['title_slider'], "required" => "true"));
$sliderMainSettings->addTextBox("alias", "", ControllerModulerevslideropencart::$lang_var['Slider_Alias'], array("description" => ControllerModulerevslideropencart::$lang_var['alias_slider'], "required" => "true"));
$sliderMainSettings->addHr();
//source type
$arrSourceTypes = array("posts" => ControllerModulerevslideropencart::$lang_var['Posts'], "specific_posts" => ControllerModulerevslideropencart::$lang_var['Specific_Post'], "gallery" => ControllerModulerevslideropencart::$lang_var['Gallery']);
$sliderMainSettings->addRadio("source_type", $arrSourceTypes, ControllerModulerevslideropencart::$lang_var['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, ControllerModulerevslideropencart::$lang_var['Products'], "product", $arrParams);
//post categories
$arrParams = array("args" => "multiple size='7'");
$sliderMainSettings->addSelect("post_category", array(), ControllerModulerevslideropencart::$lang_var['Product_Categories'], "", $arrParams);
//sort by
$arrSortBy = UniteFunctionsWPRev::getArrSortBy();
$sliderMainSettings->addSelect("post_sortby", $arrSortBy, ControllerModulerevslideropencart::$lang_var['Sort_Posts'], RevSlider::DEFAULT_POST_SORTBY);
//start set IMages Size
$arrParams = array("class" => "small", "unit" => "posts");
$sliderMainSettings->addTextBox("prd_img_width", "880", ControllerModulerevslideropencart::$lang_var['Product_Image_Width'], $arrParams);
$sliderMainSettings->addTextBox("prd_img_height", "345", ControllerModulerevslideropencart::$lang_var['Product_Image_Height'], $arrParams);
//End set IMages Size
//sort direction
$arrSortDir = UniteFunctionsWPRev::getArrSortDirection();
$sliderMainSettings->addRadio("posts_sort_direction", $arrSortDir, ControllerModulerevslideropencart::$lang_var['Sort_Direction'], RevSlider::DEFAULT_POST_SORTDIR);
//max posts for slider
$arrParams = array("class" => "small", "unit" => "posts");
$sliderMainSettings->addTextBox("max_slider_posts", "30", ControllerModulerevslideropencart::$lang_var['Max_Posts'], $arrParams);
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:31,代码来源:slider_settings.php

示例9: UniteSettingsAdvancedRev

<?php

//set "slider_main" settings
$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
开发者ID:perseusl,项目名称:kingdavid,代码行数:31,代码来源:slider_settings.php

示例10: array

$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");
//link type
$slideSettings->addRadio("link_type", array("regular" => "Regular", "slide" => "To Slide"), "Link Type", "regular");
//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);
//num_slide_link
$arrSlideLink = array("nothing" => "-- Not Chosen --", "next" => "-- Next Slide --", "prev" => "-- Previous Slide --");
foreach ($arrSlideNames as $slideNameID => $slideName) {
    $arrSlideLink[$slideNameID] = $slideName;
}
$slideSettings->addSelect("slide_link", $arrSlideLink, "Link To Slide", "nothing");
$slideSettings->addHr("link_sap");
$slideSettings->endBulkControl();
$slideSettings->addControl("link_type", "slide_link", UniteSettingsRev::CONTROL_TYPE_ENABLE, "slide");
开发者ID:ConceptHaus,项目名称:huasca,代码行数:31,代码来源:slide_settings.php

示例11: array

$params = array("description" => ControllerModulerevslideropencart::$lang_var['slide_divided'], "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("slot_amount", "7", ControllerModulerevslideropencart::$lang_var['Slot_Amount'], $params);
//rotation:
$params = array("description" => ControllerModulerevslideropencart::$lang_var['Simple_Transitions'], "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_rotation", "0", ControllerModulerevslideropencart::$lang_var['Rotation'], $params);
//transition speed
$params = array("description" => ControllerModulerevslideropencart::$lang_var['duration_transition'], "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_duration", "300", ControllerModulerevslideropencart::$lang_var['Transition_Duration'], $params);
if (!isset($sliderDelay)) {
    $sliderDelay = 0;
}
//delay
$params = array("description" => ControllerModulerevslideropencart::$lang_var['start_delay_value'] . $sliderDelay . ControllerModulerevslideropencart::$lang_var['end_delay_value'], "class" => "small", "datatype" => UniteSettingsRev::DATATYPE_NUMBEROREMTY);
$slideSettings->addTextBox("delay", "", ControllerModulerevslideropencart::$lang_var['Delay'], $params);
$params = array("description" => "", "class" => "small");
$slideSettings->addRadio("save_performance", array("on" => ControllerModulerevslideropencart::$lang_var['On'], "off" => ControllerModulerevslideropencart::$lang_var['off']), ControllerModulerevslideropencart::$lang_var['Save_Performance'], "off", $params);
$slideSettings->addHr("");
//-----------------------
//enable link
$slideSettings->addSelect_boolean("enable_link", ControllerModulerevslideropencart::$lang_var['Enable_Link'], false, ControllerModulerevslideropencart::$lang_var['Enable'], ControllerModulerevslideropencart::$lang_var['Disable']);
$slideSettings->startBulkControl("enable_link", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
//link type
$slideSettings->addRadio("link_type", array("regular" => ControllerModulerevslideropencart::$lang_var['Regular'], "slide" => ControllerModulerevslideropencart::$lang_var['To_Slide']), ControllerModulerevslideropencart::$lang_var['Link_Type'], "regular");
//link
$params = array('id' => 'rev_link', "description" => ControllerModulerevslideropencart::$lang_var['template_sliders_link']);
$slideSettings->addTextBox("link", "", ControllerModulerevslideropencart::$lang_var['Slide_Link'], $params);
//link target
$params = array("description" => ControllerModulerevslideropencart::$lang_var['Target_slide_link']);
$slideSettings->addSelect("link_open_in", array("same" => ControllerModulerevslideropencart::$lang_var['Same_Window'], "new" => ControllerModulerevslideropencart::$lang_var['New_Window']), ControllerModulerevslideropencart::$lang_var['Link_Open'], "same", $params);
//num_slide_link
$arrSlideLink = array();
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:31,代码来源:slide_settings.php

示例12: array

$params = array("description" => RevsliderPrestashop::$lang['slide_divided'], "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("slot_amount", "7", RevsliderPrestashop::$lang['Slot_Amount'], $params);
//rotation:
$params = array("description" => RevsliderPrestashop::$lang['Simple_Transitions'], "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_rotation", "0", RevsliderPrestashop::$lang['Rotation'], $params);
//transition speed
$params = array("description" => RevsliderPrestashop::$lang['duration_transition'], "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_duration", "300", RevsliderPrestashop::$lang['Transition_Duration'], $params);
if (!isset($sliderDelay)) {
    $sliderDelay = 0;
}
//delay
$params = array("description" => RevsliderPrestashop::$lang['start_delay_value'] . $sliderDelay . RevsliderPrestashop::$lang['end_delay_value'], "class" => "small", "datatype" => UniteSettingsRev::DATATYPE_NUMBEROREMTY);
$slideSettings->addTextBox("delay", "", RevsliderPrestashop::$lang['Delay'], $params);
$params = array("description" => "", "class" => "small");
$slideSettings->addRadio("save_performance", array("on" => RevsliderPrestashop::$lang['on'], "off" => RevsliderPrestashop::$lang['off']), RevsliderPrestashop::$lang['Save_Performance'], "off", $params);
//-----------------------
//enable link
$slideSettings->addSelect_boolean("enable_link", RevsliderPrestashop::$lang['Enable_Link'], false, RevsliderPrestashop::$lang['Enable'], RevsliderPrestashop::$lang['Disable']);
$slideSettings->startBulkControl("enable_link", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
//link type
$slideSettings->addRadio("link_type", array("regular" => RevsliderPrestashop::$lang['Regular'], "slide" => RevsliderPrestashop::$lang['To_Slide']), RevsliderPrestashop::$lang['Link_Type'], "regular");
//link
$params = array("description" => RevsliderPrestashop::$lang['template_sliders_link']);
$slideSettings->addTextBox("link", "", RevsliderPrestashop::$lang['Slide_Link'], $params);
//link target
$params = array("description" => RevsliderPrestashop::$lang['Target_slide_link']);
$slideSettings->addSelect("link_open_in", array("same" => RevsliderPrestashop::$lang['Same_Window'], "new" => RevsliderPrestashop::$lang['New_Window']), RevsliderPrestashop::$lang['Link_Open'], "same", $params);
//num_slide_link
$arrSlideLink = array();
$arrSlideLink["nothing"] = RevsliderPrestashop::$lang['Not_Chosen'];
开发者ID:evgrishin,项目名称:se1614,代码行数:31,代码来源:slide_settings.php


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