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


PHP UniteSettingsAdvancedRev::endBulkControl方法代码示例

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


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

示例1: array

$sliderMainSettings->addSelect("post_sortby", $arrSortBy, __("Sort Posts By", REVSLIDER_TEXTDOMAIN), RevSlider::DEFAULT_POST_SORTBY);
//sort direction
$arrSortDir = UniteFunctionsWPRev::getArrSortDirection();
$sliderMainSettings->addRadio("posts_sort_direction", $arrSortDir, __("Sort Direction", REVSLIDER_TEXTDOMAIN), RevSlider::DEFAULT_POST_SORTDIR);
//max posts for slider
$arrParams = array("class" => "small", "unit" => "posts");
$sliderMainSettings->addTextBox("max_slider_posts", "30", __("Max Posts Per Slider", REVSLIDER_TEXTDOMAIN), $arrParams);
//exerpt limit
$arrParams = array("class" => "small", "unit" => "words");
$sliderMainSettings->addTextBox("excerpt_limit", "55", __("Limit The Excerpt To", REVSLIDER_TEXTDOMAIN), $arrParams);
//slider template
$sliderMainSettings->addhr();
$slider1 = new RevSlider();
$arrSlidersTemplates = $slider1->getArrSlidersShort(null, RevSlider::SLIDER_TYPE_TEMPLATE);
$sliderMainSettings->addSelect("slider_template_id", $arrSlidersTemplates, __("Template Slider", REVSLIDER_TEXTDOMAIN), "", array());
$sliderMainSettings->endBulkControl();
$arrParams = array("description" => __("Type here the post IDs you want to use separated by coma. ex: 23,24,25", REVSLIDER_TEXTDOMAIN));
$sliderMainSettings->addTextBox("posts_list", "", __("Specific Posts List", REVSLIDER_TEXTDOMAIN), $arrParams);
$sliderMainSettings->addControl("source_type", "posts_list", UniteSettingsRev::CONTROL_TYPE_SHOW, "specific_posts");
$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), "fullwidth");
$arrParams = array("class" => "medium", "description" => __("Example: #header or .header, .footer, #somecontainer | The height of fullscreen slider will be decreased with the height of these Containers to fit perfect in the screen", REVSLIDER_TEXTDOMAIN));
$sliderMainSettings->addTextBox("fullscreen_offset_container", "", __("Offset Containers", REVSLIDER_TEXTDOMAIN), $arrParams);
$sliderMainSettings->addControl("slider_type", "fullscreen_offset_container", UniteSettingsRev::CONTROL_TYPE_SHOW, "fullscreen");
$arrParams = array("class" => "medium", "description" => __("Defines an Offset to the top. Can be used with px and %. Example: 40px or 10%", REVSLIDER_TEXTDOMAIN));
$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");
开发者ID:TeamCodeStudio,项目名称:fpmoz,代码行数:31,代码来源:slider_settings.php

示例2: array

$arrSlideLink = array();
$arrSlideLink["nothing"] = __ug("-- Not Chosen --", REVSLIDER_TEXTDOMAIN);
$arrSlideLink["next"] = __ug("-- Next Slide --", REVSLIDER_TEXTDOMAIN);
$arrSlideLink["prev"] = __ug("-- Previous Slide --", REVSLIDER_TEXTDOMAIN);
$arrSlideLinkLayers = $arrSlideLink;
$arrSlideLinkLayers["scroll_under"] = __ug("-- Scroll Below Slider --", REVSLIDER_TEXTDOMAIN);
foreach ($arrSlideNames as $slideNameID => $arr) {
    $slideName = $arr["title"];
    $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");
//-----------------------
$slideSettings->addHr("");
$params = array("description" => __ug("Slide Thumbnail. If not set - it will be taken from the slide image.", REVSLIDER_TEXTDOMAIN));
$slideSettings->addImage("slide_thumb", "", __ug("Thumbnail", REVSLIDER_TEXTDOMAIN), $params);
//$params = array("description"=>__ug("Apply to full width mode only. Centering vertically slide images.",REVSLIDER_TEXTDOMAIN));
//$slideSettings->addCheckbox("fullwidth_centering", false, __ug("Full Width Centering",REVSLIDER_TEXTDOMAIN), $params);
//add background type (hidden)
$slideSettings->addTextBox("background_type", "image", __ug("Background Type", REVSLIDER_TEXTDOMAIN), array("hidden" => true));
//store settings
$slideSettings->addHr("");
$params = array("description" => __ug('Adds a unique class to the li of the Slide like class="rev_special_class" (add only the classnames, seperated by space)', REVSLIDER_TEXTDOMAIN));
$slideSettings->addTextBox("class_attr", "", __ug("Class", REVSLIDER_TEXTDOMAIN), $params);
开发者ID:naka211,项目名称:myloyal,代码行数:31,代码来源:slide_settings.php


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