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


PHP UniteSettingsAdvancedRev::addTextBox方法代码示例

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


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

<?php

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

示例4: RevOperations

$operations = new RevOperations();
//set Layer settings
$contentCSS = $operations->getCaptionsContent();
$arrAnimations = $operations->getArrAnimations();
$arrEndAnimations = $operations->getArrEndAnimations();
$htmlButtonDown = '<div id="layer_captions_down" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-arrowthick-1-s"></span></div>';
$buttonEditStyles = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "<i class=\"revicon-magic\"></i>Edit Style", "button_edit_css", "button-primary revblue");
$buttonEditStylesGlobal = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "<i class=\"revicon-palette\"></i>Edit Global Style", "button_edit_css_global", "button-primary revblue");
$arrEasing = $operations->getArrEasing();
$arrEndEasing = $operations->getArrEndEasing();
$captionsAddonHtml = $htmlButtonDown . $buttonEditStyles . $buttonEditStylesGlobal;
//set Layer settings
$layerSettings = new UniteSettingsAdvancedRev();
$layerSettings->addSection(__("Layer Params", REVSLIDER_TEXTDOMAIN), __("layer_params", REVSLIDER_TEXTDOMAIN));
$layerSettings->addSap(__("Layer Params", REVSLIDER_TEXTDOMAIN), __("layer_params", REVSLIDER_TEXTDOMAIN));
$layerSettings->addTextBox(__("layer_caption", REVSLIDER_TEXTDOMAIN), __("caption_green", REVSLIDER_TEXTDOMAIN), __("Style", REVSLIDER_TEXTDOMAIN), array(UniteSettingsRev::PARAM_ADDTEXT => $captionsAddonHtml, "class" => "textbox-caption"));
$addHtmlTextarea = '';
if ($sliderTemplate == "true") {
    $addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "insert post template", "linkInsertTemplate", "disabled");
}
$addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "insert button", "linkInsertButton", "disabled");
$layerSettings->addTextArea("layer_text", "", __("Text / Html", REVSLIDER_TEXTDOMAIN), array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", __("Image Link", REVSLIDER_TEXTDOMAIN), array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => __("Same Window", REVSLIDER_TEXTDOMAIN), "new" => __("New Window", REVSLIDER_TEXTDOMAIN)), __("Link Open In", REVSLIDER_TEXTDOMAIN), "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, __("Start Animation", REVSLIDER_TEXTDOMAIN), "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, __("Start Easing", REVSLIDER_TEXTDOMAIN), "Power3.easeInOut");
$params = array("unit" => __("ms", REVSLIDER_TEXTDOMAIN));
$layerSettings->addTextBox("layer_speed", "", "Start Speed", $params);
$layerSettings->addCheckbox("layer_hidden", false, __("Hide Under Width", REVSLIDER_TEXTDOMAIN));
//scale for img
$textScaleX = __("Width", REVSLIDER_TEXTDOMAIN);
开发者ID:ConceptHaus,项目名称:huasca,代码行数:31,代码来源:layer_settings.php

示例5: UniteSettingsAdvancedRev

//set Layer settings
$contentCSS = $operations->getCaptionsContent();
$arrAnimations = $operations->getArrAnimations();
$arrEndAnimations = $operations->getArrEndAnimations();
$htmlButtonDown = '<div id="layer_captions_down" style="width:30px; text-align:center;padding:0px;" class="revgray button-primary"><i class="eg-icon-down-dir"></i></div>';
$buttonEditStyles = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "<i class=\"revicon-magic\"></i>Edit Style", "button_edit_css", "button-primary revblue");
$buttonEditStylesGlobal = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "<i class=\"revicon-palette\"></i>Edit Global Style", "button_edit_css_global", "button-primary revblue");
$arrSplit = $operations->getArrSplit();
$arrEasing = $operations->getArrEasing();
$arrEndEasing = $operations->getArrEndEasing();
$captionsAddonHtml = $htmlButtonDown . $buttonEditStyles . $buttonEditStylesGlobal;
//set Layer settings
$layerSettings = new UniteSettingsAdvancedRev();
$layerSettings->addSection(ControllerModulerevslideropencart::$lang_var['Layer_Params'], ControllerModulerevslideropencart::$lang_var['layer_params']);
$layerSettings->addSap(ControllerModulerevslideropencart::$lang_var['Layer_Params'], ControllerModulerevslideropencart::$lang_var['layer_params']);
$layerSettings->addTextBox("layer_caption", ControllerModulerevslideropencart::$lang_var['caption_green'], ControllerModulerevslideropencart::$lang_var['Style'], array(UniteSettingsRev::PARAM_ADDTEXT => $captionsAddonHtml, "class" => "textbox-caption"));
$addHtmlTextarea = '';
if ($sliderTemplate == "true") {
    $addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Insert Meta", "linkInsertTemplate", "disabled revblue button-primary");
}
$addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Insert Button", "linkInsertButton", "disabled revblue button-primary");
$layerSettings->addTextArea("layer_text", "", ControllerModulerevslideropencart::$lang_var['Text_Html'], array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", ControllerModulerevslideropencart::$lang_var['Image_Link'], array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => ControllerModulerevslideropencart::$lang_var['Same_Window'], "new" => ControllerModulerevslideropencart::$lang_var['New_Window']), ControllerModulerevslideropencart::$lang_var['Link_Open'], "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, ControllerModulerevslideropencart::$lang_var['Start_Animation'], "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, ControllerModulerevslideropencart::$lang_var['Start_Easing'], "Power3.easeInOut");
$params = array("unit" => ControllerModulerevslideropencart::$lang_var['ms']);
$paramssplit = array("unit" => ControllerModulerevslideropencart::$lang_var['ms_keep_low']);
$layerSettings->addTextBox("layer_speed", "", "Start Duration", $params);
$layerSettings->addTextBox("layer_splitdelay", "10", "Split Delay", $paramssplit);
$layerSettings->addSelect("layer_split", $arrSplit, ControllerModulerevslideropencart::$lang_var['Split_Text_per'], "none");
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:31,代码来源:layer_settings.php

示例6: UniteSettingsAdvancedRev

//set Layer settings
$contentCSS = $operations->getCaptionsContent();
$arrAnimations = $operations->getArrAnimations();
$arrEndAnimations = $operations->getArrEndAnimations();
$htmlButtonDown = '<div id="layer_captions_down" style="width:30px; text-align:center;padding:0px;" class="revgray button-primary"><i class="eg-icon-down-dir"></i></div>';
$buttonEditStyles = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "<i class=\"revicon-magic\"></i>Edit Style", "button_edit_css", "button-primary revblue");
$buttonEditStylesGlobal = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "<i class=\"revicon-palette\"></i>Edit Global Style", "button_edit_css_global", "button-primary revblue");
$arrSplit = $operations->getArrSplit();
$arrEasing = $operations->getArrEasing();
$arrEndEasing = $operations->getArrEndEasing();
$captionsAddonHtml = $htmlButtonDown . $buttonEditStyles . $buttonEditStylesGlobal;
//set Layer settings
$layerSettings = new UniteSettingsAdvancedRev();
$layerSettings->addSection(__("Layer Params", REVSLIDER_TEXTDOMAIN), __("layer_params", REVSLIDER_TEXTDOMAIN));
$layerSettings->addSap(__("Layer Params", REVSLIDER_TEXTDOMAIN), __("layer_params", REVSLIDER_TEXTDOMAIN));
$layerSettings->addTextBox("layer_caption", __("caption_green", REVSLIDER_TEXTDOMAIN), __("Style", REVSLIDER_TEXTDOMAIN), array(UniteSettingsRev::PARAM_ADDTEXT => $captionsAddonHtml, "class" => "textbox-caption"));
$addHtmlTextarea = '';
if ($sliderTemplate == "true") {
    $addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Insert Meta", "linkInsertTemplate", "disabled revblue button-primary");
}
$addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Insert Button", "linkInsertButton", "disabled revblue button-primary");
$layerSettings->addTextArea("layer_text", "", __("Text / Html", REVSLIDER_TEXTDOMAIN), array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", __("Image Link", REVSLIDER_TEXTDOMAIN), array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => __("Same Window", REVSLIDER_TEXTDOMAIN), "new" => __("New Window", REVSLIDER_TEXTDOMAIN)), __("Link Open In", REVSLIDER_TEXTDOMAIN), "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, __("Start Animation", REVSLIDER_TEXTDOMAIN), "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, __("Start Easing", REVSLIDER_TEXTDOMAIN), "Power3.easeInOut");
$params = array("unit" => __("ms", REVSLIDER_TEXTDOMAIN));
$paramssplit = array("unit" => __(" ms (keep it low i.e. 1- 200)", REVSLIDER_TEXTDOMAIN));
$layerSettings->addTextBox("layer_speed", "", "Start Duration", $params);
$layerSettings->addTextBox("layer_splitdelay", "10", "Split Delay", $paramssplit);
$layerSettings->addSelect("layer_split", $arrSplit, __("Split Text per", REVSLIDER_TEXTDOMAIN), "none");
开发者ID:szpaddy,项目名称:the7,代码行数:31,代码来源:layer_settings.php

示例7: RevOperations

<?php

$operations = new RevOperations();
//set Slide settings
$arrTransitions = $operations->getArrTransition();
$slideSettings = new UniteSettingsAdvancedRev();
//transition
$params = array("description" => "The appearance transition of this slide.");
$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");
开发者ID:rohichurch,项目名称:rohichurch-wp,代码行数:31,代码来源:slide_settings.php

示例8: 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

示例9: array

<?php

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

示例10: 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

示例11: 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

示例12: RevOperations

$operations = new RevOperations();
//set Layer settings
$contentCSS = $operations->getCaptionsContent();
$arrAnimations = $operations->getArrAnimations();
$arrEndAnimations = $operations->getArrEndAnimations();
$htmlButtonDown = '<div id="layer_captions_down" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-arrowthick-1-s"></span></div>';
$buttonEditStyles = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Edit CSS File", "button_edit_css", "button-secondary");
$arrEasing = $operations->getArrEasing();
$arrEndEasing = $operations->getArrEndEasing();
$captionsAddonHtml = $htmlButtonDown . $buttonEditStyles;
//set Layer settings
$layerSettings = new UniteSettingsAdvancedRev();
$layerSettings->addSection(__("Layer Params", REVSLIDER_TEXTDOMAIN), __("layer_params", REVSLIDER_TEXTDOMAIN));
$layerSettings->addSap(__("Layer Params", REVSLIDER_TEXTDOMAIN), __("layer_params"));
$layerSettings->addTextBox(__("layer_caption"), __("caption_green"), __("Style", REVSLIDER_TEXTDOMAIN), array(UniteSettingsRev::PARAM_ADDTEXT => $captionsAddonHtml, "class" => "textbox-caption"));
$addHtmlTextarea = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "insert button", "linkInsertButton", "disabled");
$layerSettings->addTextArea("layer_text", "", __("Text / Html", REVSLIDER_TEXTDOMAIN), array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", __("Image Link", REVSLIDER_TEXTDOMAIN), array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => __("Same Window", REVSLIDER_TEXTDOMAIN), "new" => __("New Window", REVSLIDER_TEXTDOMAIN)), __("Link Open In", REVSLIDER_TEXTDOMAIN), "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, __("Animation", REVSLIDER_TEXTDOMAIN), "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, __("Easing", REVSLIDER_TEXTDOMAIN), "easeOutExpo");
$params = array("unit" => __("ms", REVSLIDER_TEXTDOMAIN));
$layerSettings->addTextBox("layer_speed", "", "Speed", $params);
$layerSettings->addCheckbox("layer_hidden", false, __("Hide Under Width", REVSLIDER_TEXTDOMAIN));
//put left top
$textOffsetX = __("OffsetX", REVSLIDER_TEXTDOMAIN);
$textX = __("X", REVSLIDER_TEXTDOMAIN);
$params = array("attrib_text" => "data-textoffset='{$textOffsetX}' data-textnormal='{$textX}'");
$layerSettings->addTextBox("layer_left", "", __("X", REVSLIDER_TEXTDOMAIN), $params);
$textOffsetY = __("OffsetY", REVSLIDER_TEXTDOMAIN);
开发者ID:kivivuori,项目名称:jotain,代码行数:30,代码来源:layer_settings.php

示例13: UniteSettingsAdvancedRev

<?php

//set Slide settings
$arrTransitions = $operations->getArrTransition();
$arrSlideNames = $slider->getArrSlideNames();
$slideSettings = new UniteSettingsAdvancedRev();
//title
$params = array("description" => "The title of the slide, will be shown in the slides list.", "class" => "medium");
$slideSettings->addTextBox("title", "Slide", "Slide Title", $params);
//state
$params = array("description" => "The state of the slide. The unpublished slide will be excluded from the slider.");
$slideSettings->addSelect("state", array("published" => "Published", "unpublished" => "Unpublished"), "State", "published", $params);
//transition
$params = array("description" => "The appearance transition of this slide.");
$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 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");
开发者ID:ashanrupasinghe,项目名称:govforuminstalledlocal,代码行数:31,代码来源:slide_settings.php

示例14: UniteSettingsAdvancedRev

			<?php 
//set "slider_main" settings
$sliderMainSettings = new UniteSettingsAdvancedRev();
$sliderMainSettings->addTextBox("title", "", RevsliderPrestashop::$lang['Slider_Title'], array("description" => RevsliderPrestashop::$lang['title_slider'], "required" => "true"));
$sliderMainSettings->addTextBox("alias", "", RevsliderPrestashop::$lang['Slider_Alias'], array("description" => RevsliderPrestashop::$lang['alias_slider'], "required" => "true"));
$sliderMainSettings->addHr();
//start set IMages Size
$gethooks = array();
require_once dirname(__FILE__) . '../../hook/hook.php';
$hookobj = new sds_rev_hooks_class();
$customhooks = $hookobj->get_all_hooks();
if (isset($customhooks) && !empty($customhooks)) {
    foreach ($customhooks as $values) {
        foreach ($values as $valu) {
            $gethooks[$valu] = $valu;
        }
    }
}
$sliderMainSettings->addSelect("displayhook", $gethooks, RevsliderPrestashop::$lang['Display_Hook'], 'id');
$arrSourceTypes = array("posts" => RevsliderPrestashop::$lang['Products'], "specific_posts" => RevsliderPrestashop::$lang['Specific_Products'], "gallery" => RevsliderPrestashop::$lang['Gallery']);
$sliderMainSettings->addRadio("source_type", $arrSourceTypes, RevsliderPrestashop::$lang['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, RevsliderPrestashop::$lang['Types'], "product", $arrParams);
//post categories
$arrParams = array("args" => "multiple size='7'");
$sliderMainSettings->addSelect("post_category", array(), RevsliderPrestashop::$lang['Product_Categories'], "", $arrParams);
//sort by
$arrSortBy = UniteFunctionsWPRev::getArrSortBy();
开发者ID:evgrishin,项目名称:se1614,代码行数:31,代码来源:slider_settings.php

示例15: RevOperations

<?php

$operations = new RevOperations();
//set Layer settings
$contentCSS = $operations->getCaptionsContent();
$arrAnimations = $operations->getArrAnimations();
$htmlButtonDown = '<div id="layer_captions_down" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-arrowthick-1-s"></span></div>';
$buttonEditStyles = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Edit CSS File", "button_edit_css", "button-secondary");
$arrEasing = $operations->getArrEasing();
$captionsAddonHtml = $htmlButtonDown . $buttonEditStyles;
//set Layer settings
$layerSettings = new UniteSettingsAdvancedRev();
$layerSettings->addSection("Layer Params", "layer_params");
$layerSettings->addSap("Layer Params", "layer_params");
$layerSettings->addTextBox("layer_caption", "caption_green", "Style", array(UniteSettingsRev::PARAM_ADDTEXT => $captionsAddonHtml, "class" => "textbox-caption"));
$addHtmlTextarea = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "insert button", "linkInsertButton", "disabled");
$layerSettings->addTextArea("layer_text", "", "Text / Html", array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", "Image Link", array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => "Same Window", "new" => "New Window"), "Link Open In", "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, "Animation", "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, "Easing", "easeOutExpo");
$layerSettings->addTextBox("layer_speed", "", "Speed");
$layerSettings->addTextBox("layer_left", "", "X");
$layerSettings->addTextBox("layer_top", "", "Y");
$layerSettings->addButton("button_edit_video", "Edit Video", array("hidden" => true));
self::storeSettings("layer_settings", $layerSettings);
//store settings of content css for editing on the client.
self::storeSettings("css_captions_content", $contentCSS);
开发者ID:rohichurch,项目名称:rohichurch-wp,代码行数:28,代码来源:layer_settings.php


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