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


PHP UniteSettingsAdvancedRev::addChecklist方法代码示例

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


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

示例1: array

    $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
$params = array("description" => __ug("The appearance transitions of this slide.", REVSLIDER_TEXTDOMAIN), "minwidth" => "250px");
$slideSettings->addChecklist("slide_transition", $arrTransitions, __ug("Transitions", REVSLIDER_TEXTDOMAIN), $defaultTransition, $params);
//slot amount
$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);
开发者ID:naka211,项目名称:myloyal,代码行数:31,代码来源:slide_settings.php

示例2: array

//title
$params = array("description" => __("The title of the slide, will be shown in the slides list.", REVSLIDER_TEXTDOMAIN), "class" => "medium");
$slideSettings->addTextBox("title", __("Slide", REVSLIDER_TEXTDOMAIN), __("Slide Title", REVSLIDER_TEXTDOMAIN), $params);
//state
$params = array("description" => __("The state of the slide. The unpublished slide will be excluded from the slider.", REVSLIDER_TEXTDOMAIN));
$slideSettings->addSelect("state", array("published" => __("Published", REVSLIDER_TEXTDOMAIN), "unpublished" => __("Unpublished", REVSLIDER_TEXTDOMAIN)), __("State", REVSLIDER_TEXTDOMAIN), "published", $params);
$isWpmlExists = UniteWpmlRev::isWpmlExists();
$useWpml = $slider->getParam("use_wpml", "off");
if ($isWpmlExists && $useWpml == "on") {
    $arrLangs = UniteWpmlRev::getArrLanguages();
    $params = array("description" => __("The language of the slide (uses WPML plugin).", REVSLIDER_TEXTDOMAIN));
    $slideSettings->addSelect("lang", $arrLangs, __("Language", REVSLIDER_TEXTDOMAIN), "all", $params);
}
//transition
$params = array("description" => __("The appearance transitions of this slide.", REVSLIDER_TEXTDOMAIN), "minwidth" => "450px");
$slideSettings->addChecklist("slide_transition", $arrTransitions, __("Transitions", REVSLIDER_TEXTDOMAIN), "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.", REVSLIDER_TEXTDOMAIN), "class" => "small");
$slideSettings->addTextBox("slot_amount", "7", __("Slot Amount", REVSLIDER_TEXTDOMAIN), $params);
//rotation:
$params = array("description" => __("Rotation (-720 -> 720, 999 = random) Only for Simple Transitions.", REVSLIDER_TEXTDOMAIN), "class" => "small");
$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");
$slideSettings->addTextBox("transition_duration", "300", __("Transition Duration", REVSLIDER_TEXTDOMAIN), $params);
//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");
$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));
开发者ID:scoutrul,项目名称:sys,代码行数:31,代码来源:slide_settings.php

示例3: array

    $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
$params = array("description" => ControllerModulerevslideropencart::$lang_var['appearance_transitions_slide'], "minwidth" => "250px");
$slideSettings->addChecklist("slide_transition", $arrTransitions, ControllerModulerevslideropencart::$lang_var['Transitions'], $defaultTransition, $params);
//slot amount
$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);
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:31,代码来源:slide_settings.php

示例4: 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" => 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:
开发者ID:perseusl,项目名称:kingdavid,代码行数:30,代码来源:slide_settings.php

示例5: array

    $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
$params = array("description" => RevsliderPrestashop::$lang['appearance_transitions_slide'], "minwidth" => "250px");
$slideSettings->addChecklist("slide_transition", $arrTransitions, RevsliderPrestashop::$lang['Transitions'], $defaultTransition, $params);
//slot amount
$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);
开发者ID:evgrishin,项目名称:se1614,代码行数:31,代码来源:slide_settings.php


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