Ejemplo n.º 1
0
$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");
$sliderMainSettings->addRadio("full_screen_align_force", array("on" => __("On", REVSLIDER_TEXTDOMAIN), "off" => __("Off", REVSLIDER_TEXTDOMAIN)), __("FullScreen Align", REVSLIDER_TEXTDOMAIN), "off");
$sliderMainSettings->addRadio("auto_height", array("on" => __("On", REVSLIDER_TEXTDOMAIN), "off" => __("Off", REVSLIDER_TEXTDOMAIN)), __("Unlimited Height", REVSLIDER_TEXTDOMAIN), "off");
$sliderMainSettings->addRadio("force_full_width", array("on" => __("On", REVSLIDER_TEXTDOMAIN), "off" => __("Off", REVSLIDER_TEXTDOMAIN)), __("Force Full Width", REVSLIDER_TEXTDOMAIN), "off");
Ejemplo n.º 2
0
$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);
$params = array("description" => __ug('Adds a unique ID to the li of the Slide like id="rev_special_id" (add only the id)', REVSLIDER_TEXTDOMAIN));
Ejemplo n.º 3
0
			<?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);
?>
				
Ejemplo n.º 4
0
//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);
Ejemplo n.º 5
0
<?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