Esempio n. 1
0
$params = array("description" => __ug("The title of the slide, will be shown in the slides list.", REVSLIDER_TEXTDOMAIN), "class" => "medium");
$slideSettings->addTextBox("title", __ug("Slide", REVSLIDER_TEXTDOMAIN), __ug("Slide Title", REVSLIDER_TEXTDOMAIN), $params);
//state
$params = array("description" => __ug("The state of the slide. The unpublished slide will be excluded from the slider.", REVSLIDER_TEXTDOMAIN));
$slideSettings->addSelect("state", array("published" => __ug("Published", REVSLIDER_TEXTDOMAIN), "unpublished" => __ug("Unpublished", REVSLIDER_TEXTDOMAIN)), __ug("State", REVSLIDER_TEXTDOMAIN), "published", $params);
if (isset($slider) && $slider->isInited()) {
    $isWpmlExists = UniteWpmlRev::isWpmlExists();
    $useWpml = $slider->getParam("use_wpml", "off");
    if ($isWpmlExists && $useWpml == "on") {
        $arrLangs = UniteWpmlRev::getArrLanguages();
        $params = array("description" => __ug("The language of the slide (uses WPML plugin).", REVSLIDER_TEXTDOMAIN));
        $slideSettings->addSelect("lang", $arrLangs, __ug("Language", REVSLIDER_TEXTDOMAIN), "all", $params);
    }
}
$params = array("description" => __ug("If set, slide will be visible after the date is reached", REVSLIDER_TEXTDOMAIN));
$slideSettings->addDatePicker("date_from", "", __ug("Visible from", REVSLIDER_TEXTDOMAIN), $params);
$params = array("description" => __ug("If set, slide will be visible till the date is reached", REVSLIDER_TEXTDOMAIN));
$slideSettings->addDatePicker("date_to", "", __ug("Visible until", REVSLIDER_TEXTDOMAIN), $params);
$slideSettings->addHr("");
//transition
$params = array("description" => __ug("The appearance transitions of this slide.", REVSLIDER_TEXTDOMAIN), "minwidth" => "250px");
$slideSettings->addChecklist("slide_transition", $arrTransitions, __ug("Transitions", REVSLIDER_TEXTDOMAIN), $defaultTransition, $params);
//slot amount
$params = array("description" => __ug("The number of slots or boxes the slide is divided into. If you use boxfade, over 7 slots can be juggy.", REVSLIDER_TEXTDOMAIN), "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("slot_amount", "7", __ug("Slot Amount", REVSLIDER_TEXTDOMAIN), $params);
//rotation:
$params = array("description" => __ug("Rotation (-720 -> 720, 999 = random) Only for Simple Transitions.", REVSLIDER_TEXTDOMAIN), "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_rotation", "0", __ug("Rotation", REVSLIDER_TEXTDOMAIN), $params);
//transition speed
$params = array("description" => __ug("The duration of the transition (Default:300, min: 100 max 2000). ", REVSLIDER_TEXTDOMAIN), "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_duration", "300", __ug("Transition Duration", REVSLIDER_TEXTDOMAIN), $params);
$params = array("description" => ControllerModulerevslideropencart::$lang_var['shown_slides_list'], "class" => "medium");
$slideSettings->addTextBox("title", ControllerModulerevslideropencart::$lang_var['Slide'], ControllerModulerevslideropencart::$lang_var['Slide_Title'], $params);
//state
$params = array("description" => ControllerModulerevslideropencart::$lang_var['excluded_slider']);
$slideSettings->addSelect("state", array("published" => ControllerModulerevslideropencart::$lang_var['Published'], "unpublished" => ControllerModulerevslideropencart::$lang_var['Unpublished']), ControllerModulerevslideropencart::$lang_var['State'], "published", $params);
if (isset($slider) && $slider->isInited()) {
    $isWpmlExists = UniteWpmlRev::isWpmlExists();
    $useWpml = $slider->getParam("use_wpml", "off");
    if ($isWpmlExists && $useWpml == "on") {
        $arrLangs = UniteWpmlRev::getArrLanguages();
        $params = array("description" => ControllerModulerevslideropencart::$lang_var['language_slide']);
        $slideSettings->addSelect("lang", $arrLangs, ControllerModulerevslideropencart::$lang_var['Language'], "all", $params);
    }
}
$params = array("description" => ControllerModulerevslideropencart::$lang_var['slide_visible']);
$slideSettings->addDatePicker("date_from", "", ControllerModulerevslideropencart::$lang_var['Visible_from'], $params);
$params = array("description" => ControllerModulerevslideropencart::$lang_var['slide_visible_reached']);
$slideSettings->addDatePicker("date_to", "", ControllerModulerevslideropencart::$lang_var['Visible_until'], $params);
$slideSettings->addHr("");
//transition
$params = array("description" => ControllerModulerevslideropencart::$lang_var['appearance_transitions_slide'], "minwidth" => "250px");
$slideSettings->addChecklist("slide_transition", $arrTransitions, ControllerModulerevslideropencart::$lang_var['Transitions'], $defaultTransition, $params);
//slot amount
$params = array("description" => ControllerModulerevslideropencart::$lang_var['slide_divided'], "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("slot_amount", "7", ControllerModulerevslideropencart::$lang_var['Slot_Amount'], $params);
//rotation:
$params = array("description" => ControllerModulerevslideropencart::$lang_var['Simple_Transitions'], "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_rotation", "0", ControllerModulerevslideropencart::$lang_var['Rotation'], $params);
//transition speed
$params = array("description" => ControllerModulerevslideropencart::$lang_var['duration_transition'], "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_duration", "300", ControllerModulerevslideropencart::$lang_var['Transition_Duration'], $params);
Esempio n. 3
0
$arrSlideNames = array();
if (isset($slider) && $slider->isInited()) {
    $arrSlideNames = $slider->getArrSlideNames();
}
$slideSettings = new UniteSettingsAdvancedRev();
//title
$params = array("description" => Mage::helper('nwdrevslider')->__("The title of the slide, will be shown in the slides list."), "class" => "medium");
$slideSettings->addTextBox("title", Mage::helper('nwdrevslider')->__("Slide"), Mage::helper('nwdrevslider')->__("Slide Title"), $params);
// store view
$arrParams = array('minwidth' => '250px', 'description' => Mage::helper('nwdrevslider')->__('Slide will be visible on selected stores'));
$slideSettings->addChecklist("store_id", Mage::helper('nwdrevslider')->getStoreOptions(), Mage::helper('nwdrevslider')->__("Store View"), 0, $params);
//state
$params = array("description" => Mage::helper('nwdrevslider')->__("The state of the slide. The unpublished slide will be excluded from the slider."));
$slideSettings->addSelect("state", array("published" => Mage::helper('nwdrevslider')->__("Published"), "unpublished" => Mage::helper('nwdrevslider')->__("Unpublished")), Mage::helper('nwdrevslider')->__("State"), "published", $params);
$params = array("description" => Mage::helper('nwdrevslider')->__("If set, slide will be visible after the date is reached"));
$slideSettings->addDatePicker("date_from", "", Mage::helper('nwdrevslider')->__("Visible from"), $params);
$params = array("description" => Mage::helper('nwdrevslider')->__("If set, slide will be visible till the date is reached"));
$slideSettings->addDatePicker("date_to", "", Mage::helper('nwdrevslider')->__("Visible until"), $params);
$slideSettings->addHr("");
//transition
$params = array("description" => Mage::helper('nwdrevslider')->__("The appearance transitions of this slide."), "minwidth" => "250px");
$slideSettings->addChecklist("slide_transition", $arrTransitions, Mage::helper('nwdrevslider')->__("Transitions"), $defaultTransition, $params);
//slot amount
$params = array("description" => Mage::helper('nwdrevslider')->__("The number of slots or boxes the slide is divided into. If you use boxfade, over 7 slots can be juggy."), "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("slot_amount", "7", Mage::helper('nwdrevslider')->__("Slot Amount"), $params);
//rotation:
$params = array("description" => Mage::helper('nwdrevslider')->__("Rotation (-720 -> 720, 999 = random) Only for Simple Transitions."), "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_rotation", "0", Mage::helper('nwdrevslider')->__("Rotation"), $params);
//transition speed
$params = array("description" => Mage::helper('nwdrevslider')->__("The duration of the transition (Default:300, min: 100 max 2000). "), "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_duration", "300", Mage::helper('nwdrevslider')->__("Transition Duration"), $params);
Esempio n. 4
0
$params = array("description" => RevsliderPrestashop::$lang['shown_slides_list'], "class" => "medium");
$slideSettings->addTextBox("title", RevsliderPrestashop::$lang['slide'], RevsliderPrestashop::$lang['Slide_Title'], $params);
//state
$params = array("description" => RevsliderPrestashop::$lang['excluded_slider']);
$slideSettings->addSelect("state", array("published" => RevsliderPrestashop::$lang['Published'], "unpublished" => RevsliderPrestashop::$lang['Unpublished']), RevsliderPrestashop::$lang['State'], "published", $params);
if (isset($slider) && $slider->isInited()) {
    $isWpmlExists = UniteWpmlRev::isWpmlExists();
    $useWpml = $slider->getParam("use_wpml", "off");
    if ($isWpmlExists && $useWpml == "on") {
        $arrLangs = UniteWpmlRev::getArrLanguages();
        $params = array("description" => RevsliderPrestashop::$lang['language_slide']);
        $slideSettings->addSelect("lang", $arrLangs, RevsliderPrestashop::$lang['Language'], "all", $params);
    }
}
$params = array("description" => RevsliderPrestashop::$lang['slide_visible']);
$slideSettings->addDatePicker("date_from", "", RevsliderPrestashop::$lang['Visible_from'], $params);
$params = array("description" => RevsliderPrestashop::$lang['slide_visible_reached']);
$slideSettings->addDatePicker("date_to", "", RevsliderPrestashop::$lang['Visible_until'], $params);
$slideSettings->addHr("");
//transition
$params = array("description" => RevsliderPrestashop::$lang['appearance_transitions_slide'], "minwidth" => "250px");
$slideSettings->addChecklist("slide_transition", $arrTransitions, RevsliderPrestashop::$lang['Transitions'], $defaultTransition, $params);
//slot amount
$params = array("description" => RevsliderPrestashop::$lang['slide_divided'], "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("slot_amount", "7", RevsliderPrestashop::$lang['Slot_Amount'], $params);
//rotation:
$params = array("description" => RevsliderPrestashop::$lang['Simple_Transitions'], "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_rotation", "0", RevsliderPrestashop::$lang['Rotation'], $params);
//transition speed
$params = array("description" => RevsliderPrestashop::$lang['duration_transition'], "class" => "small", "datatype" => "number");
$slideSettings->addTextBox("transition_duration", "300", RevsliderPrestashop::$lang['Transition_Duration'], $params);