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


PHP UniteSettingsAdvancedRev::addButton方法代码示例

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


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

示例1: array

$layerSettings->addTextBox("layer_top", "", ControllerModulerevslideropencart::$lang_var['Y'], $params);
$layerSettings->addTextBox("layer_align_hor", "left", ControllerModulerevslideropencart::$lang_var['Hor_Align'], array("hidden" => true));
$layerSettings->addTextBox("layer_align_vert", "top", ControllerModulerevslideropencart::$lang_var['Vert_Align'], array("hidden" => true));
$para = array("unit" => ControllerModulerevslideropencart::$lang_var['nbsp_auto'], 'hidden' => true);
$layerSettings->addTextBox("layer_max_width", "auto", ControllerModulerevslideropencart::$lang_var['Max_Width'], $para);
$layerSettings->addTextBox("layer_max_height", "auto", ControllerModulerevslideropencart::$lang_var['Max_Height'], $para);
$layerSettings->addTextBox("layer_2d_rotation", "0", ControllerModulerevslideropencart::$lang_var['2D_Rotation'], array("hidden" => false, 'unit' => ' (-360 - 360)'));
$layerSettings->addTextBox("layer_2d_origin_x", "50", ControllerModulerevslideropencart::$lang_var['Rotation_Origin_X'], array("hidden" => false, 'unit' => '% (-100 - 200)'));
$layerSettings->addTextBox("layer_2d_origin_y", "50", ControllerModulerevslideropencart::$lang_var['Rotation_Origin_Y'], array("hidden" => false, 'unit' => '% (-100 - 200)'));
//advanced params
$arrWhiteSpace = array("normal" => ControllerModulerevslideropencart::$lang_var['Normal'], "pre" => ControllerModulerevslideropencart::$lang_var['Pre'], "nowrap" => ControllerModulerevslideropencart::$lang_var['No_Wrap'], "pre-wrap" => ControllerModulerevslideropencart::$lang_var['Pre_Wrap'], "pre-line" => ControllerModulerevslideropencart::$lang_var['Pre_Line']);
$layerSettings->addSelect("layer_whitespace", $arrWhiteSpace, ControllerModulerevslideropencart::$lang_var['White_Space'], "nowrap", array("hidden" => true));
$layerSettings->addSelect("layer_slide_link", $arrSlideLinkLayers, ControllerModulerevslideropencart::$lang_var['Link_To_Slide'], "nothing");
$params = array("unit" => ControllerModulerevslideropencart::$lang_var['px'], "hidden" => true);
$layerSettings->addTextBox("layer_scrolloffset", "0", ControllerModulerevslideropencart::$lang_var['Scroll_Under_Slider'], $params);
$layerSettings->addButton("button_change_image_source", ControllerModulerevslideropencart::$lang_var['Change_Image_Source'], array("hidden" => true, "class" => "button-primary revblue"));
$layerSettings->addTextBox("layer_alt", "", "Alt Text", array("hidden" => true, "class" => "area-alt-params"));
$layerSettings->addButton("button_edit_video", ControllerModulerevslideropencart::$lang_var['Edit_Video'], array("hidden" => true, "class" => "button-primary revblue"));
$params = array("unit" => ControllerModulerevslideropencart::$lang_var['ms']);
$paramssplit = array("unit" => ControllerModulerevslideropencart::$lang_var['ms_keep_low']);
$params_1 = array("unit" => ControllerModulerevslideropencart::$lang_var['ms'], 'hidden' => true);
$layerSettings->addTextBox("layer_endtime", "", ControllerModulerevslideropencart::$lang_var['End_Time'], $params_1);
$layerSettings->addTextBox("layer_endspeed", "", ControllerModulerevslideropencart::$lang_var['End_Duration'], $params);
$layerSettings->addTextBox("layer_endsplitdelay", "10", "End Split Delay", $paramssplit);
$layerSettings->addSelect("layer_endsplit", $arrSplit, ControllerModulerevslideropencart::$lang_var['Split_Text_per'], "none");
$layerSettings->addSelect("layer_endanimation", $arrEndAnimations, ControllerModulerevslideropencart::$lang_var['End_Animation'], "auto");
$layerSettings->addSelect("layer_endeasing", $arrEndEasing, ControllerModulerevslideropencart::$lang_var['End_Easing'], "nothing");
$params = array("unit" => ControllerModulerevslideropencart::$lang_var['ms']);
//advanced params
$arrCorners = array("nothing" => ControllerModulerevslideropencart::$lang_var['No_Corner'], "curved" => ControllerModulerevslideropencart::$lang_var['Sharp'], "reverced" => ControllerModulerevslideropencart::$lang_var['Sharp_Reversed']);
$params = array();
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:31,代码来源:layer_settings.php

示例2: array

$layerSettings->addCheckbox("layer_proportional_scale", false, __("Scale Proportional", REVSLIDER_TEXTDOMAIN), array("hidden" => false));
//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);
$textY = __("Y", REVSLIDER_TEXTDOMAIN);
$params = array("attrib_text" => "data-textoffset='" . $textOffsetY . "' data-textnormal='" . $textY . "'");
$layerSettings->addTextBox("layer_top", "", __("Y", REVSLIDER_TEXTDOMAIN), $params);
$layerSettings->addTextBox("layer_align_hor", "left", "Hor Align", array("hidden" => true));
$layerSettings->addTextBox("layer_align_vert", "top", "Vert Align", array("hidden" => true));
$layerSettings->addSelect("layer_slide_link", $arrSlideLinkLayers, __("Link To Slide", REVSLIDER_TEXTDOMAIN), "nothing");
$params = array("unit" => __("px", REVSLIDER_TEXTDOMAIN), "hidden" => true);
$layerSettings->addTextBox("layer_scrolloffset", "0", __("Scroll Under Slider Offset", REVSLIDER_TEXTDOMAIN), $params);
$layerSettings->addButton("button_change_image_source", __("Change Image Source", REVSLIDER_TEXTDOMAIN), array("hidden" => true, "class" => "button-primary revblue"));
$layerSettings->addTextBox("layer_alt", "", "Alt Text", array("hidden" => true, "class" => "area-alt-params"));
$layerSettings->addButton("button_edit_video", __("Edit Video", REVSLIDER_TEXTDOMAIN), array("hidden" => true, "class" => "button-primary revblue"));
$params = array("unit" => __("ms", REVSLIDER_TEXTDOMAIN));
$layerSettings->addTextBox("layer_endtime", "", __("End Time", REVSLIDER_TEXTDOMAIN), $params);
$layerSettings->addTextBox("layer_endspeed", "", __("End Speed", REVSLIDER_TEXTDOMAIN), $params);
$layerSettings->addSelect("layer_endanimation", $arrEndAnimations, __("End Animation", REVSLIDER_TEXTDOMAIN), "auto");
$layerSettings->addSelect("layer_endeasing", $arrEndEasing, __("End Easing", REVSLIDER_TEXTDOMAIN), "nothing");
$params = array("unit" => __("ms", REVSLIDER_TEXTDOMAIN));
//advanced params
$arrCorners = array("nothing" => __("No Corner", REVSLIDER_TEXTDOMAIN), "curved" => __("Sharp", REVSLIDER_TEXTDOMAIN), "reverced" => __("Sharp Reversed", REVSLIDER_TEXTDOMAIN));
$params = array();
$layerSettings->addSelect("layer_cornerleft", $arrCorners, __("Left Corner", REVSLIDER_TEXTDOMAIN), "nothing", $params);
$layerSettings->addSelect("layer_cornerright", $arrCorners, __("Right Corner", REVSLIDER_TEXTDOMAIN), "nothing", $params);
$layerSettings->addCheckbox("layer_resizeme", true, __("Responsive Through All Levels", REVSLIDER_TEXTDOMAIN), $params);
$params = array();
开发者ID:ConceptHaus,项目名称:huasca,代码行数:31,代码来源:layer_settings.php

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

示例4: array

$layerSettings->addTextBox("layer_top", "", RevsliderPrestashop::$lang['Y'], $params);
$layerSettings->addTextBox("layer_align_hor", "left", RevsliderPrestashop::$lang['Hor_Align'], array("hidden" => true));
$layerSettings->addTextBox("layer_align_vert", "top", RevsliderPrestashop::$lang['Vert_Align'], array("hidden" => true));
$para = array("unit" => RevsliderPrestashop::$lang['nbsp_auto'], 'hidden' => true);
$layerSettings->addTextBox("layer_max_width", "auto", RevsliderPrestashop::$lang['Max_Width'], $para);
$layerSettings->addTextBox("layer_max_height", "auto", RevsliderPrestashop::$lang['Max_Height'], $para);
$layerSettings->addTextBox("layer_2d_rotation", "0", RevsliderPrestashop::$lang['2D_Rotation'], array("hidden" => false, 'unit' => '&nbsp;(-360 - 360)'));
$layerSettings->addTextBox("layer_2d_origin_x", "50", RevsliderPrestashop::$lang['Rotation_Origin_X'], array("hidden" => false, 'unit' => '%&nbsp;(-100 - 200)'));
$layerSettings->addTextBox("layer_2d_origin_y", "50", RevsliderPrestashop::$lang['Rotation_Origin_Y'], array("hidden" => false, 'unit' => '%&nbsp;(-100 - 200)'));
//advanced params
$arrWhiteSpace = array("normal" => RevsliderPrestashop::$lang['Normal'], "pre" => RevsliderPrestashop::$lang['Pre'], "nowrap" => RevsliderPrestashop::$lang['NO_Wrap'], "pre-wrap" => RevsliderPrestashop::$lang['Pre_Wrap'], "pre-line" => RevsliderPrestashop::$lang['Pre_Line']);
$layerSettings->addSelect("layer_whitespace", $arrWhiteSpace, RevsliderPrestashop::$lang['White_Space'], "nowrap", array("hidden" => true));
$layerSettings->addSelect("layer_slide_link", $arrSlideLinkLayers, RevsliderPrestashop::$lang['Link_To_Slide'], "nothing");
$params = array("unit" => RevsliderPrestashop::$lang['px'], "hidden" => true);
$layerSettings->addTextBox("layer_scrolloffset", "0", RevsliderPrestashop::$lang['Scroll_Under_Slider'], $params);
$layerSettings->addButton("button_change_image_source", RevsliderPrestashop::$lang['Change_Image_Source'], array("hidden" => true, "class" => "button-primary revblue"));
$layerSettings->addTextBox("layer_alt", "", "Alt Text", array("hidden" => true, "class" => "area-alt-params"));
$layerSettings->addButton("button_edit_video", RevsliderPrestashop::$lang['Edit_Video'], array("hidden" => true, "class" => "button-primary revblue"));
$params = array("unit" => RevsliderPrestashop::$lang['ms']);
$paramssplit = array("unit" => RevsliderPrestashop::$lang['ms_keep_low']);
$params_1 = array("unit" => RevsliderPrestashop::$lang['ms'], 'hidden' => true);
$layerSettings->addTextBox("layer_endtime", "", RevsliderPrestashop::$lang['End_Time'], $params_1);
$layerSettings->addTextBox("layer_endspeed", "", RevsliderPrestashop::$lang['End_Duration'], $params);
$layerSettings->addTextBox("layer_endsplitdelay", "10", "End Split Delay", $paramssplit);
$layerSettings->addSelect("layer_endsplit", $arrSplit, RevsliderPrestashop::$lang['Split_Text_per'], "none");
$layerSettings->addSelect("layer_endanimation", $arrEndAnimations, RevsliderPrestashop::$lang['End_Animation'], "auto");
$layerSettings->addSelect("layer_endeasing", $arrEndEasing, RevsliderPrestashop::$lang['End_Easing'], "nothing");
$params = array("unit" => RevsliderPrestashop::$lang['ms']);
//advanced params
$arrCorners = array("nothing" => RevsliderPrestashop::$lang['No_Corner'], "curved" => RevsliderPrestashop::$lang['Sharp'], "reverced" => RevsliderPrestashop::$lang['Sharp_Reversed']);
$params = array();
开发者ID:evgrishin,项目名称:se1614,代码行数:31,代码来源:layer_settings.php

示例5: UniteSettingsAdvancedRev

$arrEndEasing = $operations->getArrEndEasing();
$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");
$params = array("unit" => "ms");
$layerSettings->addTextBox("layer_speed", "", "Speed", $params);
$layerSettings->addCheckbox("layer_hidden", false, "Hide Under Width");
$layerSettings->addTextBox("layer_left", "", "X");
$layerSettings->addTextBox("layer_top", "", "Y");
$layerSettings->addCheckbox("layer_video_autoplay", false, "Video Autoplay", array("hidden" => true));
$layerSettings->addSelect("layer_slide_link", $arrSlideLink, "Link To Slide", "nothing");
$layerSettings->addButton("button_edit_video", "Edit Video", array("hidden" => true, "class" => "button-secondary"));
$layerSettings->addButton("button_change_image_source", "Change Image Source", array("hidden" => true, "class" => "button-secondary"));
$params = array("unit" => "ms");
$layerSettings->addTextBox("layer_endtime", "", "End Time", $params);
$layerSettings->addTextBox("layer_endspeed", "", "End Speed", $params);
$layerSettings->addSelect("layer_endanimation", $arrEndAnimations, "End Animation", "auto");
$layerSettings->addSelect("layer_endeasing", $arrEndEasing, "Easing", "nothing");
$params = array("unit" => "ms");
self::storeSettings("layer_settings", $layerSettings);
//store settings of content css for editing on the client.
self::storeSettings("css_captions_content", $contentCSS);
开发者ID:par-orillonsoft,项目名称:elearning-wordpress,代码行数:31,代码来源:layer_settings.php

示例6: array

$layerSettings->addTextBox("layer_top", "", Mage::helper('nwdrevslider')->__("Y"), $params);
$layerSettings->addTextBox("layer_align_hor", "left", Mage::helper('nwdrevslider')->__("Hor Align"), array("hidden" => true));
$layerSettings->addTextBox("layer_align_vert", "top", Mage::helper('nwdrevslider')->__("Vert Align"), array("hidden" => true));
$para = array("unit" => Mage::helper('nwdrevslider')->__("&nbsp;(example: 50px, auto)"), 'hidden' => true);
$layerSettings->addTextBox("layer_max_width", "auto", Mage::helper('nwdrevslider')->__("Max Width"), $para);
$layerSettings->addTextBox("layer_max_height", "auto", Mage::helper('nwdrevslider')->__("Max Height"), $para);
$layerSettings->addTextBox("layer_2d_rotation", "0", Mage::helper('nwdrevslider')->__("2D Rotation"), array("hidden" => false, 'unit' => '&nbsp;(-360 - 360)'));
$layerSettings->addTextBox("layer_2d_origin_x", "50", Mage::helper('nwdrevslider')->__("Rotation Origin X"), array("hidden" => false, 'unit' => '%&nbsp;(-100 - 200)'));
$layerSettings->addTextBox("layer_2d_origin_y", "50", Mage::helper('nwdrevslider')->__("Rotation Origin Y"), array("hidden" => false, 'unit' => '%&nbsp;(-100 - 200)'));
//advanced params
$arrWhiteSpace = array("normal" => Mage::helper('nwdrevslider')->__("Normal"), "pre" => Mage::helper('nwdrevslider')->__("Pre"), "nowrap" => Mage::helper('nwdrevslider')->__("No-wrap"), "pre-wrap" => Mage::helper('nwdrevslider')->__("Pre-Wrap"), "pre-line" => Mage::helper('nwdrevslider')->__("Pre-Line"));
$layerSettings->addSelect("layer_whitespace", $arrWhiteSpace, Mage::helper('nwdrevslider')->__("White Space"), "nowrap", array("hidden" => true));
$layerSettings->addSelect("layer_slide_link", $arrSlideLinkLayers, Mage::helper('nwdrevslider')->__("Link To Slide"), "nothing");
$params = array("unit" => Mage::helper('nwdrevslider')->__("px"), "hidden" => true);
$layerSettings->addTextBox("layer_scrolloffset", "0", Mage::helper('nwdrevslider')->__("Scroll Under Slider Offset"), $params);
$layerSettings->addButton("button_change_image_source", Mage::helper('nwdrevslider')->__("Change Image Source"), array("hidden" => true, "class" => "button-primary revblue"));
$layerSettings->addTextBox("layer_alt", "", "Alt Text", array("hidden" => true, "class" => "area-alt-params"));
$layerSettings->addButton("button_edit_video", Mage::helper('nwdrevslider')->__("Edit Video"), array("hidden" => true, "class" => "button-primary revblue"));
$params = array("unit" => Mage::helper('nwdrevslider')->__("ms"));
$paramssplit = array("unit" => Mage::helper('nwdrevslider')->__(" ms (keep it low i.e. 1- 200)"));
$params_1 = array("unit" => Mage::helper('nwdrevslider')->__("ms"), 'hidden' => true);
$layerSettings->addTextBox("layer_endtime", "", Mage::helper('nwdrevslider')->__("End Time"), $params_1);
$layerSettings->addTextBox("layer_endspeed", "", Mage::helper('nwdrevslider')->__("End Duration"), $params);
$layerSettings->addTextBox("layer_endsplitdelay", "10", "End Split Delay", $paramssplit);
$layerSettings->addSelect("layer_endsplit", $arrSplit, Mage::helper('nwdrevslider')->__("Split Text per"), "none");
$layerSettings->addSelect("layer_endanimation", $arrEndAnimations, Mage::helper('nwdrevslider')->__("End Animation"), "auto");
$layerSettings->addSelect("layer_endeasing", $arrEndEasing, Mage::helper('nwdrevslider')->__("End Easing"), "nothing");
$params = array("unit" => Mage::helper('nwdrevslider')->__("ms"));
//advanced params
$arrCorners = array("nothing" => Mage::helper('nwdrevslider')->__("No Corner"), "curved" => Mage::helper('nwdrevslider')->__("Sharp"), "reverced" => Mage::helper('nwdrevslider')->__("Sharp Reversed"));
$params = array();
开发者ID:perseusl,项目名称:kingdavid,代码行数:31,代码来源:layer_settings.php


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