예제 #1
0
    //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
$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);