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


PHP UniteSettingsAdvancedRev::addCustom方法代码示例

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


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

示例1: array

$sliderMainSettings->addTextBox("fullscreen_offset_size", "", __("Offset Size", REVSLIDER_TEXTDOMAIN), $arrParams);
$sliderMainSettings->addControl("slider_type", "fullscreen_offset_size", UniteSettingsRev::CONTROL_TYPE_SHOW, "fullscreen");
$arrParams = array("description" => __("", REVSLIDER_TEXTDOMAIN));
$sliderMainSettings->addTextBox("fullscreen_min_height", "", __("Min. Fullscreen Height", REVSLIDER_TEXTDOMAIN), $arrParams);
$sliderMainSettings->addControl("slider_type", "fullscreen_min_height", UniteSettingsRev::CONTROL_TYPE_SHOW, "fullscreen");
$sliderMainSettings->addRadio("full_screen_align_force", array("on" => __("On", REVSLIDER_TEXTDOMAIN), "off" => __("Off", REVSLIDER_TEXTDOMAIN)), __("FullScreen Align", REVSLIDER_TEXTDOMAIN), "off");
$sliderMainSettings->addRadio("auto_height", array("on" => __("On", REVSLIDER_TEXTDOMAIN), "off" => __("Off", REVSLIDER_TEXTDOMAIN)), __("Unlimited Height", REVSLIDER_TEXTDOMAIN), "off");
$sliderMainSettings->addRadio("force_full_width", array("on" => __("On", REVSLIDER_TEXTDOMAIN), "off" => __("Off", REVSLIDER_TEXTDOMAIN)), __("Force Full Width", REVSLIDER_TEXTDOMAIN), "off");
$arrParams = array("description" => __("", REVSLIDER_TEXTDOMAIN));
$sliderMainSettings->addTextBox("min_height", "0", __("Min. Height", REVSLIDER_TEXTDOMAIN), $arrParams);
$paramsSize = array("width" => 960, "height" => 350, "datatype" => UniteSettingsRev::DATATYPE_NUMBER, "description" => __('
- The <span class="prevxmpl">LAYERS GRID</span> is the container of layers within the <span class="prevxmpl">SLIDER</span> <br>
- The "Grid Size" setting does not relate to the actual "Slider Size". <br>
- "Max Height" of the slider equals the "Grid Height"<br>
- "Slider Width" can be greater than the set "Grid Width"', REVSLIDER_TEXTDOMAIN));
$sliderMainSettings->addCustom("slider_size", "slider_size", "", __("Layers Grid Size", REVSLIDER_TEXTDOMAIN), $paramsSize);
$paramsResponsitive = array("w1" => 940, "sw1" => 770, "w2" => 780, "sw2" => 500, "w3" => 510, "sw3" => 310, "datatype" => UniteSettingsRev::DATATYPE_NUMBER);
$sliderMainSettings->addCustom("responsitive_settings", "responsitive", "", __("Responsive Sizes", REVSLIDER_TEXTDOMAIN), $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();
if (count($arrTransitions) == 0) {
    $arrTransitions = $operations->getArrTransition(true);
}
//get premium transitions
开发者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

$arrParams = array("description" => Mage::helper('nwdrevslider')->__(""));
$sliderMainSettings->addTextBox("fullscreen_min_height", "", Mage::helper('nwdrevslider')->__("Min. Fullscreen Height"), $arrParams);
$sliderMainSettings->addControl("slider_type", "fullscreen_min_height", UniteSettingsRev::CONTROL_TYPE_SHOW, "fullscreen");
$sliderMainSettings->addRadio("full_screen_align_force", array("on" => Mage::helper('nwdrevslider')->__("On"), "off" => Mage::helper('nwdrevslider')->__("Off")), Mage::helper('nwdrevslider')->__("FullScreen Align"), "off");
$sliderMainSettings->addControl("slider_type", "full_screen_align_force", UniteSettingsRev::CONTROL_TYPE_SHOW, "fullscreen");
$sliderMainSettings->addRadio("auto_height", array("on" => Mage::helper('nwdrevslider')->__("On"), "off" => Mage::helper('nwdrevslider')->__("Off")), Mage::helper('nwdrevslider')->__("Unlimited Height"), "off");
$sliderMainSettings->addControl("slider_type", "auto_height", UniteSettingsRev::CONTROL_TYPE_SHOW, "fullwidth");
$sliderMainSettings->addRadio("force_full_width", array("on" => Mage::helper('nwdrevslider')->__("On"), "off" => Mage::helper('nwdrevslider')->__("Off")), Mage::helper('nwdrevslider')->__("Force Full Width"), "off");
$arrParams = array("description" => Mage::helper('nwdrevslider')->__(""));
$sliderMainSettings->addTextBox("min_height", "0", Mage::helper('nwdrevslider')->__("Min. Height"), $arrParams);
$paramsSize = array("width" => 960, "height" => 350, "datatype" => UniteSettingsRev::DATATYPE_NUMBER, "description" => Mage::helper('nwdrevslider')->__('
- The <span class="prevxmpl">LAYERS GRID</span> is the container of layers within the <span class="prevxmpl">SLIDER</span> <br>
- The "Grid Size" setting does not relate to the actual "Slider Size". <br>
- "Max Height" of the slider equals the "Grid Height"<br>
- "Slider Width" can be greater than the set "Grid Width"'));
$sliderMainSettings->addCustom("slider_size", "slider_size", "", Mage::helper('nwdrevslider')->__("Layers Grid Size"), $paramsSize);
$paramsResponsitive = array("w1" => 940, "sw1" => 770, "w2" => 780, "sw2" => 500, "w3" => 510, "sw3" => 310, "datatype" => UniteSettingsRev::DATATYPE_NUMBER);
$sliderMainSettings->addCustom("responsitive_settings", "responsitive", "", Mage::helper('nwdrevslider')->__("Responsive Sizes"), $paramsResponsitive);
$sliderMainSettings->addControl("slider_type", "responsitive", UniteSettingsRev::CONTROL_TYPE_SHOW, "responsitive");
$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();
if (count($arrTransitions) == 0) {
    $arrTransitions = $operations->getArrTransition(true);
}
开发者ID:perseusl,项目名称:kingdavid,代码行数:31,代码来源:slider_settings.php

示例4: array

$arrParams = array("class" => "medium", "description" => ControllerModulerevslideropencart::$lang_var['height_screen']);
$sliderMainSettings->addTextBox("fullscreen_offset_container", "", ControllerModulerevslideropencart::$lang_var['Offset_Containers'], $arrParams);
$sliderMainSettings->addControl("slider_type", "fullscreen_offset_container", UniteSettingsRev::CONTROL_TYPE_SHOW, "fullscreen");
$arrParams = array("class" => "medium", "description" => ControllerModulerevslideropencart::$lang_var['Defines_Offset']);
$sliderMainSettings->addTextBox("fullscreen_offset_size", "", ControllerModulerevslideropencart::$lang_var['Offset_Size'], $arrParams);
$sliderMainSettings->addControl("slider_type", "fullscreen_offset_size", UniteSettingsRev::CONTROL_TYPE_SHOW, "fullscreen");
$arrParams = array("description" => "");
$sliderMainSettings->addTextBox("fullscreen_min_height", "", ControllerModulerevslideropencart::$lang_var['Fullscreen_Height'], $arrParams);
$sliderMainSettings->addControl("slider_type", "fullscreen_min_height", UniteSettingsRev::CONTROL_TYPE_SHOW, "fullscreen");
$sliderMainSettings->addRadio("full_screen_align_force", array("on" => ControllerModulerevslideropencart::$lang_var['On'], "off" => ControllerModulerevslideropencart::$lang_var['Off']), ControllerModulerevslideropencart::$lang_var['FullScreen_Align'], "off");
$sliderMainSettings->addRadio("auto_height", array("on" => ControllerModulerevslideropencart::$lang_var['On'], "off" => ControllerModulerevslideropencart::$lang_var['Off']), ControllerModulerevslideropencart::$lang_var['Unlimited_Height'], "off");
$sliderMainSettings->addRadio("force_full_width", array("on" => ControllerModulerevslideropencart::$lang_var['On'], "off" => ControllerModulerevslideropencart::$lang_var['Off']), ControllerModulerevslideropencart::$lang_var['Force_Full_Width'], "off");
$arrParams = array("description" => "");
$sliderMainSettings->addTextBox("min_height", "0", ControllerModulerevslideropencart::$lang_var['Min_Height'], $arrParams);
$paramsSize = array("width" => 960, "height" => 350, "datatype" => UniteSettingsRev::DATATYPE_NUMBER, "description" => ControllerModulerevslideropencart::$lang_var['LAYERS_GRID_desc']);
$sliderMainSettings->addCustom("slider_size", "slider_size", "", ControllerModulerevslideropencart::$lang_var['Layers_Grid'], $paramsSize);
$paramsResponsitive = array("w1" => 940, "sw1" => 770, "w2" => 780, "sw2" => 500, "w3" => 510, "sw3" => 310, "datatype" => UniteSettingsRev::DATATYPE_NUMBER);
$sliderMainSettings->addCustom("responsitive_settings", "responsitive", "", ControllerModulerevslideropencart::$lang_var['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();
if (count($arrTransitions) == 0) {
    $arrTransitions = $operations->getArrTransition(true);
}
$settingFirstType["items"] = $arrTransitions;
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:31,代码来源:slider_settings.php

示例5: array

$arrParams = array("class" => "medium", "description" => RevsliderPrestashop::$lang['height_screen']);
$sliderMainSettings->addTextBox("fullscreen_offset_container", "", RevsliderPrestashop::$lang['Offset_Containers'], $arrParams);
$sliderMainSettings->addControl("slider_type", "fullscreen_offset_container", UniteSettingsRev::CONTROL_TYPE_SHOW, "fullscreen");
$arrParams = array("class" => "medium", "description" => RevsliderPrestashop::$lang['Defines_Offset']);
$sliderMainSettings->addTextBox("fullscreen_offset_size", "", RevsliderPrestashop::$lang['Offset_Size'], $arrParams);
$sliderMainSettings->addControl("slider_type", "fullscreen_offset_size", UniteSettingsRev::CONTROL_TYPE_SHOW, "fullscreen");
$arrParams = array("description" => "");
$sliderMainSettings->addTextBox("fullscreen_min_height", "", RevsliderPrestashop::$lang['Fullscreen_Height'], $arrParams);
$sliderMainSettings->addControl("slider_type", "fullscreen_min_height", UniteSettingsRev::CONTROL_TYPE_SHOW, "fullscreen");
$sliderMainSettings->addRadio("full_screen_align_force", array("on" => RevsliderPrestashop::$lang['on'], "off" => RevsliderPrestashop::$lang['off']), RevsliderPrestashop::$lang['FullScreen_Align'], "off");
$sliderMainSettings->addRadio("auto_height", array("on" => RevsliderPrestashop::$lang['on'], "off" => RevsliderPrestashop::$lang['off']), RevsliderPrestashop::$lang['Unlimited_Height'], "off");
$sliderMainSettings->addRadio("force_full_width", array("on" => RevsliderPrestashop::$lang['on'], "off" => RevsliderPrestashop::$lang['off']), RevsliderPrestashop::$lang['Force_Full_Width'], "off");
$arrParams = array("description" => "");
$sliderMainSettings->addTextBox("min_height", "0", RevsliderPrestashop::$lang['Min_Height'], $arrParams);
$paramsSize = array("width" => 960, "height" => 350, "datatype" => UniteSettingsRev::DATATYPE_NUMBER, "description" => __('
- The <span class="prevxmpl">LAYERS GRID</span> is the container of layers within the <span class="prevxmpl">SLIDER</span> <br>
- The "Grid Size" setting does not relate to the actual "Slider Size". <br>
- "Max Height" of the slider equals the "Grid Height"<br>
- "Slider Width" can be greater than the set "Grid Width"', REVSLIDER_TEXTDOMAIN));
$sliderMainSettings->addCustom("slider_size", "slider_size", "", RevsliderPrestashop::$lang['Layers_Grid'], $paramsSize);
$paramsResponsitive = array("w1" => 940, "sw1" => 770, "w2" => 780, "sw2" => 500, "w3" => 510, "sw3" => 310, "datatype" => UniteSettingsRev::DATATYPE_NUMBER);
$sliderMainSettings->addCustom("responsitive_settings", "responsitive", "", RevsliderPrestashop::$lang['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();
开发者ID:evgrishin,项目名称:se1614,代码行数:31,代码来源:slider_settings.php


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