本文整理汇总了PHP中UniteSettingsAdvancedRev::addSelect_boolean方法的典型用法代码示例。如果您正苦于以下问题:PHP UniteSettingsAdvancedRev::addSelect_boolean方法的具体用法?PHP UniteSettingsAdvancedRev::addSelect_boolean怎么用?PHP UniteSettingsAdvancedRev::addSelect_boolean使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UniteSettingsAdvancedRev
的用法示例。
在下文中一共展示了UniteSettingsAdvancedRev::addSelect_boolean方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$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();
$arrSlideLink["nothing"] = __ug("-- Not Chosen --", REVSLIDER_TEXTDOMAIN);
$arrSlideLink["next"] = __ug("-- Next Slide --", REVSLIDER_TEXTDOMAIN);
$arrSlideLink["prev"] = __ug("-- Previous Slide --", REVSLIDER_TEXTDOMAIN);
$arrSlideLinkLayers = $arrSlideLink;
示例2: array
$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");
$slideSettings->addControl("enable_link", "link_open_in", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
//-----------------------
//enable video
$params = array("description" => "Put a full width video on the slide");
$slideSettings->addSelect_boolean("enable_video", "Enable Full Width Video", false, "Enable", "Disable");
//video id
$params = array("description" => "The field can take Youtube ID (example: QohUdrgbD2k) or Vidmeo ID (example: 30300114)", "class" => "medium");
$slideSettings->addTextBox("video_id", "", "Video ID", $params);
示例3: array
$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();
$arrSlideLink["nothing"] = ControllerModulerevslideropencart::$lang_var['Not_Chosen'];
$arrSlideLink["next"] = ControllerModulerevslideropencart::$lang_var['Next_Slide'];
$arrSlideLink["prev"] = ControllerModulerevslideropencart::$lang_var['Previous_Slide'];
$arrSlideLinkLayers = $arrSlideLink;
示例4: array
$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();
$arrSlideLink["nothing"] = Mage::helper('nwdrevslider')->__("-- Not Chosen --");
$arrSlideLink["next"] = Mage::helper('nwdrevslider')->__("-- Next Slide --");
$arrSlideLink["prev"] = Mage::helper('nwdrevslider')->__("-- Previous Slide --");
$arrSlideLinkLayers = $arrSlideLink;
示例5: array
$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'];
$arrSlideLink["next"] = RevsliderPrestashop::$lang['Next_Slide'];
$arrSlideLink["prev"] = RevsliderPrestashop::$lang['Previous_Slide'];
$arrSlideLinkLayers = $arrSlideLink;