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


PHP UniteSettingsAdvancedRev::addCheckbox方法代码示例

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


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

示例1: array

$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");
$layerSettings->addCheckbox("layer_hidden", false, ControllerModulerevslideropencart::$lang_var['Hide_Under_Width']);
$params = array("hidden" => true);
$layerSettings->addTextBox("layer_link_id", "", ControllerModulerevslideropencart::$lang_var['Link_ID'], $params);
$layerSettings->addTextBox("layer_link_class", "", ControllerModulerevslideropencart::$lang_var['Link_Classes'], $params);
$layerSettings->addTextBox("layer_link_title", "", ControllerModulerevslideropencart::$lang_var['Link_Title'], $params);
$layerSettings->addTextBox("layer_link_rel", "", ControllerModulerevslideropencart::$lang_var['Link_Rel'], $params);
//scale for img
$textScaleX = ControllerModulerevslideropencart::$lang_var['Width'];
$textScaleProportionalX = ControllerModulerevslideropencart::$lang_var['Width_Height'];
$params = array("attrib_text" => "data-textproportional='" . $textScaleProportionalX . "' data-textnormal='" . $textScaleX . "'", "hidden" => false);
$layerSettings->addTextBox("layer_scaleX", "", ControllerModulerevslideropencart::$lang_var['Width'], $params);
$layerSettings->addTextBox("layer_scaleY", "", ControllerModulerevslideropencart::$lang_var['Height'], array("hidden" => false));
$layerSettings->addCheckbox("layer_proportional_scale", false, ControllerModulerevslideropencart::$lang_var['Scale_Proportional'], array("hidden" => false));
$arrParallaxLevel = array('-' => ControllerModulerevslideropencart::$lang_var['No_Movement'], '1' => ControllerModulerevslideropencart::$lang_var['1'], '2' => ControllerModulerevslideropencart::$lang_var['2'], '3' => ControllerModulerevslideropencart::$lang_var['3'], '4' => ControllerModulerevslideropencart::$lang_var['4'], '5' => ControllerModulerevslideropencart::$lang_var['5'], '6' => ControllerModulerevslideropencart::$lang_var['6'], '7' => ControllerModulerevslideropencart::$lang_var['7'], '8' => ControllerModulerevslideropencart::$lang_var['8'], '9' => ControllerModulerevslideropencart::$lang_var['9'], '10' => ControllerModulerevslideropencart::$lang_var['10']);
$layerSettings->addSelect("parallax_level", $arrParallaxLevel, ControllerModulerevslideropencart::$lang_var['Level'], "nowrap", array("hidden" => false));
//put left top
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:31,代码来源:layer_settings.php

示例2: array

//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");
$slideSettings->addControl("enable_link", "link_open_in", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
//-----------------------
//enable video
$params = array("description" => "Put a full width video on the slide");
$slideSettings->addSelect_boolean("enable_video", "Enable Full Width Video", false, "Enable", "Disable");
//video id
$params = array("description" => "The field can take Youtube ID (example: QohUdrgbD2k) or Vidmeo ID (example: 30300114)", "class" => "medium");
$slideSettings->addTextBox("video_id", "", "Video ID", $params);
//video autoplay
$params = array("description" => "Enable video autoplay on enter slide", "class" => "medium");
$slideSettings->addCheckbox("video_autoplay", false, "Video Autoplay");
$slideSettings->addControl("enable_video", "video_id", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
$slideSettings->addControl("enable_video", "video_autoplay", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
//store settings
self::storeSettings("slide_settings", $slideSettings);
开发者ID:rohichurch,项目名称:rohichurch-wp,代码行数:31,代码来源:slide_settings.php

示例3: array

$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);
$textScaleProportionalX = __("Width/Height", REVSLIDER_TEXTDOMAIN);
$params = array("attrib_text" => "data-textproportional='" . $textScaleProportionalX . "' data-textnormal='" . $textScaleX . "'", "hidden" => false);
$layerSettings->addTextBox("layer_scaleX", "", __("Width", REVSLIDER_TEXTDOMAIN), $params);
$layerSettings->addTextBox("layer_scaleY", "", __("Height", REVSLIDER_TEXTDOMAIN), array("hidden" => false));
$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 . "'");
开发者ID:ConceptHaus,项目名称:huasca,代码行数:31,代码来源:layer_settings.php

示例4: array

$arrSlideLink = array();
$arrSlideLink["nothing"] = __("-- Not Chosen --", REVSLIDER_TEXTDOMAIN);
$arrSlideLink["next"] = __("-- Next Slide --", REVSLIDER_TEXTDOMAIN);
$arrSlideLink["prev"] = __("-- Previous Slide --", REVSLIDER_TEXTDOMAIN);
$arrSlideLinkLayers = $arrSlideLink;
$arrSlideLinkLayers["scroll_under"] = __("-- Scroll Below Slider --");
foreach ($arrSlideNames as $slideNameID => $slideName) {
    $arrSlideLink[$slideNameID] = $slideName;
    $arrSlideLinkLayers[$slideNameID] = $slideName;
}
$slideSettings->addSelect("slide_link", $arrSlideLink, "Link To Slide", "nothing");
$params = array("description" => "The position of the link related to layers");
$slideSettings->addRadio("link_pos", array("front" => "Front", "back" => "Back"), "Link Position", "front", $params);
$slideSettings->addHr("link_sap");
$slideSettings->endBulkControl();
$slideSettings->addControl("link_type", "slide_link", UniteSettingsRev::CONTROL_TYPE_ENABLE, "slide");
$slideSettings->addControl("link_type", "link", UniteSettingsRev::CONTROL_TYPE_DISABLE, "slide");
$slideSettings->addControl("link_type", "link_open_in", UniteSettingsRev::CONTROL_TYPE_DISABLE, "slide");
//-----------------------
$params = array("description" => __("Slide Thumbnail. If not set - it will be taken from the slide image.", REVSLIDER_TEXTDOMAIN));
$slideSettings->addImage("slide_thumb", "", __("Thumbnail", REVSLIDER_TEXTDOMAIN), $params);
$params = array("description" => __("Apply to full width mode only. Centering vertically slide images.", REVSLIDER_TEXTDOMAIN));
$slideSettings->addCheckbox("fullwidth_centering", false, __("Full Width Centering", REVSLIDER_TEXTDOMAIN), $params);
$params = array("description" => __("If set, slide will be visible after the date is reached", REVSLIDER_TEXTDOMAIN));
$slideSettings->addDatePicker("date_from", "", __("Visible from", REVSLIDER_TEXTDOMAIN), $params);
$params = array("description" => __("If set, slide will be visible till the date is reached", REVSLIDER_TEXTDOMAIN));
$slideSettings->addDatePicker("date_to", "", __("Visible until", REVSLIDER_TEXTDOMAIN), $params);
//add background type (hidden)
$slideSettings->addTextBox("background_type", "image", __("Background Type", REVSLIDER_TEXTDOMAIN), array("hidden" => true));
//store settings
self::storeSettings("slide_settings", $slideSettings);
开发者ID:scoutrul,项目名称:sys,代码行数:31,代码来源:slide_settings.php

示例5: array

//num_slide_link
$arrSlideLink = array("nothing" => "-- Not Chosen --", "next" => "-- Next Slide --", "prev" => "-- Previous Slide --");
foreach ($arrSlideNames as $slideNameID => $slideName) {
    $arrSlideLink[$slideNameID] = $slideName;
}
$slideSettings->addSelect("slide_link", $arrSlideLink, "Link To Slide", "nothing");
$params = array("description" => "The position of the link related to layers");
$slideSettings->addRadio("link_pos", array("front" => "Front", "back" => "Back"), "Link Position", "front", $params);
$slideSettings->addHr("link_sap");
$slideSettings->endBulkControl();
$slideSettings->addControl("link_type", "slide_link", UniteSettingsRev::CONTROL_TYPE_ENABLE, "slide");
$slideSettings->addControl("link_type", "link", UniteSettingsRev::CONTROL_TYPE_DISABLE, "slide");
$slideSettings->addControl("link_type", "link_open_in", UniteSettingsRev::CONTROL_TYPE_DISABLE, "slide");
//-----------------------
//enable video
$params = array("description" => "Put a full width video on the slide");
$slideSettings->addSelect_boolean("enable_video", "Enable Full Width Video", false, "Enable", "Disable");
//video id
$params = array("description" => "The field can take Youtube ID (example: QohUdrgbD2k) or Vidmeo ID (example: 30300114)", "class" => "medium");
$slideSettings->addTextBox("video_id", "", "Video ID", $params);
//video autoplay
$params = array("description" => "Enable video autoplay on enter slide", "class" => "medium");
$slideSettings->addCheckbox("video_autoplay", false, "Video Autoplay");
$slideSettings->addControl("enable_video", "video_id", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
$slideSettings->addControl("enable_video", "video_autoplay", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
$params = array("description" => "Slide Thumbnail. If not set - it will be taken from the slide image.");
$slideSettings->addImage("slide_thumb", "", "Thumbnail", $params);
$params = array("description" => "Apply to full width mode only. Centering vertically slide images.");
$slideSettings->addCheckbox("fullwidth_centering", false, "Full Width Centering", $params);
//store settings
self::storeSettings("slide_settings", $slideSettings);
开发者ID:nimishavyas,项目名称:proiti,代码行数:31,代码来源:slide_settings.php

示例6: UniteSettingsAdvancedRev

$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);
$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_edit_video", __("Edit Video", REVSLIDER_TEXTDOMAIN), array("hidden" => true, "class" => "button-secondary"));
开发者ID:kivivuori,项目名称:jotain,代码行数:31,代码来源:layer_settings.php

示例7: UniteSettingsAdvancedRev

$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", "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->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));
$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:ConceptHaus,项目名称:huasca,代码行数:31,代码来源:layer_settings.php

示例8: array

$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", "", RevsliderPrestashop::$lang['Text_Html'], array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", RevsliderPrestashop::$lang['Image_Link'], array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => RevsliderPrestashop::$lang['Same_Window'], "new" => RevsliderPrestashop::$lang['New_Window']), RevsliderPrestashop::$lang['Link_Open_In'], "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, RevsliderPrestashop::$lang['Start_Animation'], "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, RevsliderPrestashop::$lang['Start_Easing'], "Power3.easeInOut");
$params = array("unit" => RevsliderPrestashop::$lang['ms']);
$paramssplit = array("unit" => RevsliderPrestashop::$lang['ms_keep_low']);
$layerSettings->addTextBox("layer_speed", "", "Start Duration", $params);
$layerSettings->addTextBox("layer_splitdelay", "10", "Split Delay", $paramssplit);
$layerSettings->addSelect("layer_split", $arrSplit, RevsliderPrestashop::$lang['Split_Text_per'], "none");
$layerSettings->addCheckbox("layer_hidden", false, RevsliderPrestashop::$lang['Hide_Under_Width']);
$params = array("hidden" => true);
$layerSettings->addTextBox("layer_link_id", "", RevsliderPrestashop::$lang['Link_ID'], $params);
$layerSettings->addTextBox("layer_link_class", "", RevsliderPrestashop::$lang['Link_Classes'], $params);
$layerSettings->addTextBox("layer_link_title", "", RevsliderPrestashop::$lang['Link_Title'], $params);
$layerSettings->addTextBox("layer_link_rel", "", RevsliderPrestashop::$lang['Link_Rel'], $params);
//scale for img
$textScaleX = RevsliderPrestashop::$lang['Width'];
$textScaleProportionalX = RevsliderPrestashop::$lang['Width_Height'];
$params = array("attrib_text" => "data-textproportional='" . $textScaleProportionalX . "' data-textnormal='" . $textScaleX . "'", "hidden" => false);
$layerSettings->addTextBox("layer_scaleX", "", RevsliderPrestashop::$lang['Width'], $params);
$layerSettings->addTextBox("layer_scaleY", "", RevsliderPrestashop::$lang['Height'], array("hidden" => false));
$layerSettings->addCheckbox("layer_proportional_scale", false, RevsliderPrestashop::$lang['Scale_Proportional'], array("hidden" => false));
$arrParallaxLevel = array('-' => RevsliderPrestashop::$lang['No_Movement'], '1' => RevsliderPrestashop::$lang['1'], '2' => RevsliderPrestashop::$lang['2'], '3' => RevsliderPrestashop::$lang['3'], '4' => RevsliderPrestashop::$lang['4'], '5' => RevsliderPrestashop::$lang['5'], '6' => RevsliderPrestashop::$lang['6'], '7' => RevsliderPrestashop::$lang['7'], '8' => RevsliderPrestashop::$lang['8'], '9' => RevsliderPrestashop::$lang['9'], '10' => RevsliderPrestashop::$lang['10']);
$layerSettings->addSelect("parallax_level", $arrParallaxLevel, RevsliderPrestashop::$lang['Level'], "nowrap", array("hidden" => false));
//put left top
开发者ID:evgrishin,项目名称:se1614,代码行数:31,代码来源:layer_settings.php

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

示例10: array

$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", "", Mage::helper('nwdrevslider')->__("Text / Html"), array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", Mage::helper('nwdrevslider')->__("Image Link"), array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => Mage::helper('nwdrevslider')->__("Same Window"), "new" => Mage::helper('nwdrevslider')->__("New Window")), Mage::helper('nwdrevslider')->__("Link Open In"), "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, Mage::helper('nwdrevslider')->__("Start Animation"), "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, Mage::helper('nwdrevslider')->__("Start Easing"), "Power3.easeInOut");
$params = array("unit" => Mage::helper('nwdrevslider')->__("ms"));
$paramssplit = array("unit" => Mage::helper('nwdrevslider')->__(" ms (keep it low i.e. 1- 200)"));
$layerSettings->addTextBox("layer_speed", "", "Start Duration", $params);
$layerSettings->addTextBox("layer_splitdelay", "10", "Split Delay", $paramssplit);
$layerSettings->addSelect("layer_split", $arrSplit, Mage::helper('nwdrevslider')->__("Split Text per"), "none");
$layerSettings->addCheckbox("layer_hidden", false, Mage::helper('nwdrevslider')->__("Hide Under Width"));
$params = array("hidden" => true);
$layerSettings->addTextBox("layer_link_id", "", Mage::helper('nwdrevslider')->__("Link ID"), $params);
$layerSettings->addTextBox("layer_link_class", "", Mage::helper('nwdrevslider')->__("Link Classes"), $params);
$layerSettings->addTextBox("layer_link_title", "", Mage::helper('nwdrevslider')->__("Link Title"), $params);
$layerSettings->addTextBox("layer_link_rel", "", Mage::helper('nwdrevslider')->__("Link Rel"), $params);
//scale for img
$textScaleX = Mage::helper('nwdrevslider')->__("Width");
$textScaleProportionalX = Mage::helper('nwdrevslider')->__("Width/Height");
$params = array("attrib_text" => "data-textproportional='" . $textScaleProportionalX . "' data-textnormal='" . $textScaleX . "'", "hidden" => false);
$layerSettings->addTextBox("layer_scaleX", "", Mage::helper('nwdrevslider')->__("Width"), $params);
$layerSettings->addTextBox("layer_scaleY", "", Mage::helper('nwdrevslider')->__("Height"), array("hidden" => false));
$layerSettings->addCheckbox("layer_proportional_scale", false, Mage::helper('nwdrevslider')->__("Scale Proportional"), array("hidden" => false));
$arrParallaxLevel = array('-' => Mage::helper('nwdrevslider')->__('No Movement'), '1' => Mage::helper('nwdrevslider')->__('1'), '2' => Mage::helper('nwdrevslider')->__('2'), '3' => Mage::helper('nwdrevslider')->__('3'), '4' => Mage::helper('nwdrevslider')->__('4'), '5' => Mage::helper('nwdrevslider')->__('5'), '6' => Mage::helper('nwdrevslider')->__('6'), '7' => Mage::helper('nwdrevslider')->__('7'), '8' => Mage::helper('nwdrevslider')->__('8'), '9' => Mage::helper('nwdrevslider')->__('9'), '10' => Mage::helper('nwdrevslider')->__('10'));
$layerSettings->addSelect("parallax_level", $arrParallaxLevel, Mage::helper('nwdrevslider')->__("Level"), "nowrap", array("hidden" => false));
//put left top
开发者ID:perseusl,项目名称:kingdavid,代码行数:31,代码来源:layer_settings.php


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