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


PHP UniteSettingsAdvancedRev::addDatePicker方法代码示例

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


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

示例1: array

$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
$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);
开发者ID:naka211,项目名称:myloyal,代码行数:31,代码来源:slide_settings.php

示例2: array

$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
$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);
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:31,代码来源:slide_settings.php

示例3: array

$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
$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);
开发者ID:perseusl,项目名称:kingdavid,代码行数:31,代码来源:slide_settings.php

示例4: array

$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
$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);
开发者ID:evgrishin,项目名称:se1614,代码行数:31,代码来源:slide_settings.php


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