* @link http://www.themepunch.com/ * @copyright 2015 ThemePunch */ class RevSliderOperations extends RevSliderElementsBase{ private static $animations; private static $css; /** * get easing functions array */ public function getArrEasing(){ //true $arrEasing = array( "Linear.easeNone" => "Linear.easeNone", "Power0.easeIn" => "Power0.easeIn (linear)", "Power0.easeInOut" => "Power0.easeInOut (linear)", "Power0.easeOut" => "Power0.easeOut (linear)", "Power1.easeIn" => "Power1.easeIn", "Power1.easeInOut" => "Power1.easeInOut", "Power1.easeOut" => "Power1.easeOut", "Power2.easeIn" => "Power2.easeIn", "Power2.easeInOut" => "Power2.easeInOut", "Power2.easeOut" => "Power2.easeOut", "Power3.easeIn" => "Power3.easeIn", "Power3.easeInOut" => "Power3.easeInOut", "Power3.easeOut" => "Power3.easeOut", "Power4.easeIn" => "Power4.easeIn", "Power4.easeInOut" => "Power4.easeInOut", "Power4.easeOut" => "Power4.easeOut", "Quad.easeIn" => "Quad.easeIn (same as Power1.easeIn)", "Quad.easeInOut" => "Quad.easeInOut (same as Power1.easeInOut)", "Quad.easeOut" => "Quad.easeOut (same as Power1.easeOut)", "Cubic.easeIn" => "Cubic.easeIn (same as Power2.easeIn)", "Cubic.easeInOut" => "Cubic.easeInOut (same as Power2.easeInOut)", "Cubic.easeOut" => "Cubic.easeOut (same as Power2.easeOut)", "Quart.easeIn" => "Quart.easeIn (same as Power3.easeIn)", "Quart.easeInOut" => "Quart.easeInOut (same as Power3.easeInOut)", "Quart.easeOut" => "Quart.easeOut (same as Power3.easeOut)", "Quint.easeIn" => "Quint.easeIn (same as Power4.easeIn)", "Quint.easeInOut" => "Quint.easeInOut (same as Power4.easeInOut)", "Quint.easeOut" => "Quint.easeOut (same as Power4.easeOut)", "Strong.easeIn" => "Strong.easeIn (same as Power4.easeIn)", "Strong.easeInOut" => "Strong.easeInOut (same as Power4.easeInOut)", "Strong.easeOut" => "Strong.easeOut (same as Power4.easeOut)", "Back.easeIn" => "Back.easeIn", "Back.easeInOut" => "Back.easeInOut", "Back.easeOut" => "Back.easeOut", "Bounce.easeIn" => "Bounce.easeIn", "Bounce.easeInOut" => "Bounce.easeInOut", "Bounce.easeOut" => "Bounce.easeOut", "Circ.easeIn" => "Circ.easeIn", "Circ.easeInOut" => "Circ.easeInOut", "Circ.easeOut" => "Circ.easeOut", "Elastic.easeIn" => "Elastic.easeIn", "Elastic.easeInOut" => "Elastic.easeInOut", "Elastic.easeOut" => "Elastic.easeOut", "Expo.easeIn" => "Expo.easeIn", "Expo.easeInOut" => "Expo.easeInOut", "Expo.easeOut" => "Expo.easeOut", "Sine.easeIn" => "Sine.easeIn", "Sine.easeInOut" => "Sine.easeInOut", "Sine.easeOut" => "Sine.easeOut", "SlowMo.ease" => "SlowMo.ease", //add old easings //From here on display none "easeOutBack" => "easeOutBack", "easeInQuad" => "easeInQuad", "easeOutQuad" => "easeOutQuad", "easeInOutQuad" => "easeInOutQuad", "easeInCubic" => "easeInCubic", "easeOutCubic" => "easeOutCubic", "easeInOutCubic" => "easeInOutCubic", "easeInQuart" => "easeInQuart", "easeOutQuart" => "easeOutQuart", "easeInOutQuart" => "easeInOutQuart", "easeInQuint" => "easeInQuint", "easeOutQuint" => "easeOutQuint", "easeInOutQuint" => "easeInOutQuint", "easeInSine" => "easeInSine", "easeOutSine" => "easeOutSine", "easeInOutSine" => "easeInOutSine", "easeInExpo" => "easeInExpo", "easeOutExpo" => "easeOutExpo", "easeInOutExpo" => "easeInOutExpo", "easeInCirc" => "easeInCirc", "easeOutCirc" => "easeOutCirc", "easeInOutCirc" => "easeInOutCirc", "easeInElastic" => "easeInElastic", "easeOutElastic" => "easeOutElastic", "easeInOutElastic" => "easeInOutElastic", "easeInBack" => "easeInBack", "easeInOutBack" => "easeInOutBack", "easeInBounce" => "easeInBounce", "easeOutBounce" => "easeOutBounce", "easeInOutBounce" => "easeInOutBounce", "Quad.easeIn" => "Quad.easeIn (same as Power1.easeIn)", "Quad.easeInOut" => "Quad.easeInOut (same as Power1.easeInOut)", "Quad.easeOut" => "Quad.easeOut (same as Power1.easeOut)", "Cubic.easeIn" => "Cubic.easeIn (same as Power2.easeIn)", "Cubic.easeInOut" => "Cubic.easeInOut (same as Power2.easeInOut)", "Cubic.easeOut" => "Cubic.easeOut (same as Power2.easeOut)", "Quart.easeIn" => "Quart.easeIn (same as Power3.easeIn)", "Quart.easeInOut" => "Quart.easeInOut (same as Power3.easeInOut)", "Quart.easeOut" => "Quart.easeOut (same as Power3.easeOut)", "Quint.easeIn" => "Quint.easeIn (same as Power4.easeIn)", "Quint.easeInOut" => "Quint.easeInOut (same as Power4.easeInOut)", "Quint.easeOut" => "Quint.easeOut (same as Power4.easeOut)", "Strong.easeIn" => "Strong.easeIn (same as Power4.easeIn)", "Strong.easeInOut" => "Strong.easeInOut (same as Power4.easeInOut)", "Strong.easeOut" => "Strong.easeOut (same as Power4.easeOut)" ); return($arrEasing); } /** * get easing functions array */ public function getArrSplit(){ //true $arrSplit = array( "none" => "No Split", "chars" => "Char Based", "words" => "Word Based", "lines" => "Line Based" ); return($arrSplit); } public static function getWildcardsSettingNames() { $settings = self::getWildcardsSettings(); $arrNames = $settings->getArrSettingNamesAndTitles(); return($arrNames); } public static function getWildcardsSettings() { $settings = new UniteSettingsAdvancedRev(); $slider = new RevSlider(); $arrOutput = array(); $arrOutput["default"] = "default"; $arrSlides = $slider->getArrSlidersWithSlidesShort(RevSlider::SLIDER_TYPE_TEMPLATE); $arrOutput = $arrOutput + $arrSlides; $settings->addSelect("slide_template", $arrOutput, __("Choose Slide Template", REVSLIDER_TEXTDOMAIN), "default"); return($settings); } public static function getPostWilcardValues($postID) { $settings = RevOperations::getWildcardsSettings(); $settings->updateValuesFromPostMeta($postID); $arrValues = $settings->getArrValues(); return($arrValues); } /** * get arr end easing */ public function getArrEndEasing(){ $arrEasing = $this->getArrEasing(); $arrEasing = array_merge(array("nothing" => "No Change"),$arrEasing); return($arrEasing); } /** * get transition array */ public function getArrTransition(){ $arrTransition = array( "notselectable1"=>"BASICS", "notransition"=>"No Transition", "fade"=>"Fade", "crossfade"=>"Fade Cross", "fadethroughdark"=>"Fade Through Black", "fadethroughlight"=>"Fade Through Light", "fadethroughtransparent"=>"Fade Through Transparent", "notselectable2"=>"SLIDE SIMPLE", "slideup"=>"Slide To Top", "slidedown"=>"Slide To Bottom", "slideright"=>"Slide To Right", "slideleft"=>"Slide To Left", "slidehorizontal"=>"Slide Horizontal (Next/Previous)", "slidevertical"=>"Slide Vertical (Next/Previous)", "notselectable21"=>"SLIDE OVER", "slideoverup"=>"Slide Over To Top", "slideoverdown"=>"Slide Over To Bottom", "slideoverright"=>"Slide Over To Right", "slideoverleft"=>"Slide Over To Left", "slideoverhorizontal"=>"Slide Over Horizontal (Next/Previous)", "slideoververtical"=>"Slide Over Vertical (Next/Previous)", "notselectable22"=>"SLIDE REMOVE", "slideremoveup"=>"Slide Remove To Top", "slideremovedown"=>"Slide Remove To Bottom", "slideremoveright"=>"Slide Remove To Right", "slideremoveleft"=>"Slide Remove To Left", "slideremovehorizontal"=>"Slide Remove Horizontal (Next/Previous)", "slideremovevertical"=>"Slide Remove Vertical (Next/Previous)", "notselectable26"=>"SLIDING OVERLAYS", "slidingoverlayup"=>"Sliding Overlays To Top", "slidingoverlaydown"=>"Sliding Overlays To Bottom", "slidingoverlayright"=>"Sliding Overlays To Right", "slidingoverlayleft"=>"Sliding Overlays To Left", "slidingoverlayhorizontal"=>"Sliding Overlays Horizontal (Next/Previous)", "slidingoverlayvertical"=>"Sliding Overlays Vertical (Next/Previous)", "notselectable23"=>"SLOTS AND BOXES", "boxslide"=>"Slide Boxes", "slotslide-horizontal"=>"Slide Slots Horizontal", "slotslide-vertical"=>"Slide Slots Vertical", "boxfade"=>"Fade Boxes", "slotfade-horizontal"=>"Fade Slots Horizontal", "slotfade-vertical"=>"Fade Slots Vertical", "notselectable31"=>"FADE & SLIDE", "fadefromright"=>"Fade and Slide from Right", "fadefromleft"=>"Fade and Slide from Left", "fadefromtop"=>"Fade and Slide from Top", "fadefrombottom"=>"Fade and Slide from Bottom", "fadetoleftfadefromright"=>"To Left From Right", "fadetorightfadefromleft"=>"To Right From Left", "fadetotopfadefrombottom"=>"To Top From Bottom", "fadetobottomfadefromtop"=>"To Bottom From Top", "notselectable4"=>"PARALLAX", "parallaxtoright"=>"Parallax to Right", "parallaxtoleft"=>"Parallax to Left", "parallaxtotop"=>"Parallax to Top", "parallaxtobottom"=>"Parallax to Bottom", "parallaxhorizontal"=>"Parallax Horizontal", "parallaxvertical"=>"Parallax Vertical", "notselectable5"=>"ZOOM TRANSITIONS", "scaledownfromright"=>"Zoom Out and Fade From Right", "scaledownfromleft"=>"Zoom Out and Fade From Left", "scaledownfromtop"=>"Zoom Out and Fade From Top", "scaledownfrombottom"=>"Zoom Out and Fade From Bottom", "zoomout"=>"ZoomOut", "zoomin"=>"ZoomIn", "slotzoom-horizontal"=>"Zoom Slots Horizontal", "slotzoom-vertical"=>"Zoom Slots Vertical", "notselectable6"=>"CURTAIN TRANSITIONS", "curtain-1"=>"Curtain from Left", "curtain-2"=>"Curtain from Right", "curtain-3"=>"Curtain from Middle", "notselectable8"=>"FILTER TRANSITIONS", "grayscale"=>"Grayscale Transition", "grayscalecross"=>"Grayscale Cross Transition", "brightness"=>"Brightness Transition", "brightnesscross"=>"Brightness Cross Transition", "blurlight"=>"Blur Light Transition", "blurlightcross"=>"Blur Light Cross Transition", "blurstrong"=>"Blur Strong Transition", "blurstrongcross"=>"Blur Strong Cross Transition", "notselectable7"=>"PREMIUM TRANSITIONS", "3dcurtain-horizontal"=>"3D Curtain Horizontal", "3dcurtain-vertical"=>"3D Curtain Vertical", "cube"=>"Cube Vertical", "cube-horizontal"=>"Cube Horizontal", "incube"=>"In Cube Vertical", "incube-horizontal"=>"In Cube Horizontal", "turnoff"=>"TurnOff Horizontal", "turnoff-vertical"=>"TurnOff Vertical", "papercut"=>"Paper Cut", "flyin"=>"Fly In", "notselectable1a"=>"RANDOM", "random-selected"=>"Random of Selected", "random-static"=>"Random Flat", "random-premium"=>"Random Premium", "random"=>"Random Flat and Premium" ); return($arrTransition); } /** * get animations array */ public static function getArrAnimations($all = true){ $arrAnimations = array( ); $arrAnimations['custom'] = array('handle' => __('## Custom Animation ##', 'revslider')); $arrAnimations['vSFXs'] = array('handle' => '-----------------------------------'); $arrAnimations['vSFX'] = array('handle' => __('- SPECIAL EFFECTS -', 'revslider')); $arrAnimations['vSFXe'] = array('handle' => '-----------------------------------'); $arrAnimations['blockfromleft'] = array('handle' => 'Block-From-Left','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.3')); $arrAnimations['blockfromright'] = array('handle' => 'Block-From-Right','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.3')); $arrAnimations['blockfromtop'] = array('handle' => 'Block-From-Top','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.3')); $arrAnimations['blockfrombottom'] = array('handle' => 'Block-From-Bottom','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.3')); $arrAnimations['v5s'] = array('handle' => '-----------------------------------'); $arrAnimations['v5'] = array('handle' => __('- VERSION 5.0 ANIMATIONS -', 'revslider')); $arrAnimations['v5e'] = array('handle' => '-----------------------------------'); $arrAnimations['LettersFlyInFromBottom'] = array('handle' => 'LettersFlyInFromBottom','params' => '{"movex":"inherit","movey":"[100%]","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"-35deg","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"inherit","mask":"true","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"chars","splitdelay":"5"}', 'settings' => array('version' => '5.0')); $arrAnimations['LettersFlyInFromLeft'] = array('handle' => 'LettersFlyInFromLeft','params' => '{"movex":"[-105%]","movey":"inherit","movez":"0","rotationx":"0deg","rotationy":"0deg","rotationz":"-90deg","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"inherit","mask":"true","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"chars","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['LettersFlyInFromRight'] = array('handle' => 'LettersFlyInFromRight','params' => '{"movex":"[105%]","movey":"inherit","movez":"0","rotationx":"45deg","rotationy":"0deg","rotationz":"90deg","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"inherit","mask":"true","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"chars","splitdelay":"5"}', 'settings' => array('version' => '5.0')); $arrAnimations['LettersFlyInFromTop'] = array('handle' => 'LettersFlyInFromTop','params' => '{"movex":"inherit","movey":"[-100%]","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"35deg","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"inherit","mask":"true","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"chars","splitdelay":"5"}', 'settings' => array('version' => '5.0')); $arrAnimations['MaskedZoomOut'] = array('handle' => 'MaskedZoomOut','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"0deg","rotationy":"0","rotationz":"0","scalex":"2","scaley":"2","skewx":"0","skewy":"0","captionopacity":"0","mask":"true","mask_x":"0px","mask_y":"0px","easing":"Power2.easeOut","speed":"1000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['PopUpSmooth'] = array('handle' => 'PopUpSmooth','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"0","rotationy":"0","rotationz":"0","scalex":"0.9","scaley":"0.9","skewx":"0","skewy":"0","captionopacity":"0","mask":"false","mask_x":"0px","mask_y":"top","easing":"Power3.easeInOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['RotateInFromBottom'] = array('handle' => 'RotateInFromBottom','params' => '{"movex":"inherit","movey":"bottom","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"90deg","scalex":"2","scaley":"2","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","easing":"Power3.easeInOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['RotateInFormZero'] = array('handle' => 'RotateInFormZero','params' => '{"movex":"inherit","movey":"bottom","movez":"inherit","rotationx":"-20deg","rotationy":"-20deg","rotationz":"0deg","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","easing":"Power3.easeOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['SlideMaskFromBottom'] = array('handle' => 'SlideMaskFromBottom','params' => '{"movex":"inherit","movey":"[100%]","movez":"0","rotationx":"0deg","rotationy":"0","rotationz":"0","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"0","mask":"true","mask_x":"0px","mask_y":"[100%]","easing":"Power2.easeInOut","speed":"2000","split":"none","splitdelay":"5"}', 'settings' => array('version' => '5.0')); $arrAnimations['SlideMaskFromLeft'] = array('handle' => 'SlideMaskFromLeft','params' => '{"movex":"[-100%]","movey":"inherit","movez":"0","rotationx":"0deg","rotationy":"0","rotationz":"0","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"inherit","mask":"true","mask_x":"0px","mask_y":"0px","easing":"Power3.easeInOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['SlideMaskFromRight'] = array('handle' => 'SlideMaskFromRight','params' => '{"movex":"[100%]","movey":"inherit","movez":"0","rotationx":"0deg","rotationy":"0","rotationz":"0","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"inherit","mask":"true","mask_x":"0px","mask_y":"0px","easing":"Power3.easeInOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['SlideMaskFromTop'] = array('handle' => 'SlideMaskFromTop','params' => '{"movex":"inherit","movey":"[-100%]","movez":"0","rotationx":"0deg","rotationy":"0","rotationz":"0","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"inherit","mask":"true","mask_x":"0px","mask_y":"0px","easing":"Power3.easeInOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['SmoothPopUp_One'] = array('handle' => 'SmoothPopUp_One','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"0","rotationy":"0","rotationz":"0","scalex":"0.8","scaley":"0.8","skewx":"0","skewy":"0","captionopacity":"0","mask":"false","mask_x":"0px","mask_y":"top","easing":"Power4.easeOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['SmoothPopUp_Two'] = array('handle' => 'SmoothPopUp_Two','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"0","rotationy":"0","rotationz":"0","scalex":"0.9","scaley":"0.9","skewx":"0","skewy":"0","captionopacity":"0","mask":"false","mask_x":"0px","mask_y":"top","easing":"Power2.easeOut","speed":"1000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['SmoothMaskFromRight'] = array('handle' => 'SmoothMaskFromRight','params' => '{"movex":"[-175%]","movey":"0px","movez":"0","rotationx":"0","rotationy":"0","rotationz":"0","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"1","mask":"true","mask_x":"[100%]","mask_y":"0","easing":"Power3.easeOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['SmoothMaskFromLeft'] = array('handle' => 'SmoothMaskFromLeft','params' => '{"movex":"[175%]","movey":"0px","movez":"0","rotationx":"0","rotationy":"0","rotationz":"0","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"1","mask":"true","mask_x":"[-100%]","mask_y":"0","easing":"Power3.easeOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['SmoothSlideFromBottom'] = array('handle' => 'SmoothSlideFromBottom','params' => '{"movex":"inherit","movey":"[100%]","movez":"0","rotationx":"0deg","rotationy":"0","rotationz":"0","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"0","mask":"false","mask_x":"0px","mask_y":"[100%]","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"5"}', 'settings' => array('version' => '5.0')); $arrAnimations['v4s'] = array('handle' => '-----------------------------------'); $arrAnimations['v4'] = array('handle' => __('- VERSION 4.0 ANIMATIONS -', 'revslider')); $arrAnimations['v4e'] = array('handle' => '-----------------------------------'); $arrAnimations['noanim'] = array('handle' => 'No-Animation','params' => '{"movex":"inherit","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['tp-fade'] = array('handle' => 'Fade-In','params' => '{"movex":"inherit","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"0"}', 'settings' => array('version' => '5.0')); $arrAnimations['sft'] = array('handle' => 'Short-from-Top','params' => '{"movex":"inherit","movey":"-50px","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['sfb'] = array('handle' => 'Short-from-Bottom','params' => '{"movex":"inherit","movey":"50px","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['sfl'] = array('handle' => 'Short-From-Left','params' => '{"movex":"-50px","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['sfr'] = array('handle' => 'Short-From-Right','params' => '{"movex":"50px","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['lfr'] = array('handle' => 'Long-From-Right','params' => '{"movex":"right","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['lfl'] = array('handle' => 'Long-From-Left','params' => '{"movex":"left","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['lft'] = array('handle' => 'Long-From-Top','params' => '{"movex":"inherit","movey":"top","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['lfb'] = array('handle' => 'Long-From-Bottom','params' => '{"movex":"inherit","movey":"bottom","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['skewfromleft'] = array('handle' => 'Skew-From-Long-Left','params' => '{"movex":"left","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"45px","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['skewfromright'] = array('handle' => 'Skew-From-Long-Right','params' => '{"movex":"right","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"-85px","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['skewfromleftshort'] = array('handle' => 'Skew-From-Short-Left','params' => '{"movex":"-200px","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"85px","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['skewfromrightshort'] = array('handle' => 'Skew-From-Short-Right','params' => '{"movex":"200px","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"-85px","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['randomrotate'] = array('handle' => 'Random-Rotate-and-Scale','params' => '{"movex":"{-250,250}","movey":"{-150,150}","movez":"inherit","rotationx":"{-90,90}","rotationy":"{-90,90}","rotationz":"{-360,360}","scalex":"{0,1}","scaley":"{0,1}","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); if($all){ $arrAnimations['vss'] = array('handle' => '--------------------------------------'); $arrAnimations['vs'] = array('handle' => __('- SAVED CUSTOM ANIMATIONS -', 'revslider')); $arrAnimations['vse'] = array('handle' => '--------------------------------------'); //$custom = RevSliderOperations::getCustomAnimations('customin'); $custom = RevSliderOperations::getCustomAnimationsFullPre('customin'); $arrAnimations = array_merge($arrAnimations, $custom); } foreach($arrAnimations as $key => $value){ if(!isset($value['params'])) continue; $t = json_decode(str_replace("'", '"', $value['params']), true); if(!empty($t)) $arrAnimations[$key]['params'] = $t; } return($arrAnimations); } /** * get "end" animations array */ public static function getArrEndAnimations($all = true){ $arrAnimations = array(); $arrAnimations['custom'] = array('handle' => __('## Custom Animation ##', 'revslider')); $arrAnimations['auto'] = array('handle' => __('Automatic Reverse', 'revslider')); $arrAnimations['vSFXs'] = array('handle' => '-----------------------------------'); $arrAnimations['vSFX'] = array('handle' => __('- SPECIAL EFFECTS -', 'revslider')); $arrAnimations['vSFXe'] = array('handle' => '-----------------------------------'); $arrAnimations['blocktoleft'] = array('handle' => 'Block-To-Left','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.3')); $arrAnimations['blocktoright'] = array('handle' => 'Block-To-Right','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.3')); $arrAnimations['blocktotop'] = array('handle' => 'Block-To-Top','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.3')); $arrAnimations['blocktobottom'] = array('handle' => 'Block-To-Bottom','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.3')); $arrAnimations['v5s'] = array('handle' => '-----------------------------------'); $arrAnimations['v5'] = array('handle' => __('- VERSION 5.0 ANIMATIONS -', 'revslider')); $arrAnimations['v5e'] = array('handle' => '-----------------------------------'); $arrAnimations['BounceOut'] = array('handle' => 'BounceOut','params' => '{"movex":"inherit","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"0deg","scalex":"0.7","scaley":"0.7","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"true","mask_x":"0","mask_y":"0","easing":"Back.easeIn","speed":"500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['Fade-Out-Long'] = array('handle' => 'Fade-Out-Long','params' => '{"movex":"inherit","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","easing":"Power2.easeIn","speed":"1000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['SlideMaskToBottom'] = array('handle' => 'SlideMaskToBottom','params' => '{"movex":"inherit","movey":"[100%]","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"true","mask_x":"inherit","mask_y":"inherit","easing":"nothing","speed":"300","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['SlideMaskToLeft'] = array('handle' => 'SlideMaskToLeft','params' => '{"movex":"[-100%]","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"true","mask_x":"inherit","mask_y":"inherit","easing":"Power3.easeInOut","speed":"1000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['SlideMaskToRight'] = array('handle' => 'SlideMaskToRight','params' => '{"movex":"[100%]","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"true","mask_x":"inherit","mask_y":"inherit","easing":"Power3.easeInOut","speed":"1000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['SlideMaskToTop'] = array('handle' => 'SlideMaskToTop','params' => '{"movex":"inherit","movey":"[-100%]","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"true","mask_x":"inherit","mask_y":"inherit","easing":"nothing","speed":"300","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['SlurpOut'] = array('handle' => 'SlurpOut','params' => '{"movex":"inherit","movey":"[100%]","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"0deg","scalex":"0.7","scaley":"0.7","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"true","mask_x":"0","mask_y":"0","easing":"Power3.easeInOut","speed":"1000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['SmoothCropToBottom'] = array('handle' => 'SmoothCropToBottom','params' => '{"movex":"inherit","movey":"[175%]","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"true","mask_x":"inherit","mask_y":"inherit","easing":"Power2.easeInOut","speed":"1000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0')); $arrAnimations['v4s'] = array('handle' => '-----------------------------------'); $arrAnimations['v4'] = array('handle' => __('- VERSION 4.0 ANIMATIONS -', 'revslider')); $arrAnimations['v4e'] = array('handle' => '-----------------------------------'); $arrAnimations['noanimout'] = array('handle' => 'No-Out-Animation','params' => '{"movex":"inherit","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['fadeout'] = array('handle' => 'Fade-Out','params' => '{"movex":"inherit","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"0"}', 'settings' => array('version' => '5.0')); $arrAnimations['stt'] = array('handle' => 'Short-To-Top','params' => '{"movex":"inherit","movey":"-50px","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['stb'] = array('handle' => 'Short-To-Bottom','params' => '{"movex":"inherit","movey":"50px","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['stl'] = array('handle' => 'Short-To-Left','params' => '{"movex":"-50px","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['str'] = array('handle' => 'Short-To-Right','params' => '{"movex":"50px","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['ltr'] = array('handle' => 'Long-To-Right','params' => '{"movex":"right","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['ltl'] = array('handle' => 'Long-To-Left','params' => '{"movex":"left","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['ltt'] = array('handle' => 'Long-To-Top','params' => '{"movex":"inherit","movey":"top","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['ltb'] = array('handle' => 'Long-To-Bottom','params' => '{"movex":"inherit","movey":"bottom","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['skewtoleft'] = array('handle' => 'Skew-To-Long-Left','params' => '{"movex":"left","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"45px","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['skewtoright'] = array('handle' => 'Skew-To-Long-Right','params' => '{"movex":"right","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"-85px","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['skewtorightshort'] = array('handle' => 'Skew-To-Short-Right','params' => '{"movex":"200px","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"-85px","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['skewtoleftshort'] = array('handle' => 'Skew-To-Short-Left','params' => '{"movex":"-200px","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"85px","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); $arrAnimations['randomrotateout'] = array('handle' => 'Random-Rotate-Out','params' => '{"movex":"{-250,250}","movey":"{-150,150}","movez":"inherit","rotationx":"{-90,90}","rotationy":"{-90,90}","rotationz":"{-360,360}","scalex":"{0,1}","scaley":"{0,1}","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0')); if($all){ $arrAnimations['vss'] = array('handle' => '--------------------------------------'); $arrAnimations['vs'] = array('handle' => __('- SAVED CUSTOM ANIMATIONS -', 'revslider')); $arrAnimations['vse'] = array('handle' => '--------------------------------------'); //$custom = RevSliderOperations::getCustomAnimations('customout'); $custom = RevSliderOperations::getCustomAnimationsFullPre('customout'); $arrAnimations = array_merge($arrAnimations, $custom); } foreach($arrAnimations as $key => $value){ if(!isset($value['params'])) continue; $t = json_decode(str_replace("'", '"', $value['params']), true); if(!empty($t)) $arrAnimations[$key]['params'] = $t; } return($arrAnimations); } /** * insert custom animations */ public static function insertCustomAnim($anim){ if(isset($anim['handle'])) { $db = new RevSliderDB(); $arrInsert = array(); $arrInsert["handle"] = $anim['handle']; unset($anim['handle']); $arrInsert["params"] = stripslashes(json_encode(str_replace("'", '"', $anim['params']))); $arrInsert["settings"] = json_encode(array('version' => 'custom')); $result = $db->insert(RevSliderGlobals::$table_layer_anims, $arrInsert); } $arrAnims['customin'] = RevSliderOperations::getCustomAnimations(); $arrAnims['customout'] = RevSliderOperations::getCustomAnimations('customout'); $arrAnims['customfull'] = RevSliderOperations::getFullCustomAnimations(); return $arrAnims; } /** * insert custom animations */ public static function updateCustomAnim($anim){ if(isset($anim['handle'])) { $db = new RevSliderDB(); $handle = $anim['handle']; unset($anim['handle']); $id = str_replace(array('customin-', 'customout-'), array('', ''), $handle); $arrUpdate = array(); $arrUpdate['params'] = stripslashes(json_encode(str_replace("'", '"', $anim['params']))); //$arrUpdate["settings"] = json_encode(array('version' => 'custom')); $result = $db->update(RevSliderGlobals::$table_layer_anims, $arrUpdate, array('id' => $id)); } $arrAnims['customin'] = RevSliderOperations::getCustomAnimations(); $arrAnims['customout'] = RevSliderOperations::getCustomAnimations('customout'); $arrAnims['customfull'] = RevSliderOperations::getFullCustomAnimations(); return $arrAnims; } /** * update custom animations name * @since: 5.0 */ public static function updateCustomAnimName($anim){ if(isset($anim['handle'])) { $db = new RevSliderDB(); $id = $anim['id']; unset($anim['id']); $result = $db->update(RevSliderGlobals::$table_layer_anims, $anim, array('id' => $id)); } $arrAnims['customin'] = RevSliderOperations::getCustomAnimations(); $arrAnims['customout'] = RevSliderOperations::getCustomAnimations('customout'); $arrAnims['customfull'] = RevSliderOperations::getFullCustomAnimations(); return $arrAnims; } /** * * delete custom animations */ public static function deleteCustomAnim($rawID){ if(trim($rawID) != '') { $db = new RevSliderDB(); $id = str_replace(array('customin-', 'customout-'), array('', ''), $rawID); $db->delete(RevSliderGlobals::$table_layer_anims, $db->prepare("id = %s", array(intval($id)))); } $arrAnims['customin'] = RevSliderOperations::getCustomAnimations(); $arrAnims['customout'] = RevSliderOperations::getCustomAnimations('customout'); $arrAnims['customfull'] = RevSliderOperations::getFullCustomAnimations(); return $arrAnims; } /** * Fetch all Custom Animations only one time * @since: 5.2.4 **/ public static function fillAnimations(){ if(empty(self::$animations)){ $db = new RevSliderDB(); $customAnimations = array(); $result = $db->fetch(RevSliderGlobals::$table_layer_anims); if(!empty($result)){ $customAnimations = $result; } self::$animations = $customAnimations; } } /** * * get custom animations */ public static function getCustomAnimations($pre = 'customin'){ if(empty(self::$animations)){ self::fillAnimations(); } $customAnimations = self::$animations; $ret_array = array(); foreach($customAnimations as $key => $value){ $params = json_decode($value['params'], true); if(!isset($params['type']) || $params['type'] == $pre){ $ret_array[$pre.'-'.$value['id']] = $value['handle']; } } asort($ret_array); return $ret_array; } /** * * get custom animations */ public static function getCustomAnimationsFullPre($pre = 'customin'){ if(empty(self::$animations)){ self::fillAnimations(); } $customAnimations = array(); $customTemp = array(); $sort = array(); foreach(self::$animations as $key => $value){ $params = json_decode($value['params'], true); if(!isset($params['type']) || $params['type'] == $pre){ $customTemp[$pre.'-'.$value['id']] = $value; $sort[$pre.'-'.$value['id']] = $value['handle']; } } if(!empty($sort)){ asort($sort); foreach($sort as $k => $v){ $customAnimations[$k] = $customTemp[$k]; } } return $customAnimations; } /** * * get full custom animations */ public static function getFullCustomAnimations(){ if(empty(self::$animations)){ self::fillAnimations(); } $customAnimations = self::$animations; $ret_anims = array(); foreach($customAnimations as $key => $value){ $ret_anims[$key]['id'] = $value['id']; $ret_anims[$key]['handle'] = $value['handle']; $ret_anims[$key]['params'] = json_decode(str_replace("'", '"', $value['params']), true); } return $ret_anims; } /** * * get animation params by handle */ public static function getCustomAnimationByHandle($handle){ if(empty(self::$animations)){ self::fillAnimations(); } foreach(self::$animations as $key => $value){ if($value['handle'] == $handle){ return json_decode(str_replace("'", '"', $value['params']), true); } } return false; } /** * * get animation params by id */ public static function getFullCustomAnimationByID($id){ if(empty(self::$animations)){ self::fillAnimations(); } foreach(self::$animations as $key => $value){ if($value['id'] == $id){ $customAnimations = array(); $customAnimations['id'] = $value['id']; $customAnimations['handle'] = $value['handle']; $customAnimations['params'] = json_decode(str_replace("'", '"', $value['params']), true); return $customAnimations; } } return false; } /** * parse animation params * 5.0.5: added (R) for reverse */ public static function parseCustomAnimationByArray($animArray, $is = 'start', $frame_val){ $retString = ''; $reverse = (isset($animArray['x_'.$is.'_reverse']) && $animArray['x_'.$is.'_reverse'] == true) ? '(R)' : ''; //movex reverse if(isset($animArray['x_'.$is]) && $animArray['x_'.$is] !== '' && $animArray['x_'.$is] !== 'inherit') $retString.= 'x:'.$animArray['x_'.$is].$reverse.';'; //movex $reverse = (isset($animArray['y_'.$is.'_reverse']) && $animArray['y_'.$is.'_reverse'] == true) ? '(R)' : ''; //movey reverse if(isset($animArray['y_'.$is]) && $animArray['y_'.$is] !== '' && $animArray['y_'.$is] !== 'inherit') $retString.= 'y:'.$animArray['y_'.$is].$reverse.';'; //movey if(isset($animArray['z_'.$is]) && $animArray['z_'.$is] !== '' && $animArray['z_'.$is] !== 'inherit') $retString.= 'z:'.$animArray['z_'.$is].';'; //movez $reverse = (isset($animArray['x_rotate_'.$is.'_reverse']) && $animArray['x_rotate_'.$is.'_reverse'] == true) ? '(R)' : ''; //rotationx reverse if(isset($animArray['x_rotate_'.$is]) && $animArray['x_rotate_'.$is] !== '' && $animArray['x_rotate_'.$is] !== 'inherit') $retString.= 'rX:'.$animArray['x_rotate_'.$is].$reverse.';'; //rotationx $reverse = (isset($animArray['y_rotate_'.$is.'_reverse']) && $animArray['y_rotate_'.$is.'_reverse'] == true) ? '(R)' : ''; //rotationy reverse if(isset($animArray['y_rotate_'.$is]) && $animArray['y_rotate_'.$is] !== '' && $animArray['y_rotate_'.$is] !== 'inherit') $retString.= 'rY:'.$animArray['y_rotate_'.$is].$reverse.';'; //rotationy $reverse = (isset($animArray['z_rotate_'.$is.'_reverse']) && $animArray['z_rotate_'.$is.'_reverse'] == true) ? '(R)' : ''; //rotationz reverse if(isset($animArray['z_rotate_'.$is]) && $animArray['z_rotate_'.$is] !== '' && $animArray['z_rotate_'.$is] !== 'inherit') $retString.= 'rZ:'.$animArray['z_rotate_'.$is].$reverse.';'; //rotationz if(isset($animArray['scale_x_'.$is]) && $animArray['scale_x_'.$is] !== '' && $animArray['scale_x_'.$is] !== 'inherit'){ //scalex $reverse = (isset($animArray['scale_x_'.$is.'_reverse']) && $animArray['scale_x_'.$is.'_reverse'] == true) ? '(R)' : ''; //scalex reverse $retString.= 'sX:'; $retString.= ($animArray['scale_x_'.$is] == 0) ? 0 : $animArray['scale_x_'.$is]; $retString.= $reverse; $retString.= ';'; } if(isset($animArray['scale_y_'.$is]) && $animArray['scale_y_'.$is] !== '' && $animArray['scale_y_'.$is] !== 'inherit'){ //scaley $reverse = (isset($animArray['scale_y_'.$is.'_reverse']) && $animArray['scale_y_'.$is.'_reverse'] == true) ? '(R)' : ''; //scaley reverse $retString.= 'sY:'; $retString.= ($animArray['scale_y_'.$is] == 0) ? 0 : $animArray['scale_y_'.$is]; $retString.= $reverse; $retString.= ';'; } $reverse = (isset($animArray['skew_x_'.$is.'_reverse']) && $animArray['skew_x_'.$is.'_reverse'] == true) ? '(R)' : ''; //skewx reverse if(isset($animArray['skew_x_'.$is]) && $animArray['skew_x_'.$is] !== '' && $animArray['skew_x_'.$is] !== 'inherit') $retString.= 'skX:'.$animArray['skew_x_'.$is].$reverse.';'; //skewx $reverse = (isset($animArray['skew_y_'.$is.'_reverse']) && $animArray['skew_y_'.$is.'_reverse'] == true) ? '(R)' : ''; //skewy reverse if(isset($animArray['skew_y_'.$is]) && $animArray['skew_y_'.$is] !== '' && $animArray['skew_y_'.$is] !== 'inherit') $retString.= 'skY:'.$animArray['skew_y_'.$is].$reverse.';'; //skewy if(isset($animArray['opacity_'.$is]) && $animArray['opacity_'.$is] !== '' && $animArray['opacity_'.$is] !== 'inherit'){ //captionopacity $retString.= 'opacity:'; $opa = (intval($animArray['opacity_'.$is]) > 1) ? $animArray['opacity_'.$is] / 100 : $animArray['opacity_'.$is]; $retString.= $opa; //$retString.= ($is == 'start' && ($opa == '0' || $opa == 0)) ? '0.0001' : $opa; $retString.= ';'; } if($retString == ''){ //we do not have animations set, so set them here } return $retString; } /** * parse mask params * @since: 5.0 */ public static function parseCustomMaskByArray($animArray, $is = 'start'){ $retString = ''; $reverse = (isset($animArray['mask_x_'.$is.'_reverse']) && $animArray['mask_x_'.$is.'_reverse'] == true) ? '(R)' : ''; if(isset($animArray['mask_x_'.$is]) && $animArray['mask_x_'.$is] !== '') $retString.= 'x:'.$animArray['mask_x_'.$is].$reverse.';'; $reverse = (isset($animArray['mask_y_'.$is.'_reverse']) && $animArray['mask_y_'.$is.'_reverse'] == true) ? '(R)' : ''; if(isset($animArray['mask_y_'.$is]) && $animArray['mask_y_'.$is] !== '') $retString.= 'y:'.$animArray['mask_y_'.$is].$reverse.';'; if(isset($animArray['mask_speed_'.$is]) && $animArray['mask_speed_'.$is] !== '') $retString.= 's:'.$animArray['mask_speed_'.$is].';'; if(isset($animArray['mask_ease_'.$is]) && $animArray['mask_ease_'.$is] !== '') $retString.= 'e:'.$animArray['mask_ease_'.$is].';'; return $retString; } /** * * parse css file and get the classes from there. */ public function getArrCaptionClasses($contentCSS){ //parse css captions file $parser = new RevSliderCssParser(); $parser->initContent($contentCSS); $arrCaptionClasses = $parser->getArrClasses('','',true); return($arrCaptionClasses); } /** * * get all CSS classes from database with version numbers */ public function getArrCaptionSorted($contentCSS){ //get all from the database //parse css captions file $parser = new RevSliderCssParser(); $parser->initContent($contentCSS); $arrCaptionClasses = $parser->getArrClasses('','',true); return($arrCaptionClasses); } /** * * get all font family types */ public function getArrFontFamilys($slider = false){ //Web Safe Fonts $fonts = array( // GOOGLE Loaded Fonts array('type' => 'websafe', 'version' => __('Loaded Google Fonts', 'revslider'), 'label' => 'Dont Show Me'), //Serif Fonts array('type' => 'websafe', 'version' => __('Serif Fonts', 'revslider'), 'label' => 'Georgia, serif'), array('type' => 'websafe', 'version' => __('Serif Fonts', 'revslider'), 'label' => '"Palatino Linotype", "Book Antiqua", Palatino, serif'), array('type' => 'websafe', 'version' => __('Serif Fonts', 'revslider'), 'label' => '"Times New Roman", Times, serif'), //Sans-Serif Fonts array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => 'Arial, Helvetica, sans-serif'), array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => '"Arial Black", Gadget, sans-serif'), array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => '"Comic Sans MS", cursive, sans-serif'), array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => 'Impact, Charcoal, sans-serif'), array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => '"Lucida Sans Unicode", "Lucida Grande", sans-serif'), array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => 'Tahoma, Geneva, sans-serif'), array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => '"Trebuchet MS", Helvetica, sans-serif'), array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => 'Verdana, Geneva, sans-serif'), //Monospace Fonts array('type' => 'websafe', 'version' => __('Monospace Fonts', 'revslider'), 'label' => '"Courier New", Courier, monospace'), array('type' => 'websafe', 'version' => __('Monospace Fonts', 'revslider'), 'label' => '"Lucida Console", Monaco, monospace') ); /*if($slider !== false){ $font_custom = $slider->getParam("google_font",""); if(!is_array($font_custom)) $font_custom = array($font_custom); //backwards compability if(is_array($font_custom)){ foreach($font_custom as $key => $curFont){ $font = $this->cleanFontStyle(stripslashes($curFont)); if($font != false) $font_custom[$key] = array('version' => __('Depricated Google Fonts', 'revslider'), 'label' => $font); else unset($font_custom[$key]); } $fonts = array_merge($font_custom, $fonts); } }*/ include(RS_PLUGIN_PATH.'/includes/googlefonts.php'); foreach($googlefonts as $f => $val){ $fonts[] = array('type' => 'googlefont', 'version' => __('Google Fonts', 'revslider'), 'label' => $f, 'variants' => $val['variants'], 'subsets' => $val['subsets']); } return apply_filters('revslider_operations_getArrFontFamilys', $fonts); } /** * get font name in clean * @changed in 5.1.0 */ public function cleanFontStyle($font){ $font = str_replace(array('family=', '+'), array('', ' '), $font); $font = explode(':', $font); return (strpos($font['0'], ' ') !== false) ? '"'.$font['0'].'"' : $font['0']; } /** * * get the select classes html for putting in the html by ajax */ private function getHtmlSelectCaptionClasses($contentCSS){ $arrCaptions = $this->getArrCaptionClasses($contentCSS); $htmlSelect = RevSliderFunctions::getHTMLSelect($arrCaptions,"","id='layer_caption' name='layer_caption'",true); return($htmlSelect); } /** * Fetch all Custom CSS only one time * @since: 5.2.4 **/ public static function fillCSS(){ if(empty(self::$css)){ $db = new RevSliderDB(); $customCss = array(); $result = $db->fetch(RevSliderGlobals::$table_css); if(!empty($result)){ $customCss = $result; } self::$css = $customCss; } } /** * * get contents of the css table */ public function getCaptionsContent(){ if(empty(self::$css)){ self::fillCSS(); } $result = self::$css; $contentCSS = RevSliderCssParser::parseDbArrayToCss($result); return($contentCSS); } /** * * get contents of the css table */ public static function getCaptionsContentArray($handle = false){ if(empty(self::$css)){ self::fillCSS(); } $result = self::$css; $contentCSS = RevSliderCssParser::parseDbArrayToArray($result, $handle); return($contentCSS); } /** * * get contents of the static css file */ public static function getStaticCss(){ /*if ( is_multisite() ){ if(!get_site_option('revslider-static-css')){ if(file_exists(RS_PLUGIN_PATH.'public/assets/css/static-captions.css')){ $contentCSS = @file_get_contents(RS_PLUGIN_PATH.'public/assets/css/static-captions.css'); self::updateStaticCss($contentCSS); } } $contentCSS = get_site_option('revslider-static-css', ''); }else{*/ if(!get_option('revslider-static-css')){ if(file_exists(RS_PLUGIN_PATH.'public/assets/css/static-captions.css')){ $contentCSS = @file_get_contents(RS_PLUGIN_PATH.'public/assets/css/static-captions.css'); self::updateStaticCss($contentCSS); } } $contentCSS = get_option('revslider-static-css', ''); //} return($contentCSS); } /** * * get contents of the static css file */ public static function updateStaticCss($content){ $content = str_replace(array("\'", '\"', '\\\\'),array("'", '"', '\\'), trim($content)); /*if ( is_multisite() ){ $c = get_site_option('revslider-static-css', ''); $c = update_site_option('revslider-static-css', $content); }else{*/ $c = get_option('revslider-static-css', ''); $c = RevSliderFunctionsWP::update_option('revslider-static-css', $content, 'off'); //} return $content; } /** * * get contents of the static css file */ public function getDynamicCss(){ if(empty(self::$css)){ self::fillCSS(); } $result = self::$css; $styles = RevSliderCssParser::parseDbArrayToCss($result, "\n"); return $styles; } /** * * insert captions css file content * @return new captions html select */ public function insertCaptionsContentData($content){ global $revSliderVersion; if(!isset($content['handle']) || !isset($content['idle']) || !isset($content['hover'])) return false; // || !isset($content['advanced']) $db = new RevSliderDB(); $handle = $content['handle']; if(!isset($content['hover'])) $content['hover'] = ''; if(!isset($content['advanced'])) $content['advanced'] = array(); if(!isset($content['advanced']['idle'])) $content['advanced']['idle'] = array(); if(!isset($content['advanced']['hover'])) $content['advanced']['hover'] = array(); $arrInsert = array(); $arrInsert["handle"] = '.tp-caption.'.$handle; $arrInsert["params"] = stripslashes(json_encode(str_replace("'", '"', $content['idle']))); $arrInsert["hover"] = stripslashes(json_encode(str_replace("'", '"', $content['hover']))); if(!isset($content['settings'])) $content['settings'] = array(); $content['settings']['version'] = 'custom'; $content['settings']['translated'] = '5'; // translated to version 5 currently $arrInsert["settings"] = stripslashes(json_encode(str_replace("'", '"', $content['settings']))); $arrInsert["advanced"] = array(); $arrInsert["advanced"]['idle'] = $content['advanced']['idle']; $arrInsert["advanced"]['hover'] = $content['advanced']['hover']; $arrInsert["advanced"] = stripslashes(json_encode(str_replace("'", '"', $arrInsert["advanced"]))); $result = $db->insert(RevSliderGlobals::$table_css, $arrInsert); //output captions array $arrCaptions = RevSliderCssParser::get_captions_sorted(); return($arrCaptions); } /** * update captions css file content * @return new captions html select */ public function updateCaptionsContentData($content){ global $revSliderVersion; if(!isset($content['handle']) || !isset($content['idle']) || !isset($content['hover'])) return false; // || !isset($content['advanced']) $db = new RevSliderDB(); //first get single entry to merge settings $styles = $db->fetchSingle(RevSliderGlobals::$table_css, $db->prepare('`handle` = %s', array('.tp-caption.'.$content['handle']))); if(empty($styles)) return false; $settings = json_decode(str_replace("'", '"', $styles['settings']), true); if(isset($content['settings']) && !empty($content['settings'])){ foreach($content['settings'] as $key => $value){ $settings[$key] = $value; } //$settings = array_merge($content['settings'], $settings); } $handle = $content['handle']; if(!isset($content['idle'])) $content['idle'] = ''; if(!isset($content['hover'])) $content['hover'] = ''; if(!isset($content['advanced'])) $content['advanced'] = array(); if(!isset($content['advanced']['idle'])) $content['advanced']['idle'] = array(); if(!isset($content['advanced']['hover'])) $content['advanced']['hover'] = array(); $arrUpdate = array(); $arrUpdate["params"] = stripslashes(json_encode(str_replace("'", '"', $content['idle']))); $arrUpdate["hover"] = stripslashes(json_encode(str_replace("'", '"', $content['hover']))); $arrUpdate["settings"] = stripslashes(json_encode(str_replace("'", '"', $settings))); $arrUpdate["advanced"] = array(); $arrUpdate["advanced"]['idle'] = $content['advanced']['idle']; $arrUpdate["advanced"]['hover'] = $content['advanced']['hover']; $arrUpdate["advanced"] = stripslashes(json_encode(str_replace("'", '"', $arrUpdate["advanced"]))); $result = $db->update(RevSliderGlobals::$table_css, $arrUpdate, array('handle' => '.tp-caption.'.$handle)); //output captions array $arrCaptions = RevSliderCssParser::get_captions_sorted(); return($arrCaptions); } /** * update captions advanced css * @return: new captions html select * @since: 5.0 */ public function updateAdvancedCssData($data){ if(!isset($data['handle']) || !isset($data['styles']) || !isset($data['type'])) return false; if($data['type'] !== 'idle' && $data['type'] !== 'hover') return false; $db = new RevSliderDB(); //get current styles $styles = $db->fetchSingle(RevSliderGlobals::$table_css, $db->prepare('`handle` = %s', array($data['handle']))); if(!empty($styles)){ if(!isset($styles['advanced'])) $styles['advanced'] = ''; $adv = json_decode(str_replace("'", '"', $styles['advanced']), true); if(!isset($adv['idle'])) $adv['idle'] = array(); if(!isset($adv['hover'])) $adv['hover'] = array(); $adv[$data['type']] = $data['styles']; $arrUpdate = array(); $arrUpdate['advanced'] = json_encode(str_replace("'", '"', $adv)); $result = $db->update(RevSliderGlobals::$table_css, $arrUpdate, array('handle' => $data['handle'])); //output captions array $arrCaptions = RevSliderCssParser::get_captions_sorted(); return($arrCaptions); }else{ return false; } } /** * rename caption * @since: 5.0 */ public function renameCaption($content){ if(isset($content['old_name']) && isset($content['new_name'])) { $db = new RevSliderDB(); $handle = $content['old_name']; $arrUpdate = array(); $arrUpdate["handle"] = '.tp-caption.'.$content['new_name']; $result = $db->update(RevSliderGlobals::$table_css, $arrUpdate, array('handle' => '.tp-caption.'.$handle)); if($result !== false){ //rename all layers in all Sliders that use this old name with the new name $slider = new RevSlider(); $arrSliders = $slider->getArrSliders(); if(!empty($arrSliders)){ foreach($arrSliders as $slider){ $arrSildes = $slider->getSlides(); foreach($arrSildes as $slide){ $slide->replaceCssClass($content['old_name'], $content['new_name']); } } } } } //output captions array $arrCaptions = RevSliderCssParser::get_captions_sorted(); return($arrCaptions); } /** * * delete captions css file content * @return new captions html select */ public function deleteCaptionsContentData($handle){ $db = new RevSliderDB(); $db->delete(RevSliderGlobals::$table_css, $db->prepare("handle= %s", array(".tp-caption.".$handle))); //$this->updateDynamicCaptions(); //output captions array $arrCaptions = RevSliderCssParser::get_captions_sorted(); return($arrCaptions); } /** * * update dynamic-captions css file content */ public static function updateDynamicCaptions($full = false){ if($full){ $captions = array(); $captions = RevSliderOperations::getCaptionsContentArray(); $styles = RevSliderCssParser::parseArrayToCss($captions, "\n"); }else{ //go through all sliders and check which classes are used, get all classes from DB and write them into the file $slider = new RevSlider(); $arrSliders = $slider->getArrSliders(); $classes = array(); //get used classes if(!empty($arrSliders)){ foreach($arrSliders as $slider){ try{ $slides = $slider->getSlides(); if(!empty($slides)){ foreach($slides as $slide){ $layers = $slide->getLayers(); if(!empty($layers)){ foreach($layers as $layer){ if(isset($layer['style'])){ if(!empty($layer['style'])) $classes[$layer['style']] = true; } } } } } }catch(Exception $e){ $errorMessage = "ERROR: ".$e->getMessage(); } } } if(!empty($classes)){ $captions = array(); foreach($classes as $class => $val){ $captionCheck = RevSliderOperations::getCaptionsContentArray($class); if(!empty($captionCheck)) $captions[] = $captionCheck; } $styles = RevSliderCssParser::parseArrayToCss($captions, "\n"); } } } /** * * get contents of the css file */ public static function getCaptionsCssContentArray(){ if(file_exists(RS_PLUGIN_PATH.'public/assets/css/captions.css')) $contentCSS = file_get_contents(RS_PLUGIN_PATH.'public/assets/css/captions.css'); else if(file_exists(RS_PLUGIN_PATH.'public/assets/css/captions-original.css')) $contentCSS = file_get_contents(RS_PLUGIN_PATH.'public/assets/css/captions-original.css'); else if(file_exists(RS_PLUGIN_PATH.'backup/'.'captions.css')) $contentCSS = file_get_contents(RS_PLUGIN_PATH.'backup/'.'captions.css'); else if(file_exists(RS_PLUGIN_PATH.'backup/'.'captions-original.css')) $contentCSS = file_get_contents(RS_PLUGIN_PATH.'backup/'.'captions-original.css'); else RevSliderFunctions::throwError("No captions.css found! This installation is incorrect, please make sure to reupload the Slider Revolution plugin and try again!"); $result = RevSliderCssParser::parseCssToArray($contentCSS); return($result); } /** * * import contents of the css file */ public static function importCaptionsCssContentArray(){ $db = new RevSliderDB(); $css = self::getCaptionsCssContentArray(); $static = array(); if(is_array($css) && $css !== false && count($css) > 0){ foreach($css as $class => $styles){ //check if static style or dynamic style $class = trim($class); if((strpos($class, ':hover') === false && strpos($class, ':') !== false) || //before, after strpos($class," ") !== false || // .tp-caption.imageclass img or .tp-caption .imageclass or .tp-caption.imageclass .img strpos($class,".tp-caption") === false || // everything that is not tp-caption (strpos($class,".") === false || strpos($class,"#") !== false) || // no class -> #ID or img strpos($class,">") !== false){ //.tp-caption>.imageclass or .tp-caption.imageclass>img or .tp-caption.imageclass .img $static[$class] = $styles; continue; } //is a dynamic style if(strpos($class, ':hover') !== false){ $class = trim(str_replace(':hover', '', $class)); $arrInsert = array(); $arrInsert["hover"] = json_encode($styles); $arrInsert["settings"] = json_encode(array('hover' => 'true')); }else{ $arrInsert = array(); $arrInsert["params"] = json_encode($styles); } //check if class exists $result = $db->fetch(RevSliderGlobals::$table_css, $db->prepare("handle = %s", array($class))); if(!empty($result)){ //update $db->update(RevSliderGlobals::$table_css, $arrInsert, array('handle' => $class)); }else{ //insert $arrInsert["handle"] = $class; $db->insert(RevSliderGlobals::$table_css, $arrInsert); } } } if(!empty($static)){ //save static into static-captions.css $css = RevSliderCssParser::parseStaticArrayToCss($static); $static_cur = RevSliderOperations::getStaticCss(); //get the open sans line! $css = $static_cur."\n".$css; self::updateStaticCss($css); } } /** * * move old captions.css and captions-original.css */ public static function moveOldCaptionsCss(){ if(file_exists(RevSliderGlobals::$filepath_captions_original)) $success = @rename(RevSliderGlobals::$filepath_captions_original, RevSliderGlobals::$filepath_backup.'/captions-original.css'); if(file_exists(RevSliderGlobals::$filepath_captions)) $success = @rename(RevSliderGlobals::$filepath_captions, RevSliderGlobals::$filepath_backup.'/captions.css'); } /** * * preview slider output * if output object is null - create object */ public function previewOutput($sliderID,$output = null){ if($sliderID == "empty_output"){ $this->loadingMessageOutput(); exit(); } if($output == null) $output = new RevSliderOutput(); $slider = new RevSlider(); $slider->initByID($sliderID); $isWpmlExists = RevSliderWpml::isWpmlExists(); //$isWpmlExists = false; $useWpml = $slider->getParam("use_wpml","off"); $wpmlActive = false; if($isWpmlExists && $useWpml == "on"){ $wpmlActive = true; $arrLanguages = RevSliderWpml::getArrLanguages(false); //set current lang to output $currentLang = RevSliderFunctions::getPostGetVariable("lang"); if(empty($currentLang)) $currentLang = RevSliderWpml::getCurrentLang(); if(empty($currentLang)) $currentLang = $arrLanguages[0]; //var_dump($currentLang);die(); $output->setLang($currentLang); $selectLangChoose = RevSliderFunctions::getHTMLSelect($arrLanguages,$currentLang,"id='select_langs'",true); } $output->setPreviewMode(); //put the output html $urlPlugin = RS_PLUGIN_URL.'public/assets/'; $ajaxurl = 'index.php?controller=AdminRevolutionsliderAjax&page=revslider&token='.Tools::getAdminTokenLite('AdminRevolutionsliderAjax'); $urlPreviewPattern = $ajaxurl."&client_action=preview_slider&sliderid=".$sliderID."&lang=[lang]&nonce=[nonce]"; //$urlPreviewPattern =''; $nonce = wp_create_nonce("revslider_actions"); $setBase = (is_ssl()) ? "https://" : "http://"; ?>
'.$styles.''; //.$stylesinnerlayers $http = (is_ssl()) ? 'https' : 'http'; $operations = new RevSliderOperations(); $arrValues = $operations->getGeneralSettingsValues(); $set_diff_font = RevSliderFunctions::getVal($arrValues, "change_font_loading",''); if($set_diff_font !== ''){ $font_url = $set_diff_font; }else{ $font_url = $http.'://fonts.googleapis.com/css?family='; } $custom_css = RevSliderOperations::getStaticCss(); echo ''; $gfonts = ''; $googleFont = $slider->getParam("google_font"); if(is_array($googleFont)){ foreach($googleFont as $key => $font){ } }else{ RevSliderOperations::setCleanFontImport($googleFont); //$gfonts .= RevSliderOperations::getCleanFontImport($googleFont); } //add all google fonts of layers $gfsubsets = $slider->getParam("subsets",array()); $gf = $slider->getUsedFonts(false); foreach($gf as $gfk => $gfv){ $variants = array(); if(!empty($gfv['variants'])){ foreach($gfv['variants'] as $mgvk => $mgvv){ $variants[] = $mgvk; } } $subsets = array(); if(!empty($gfv['subsets'])){ foreach($gfv['subsets'] as $ssk => $ssv){ if(array_search(esc_attr($gfk.'+'.$ssv), $gfsubsets) !== false){ $subsets[] = $ssv; } } } RevSliderOperations::setCleanFontImport($gfk, '', '', $variants, $subsets); //$gfonts .= RevSliderOperations::getCleanFontImport($gfk, '', '', $variants, $subsets); } echo RevSliderOperations::printCleanFontImport(); //echo $gfonts; ?>Slider Revolution is an innovative, responsive Slider Plugin that displays your content the beautiful way. Whether it's a Slider, Carousel, Hero Scene or even a whole Front Page.
The visual drag & drop editor will help you to create your Sliders and tell your own stories in no time!
Slider Revolution is an innovative, responsive Slider Plugin that displays your content the beautiful way. Whether it's a Slider, Carousel, Hero Scene or even a whole Front Page.
The visual drag & drop editor will help you to create your Sliders and tell your own stories in no time!
We would always recommend to use our online documentation however you can find also our embeded local documentation zipped in the Documentation folder. Online Documentation and FAQ Page is regulary updated. You will find More examples, Visit us also at http://themepunch.com !
You find many Examples for All Skins and Positions of Navigation examples in the examples/Navigation folder. Based on these prepared examples you can build your own navigation skins. Feel free to copy and paste the markups after your requests in your own documents.
We prepared a small List of Transition and a light weight Markup Builder in the examples/Transitions folder. This will help you to get an overview how the Slider and Layer Transitions works. Copy the Markups of the generated Slide and Layer Animation Examples and paste it into your own Documents.
';
// print_r($response);
// die();
// $response_code = wp_remote_retrieve_response_code( $response );
// $version_info = wp_remote_retrieve_body( $response );
// // var_dump($version_info);die();
// if ( $response_code != 200 ) {
// return false;
// }
// if($version_info == 'valid'){
// update_option('revslider-valid', 'true');
// update_option('revslider-code', $data['code']);
// //update_option('revslider-email', $data['email']);
// update_option('revslider-temp-active-notice', 'false');
// return true;
// }elseif($version_info == 'exist'){
// //return 'exist';
// RevSliderFunctions::throwError(__('Purchase Code already registered!', 'revslider'));
// }elseif($version_info == 'temp_valid'){ //only temporary active, rechecking needs to be done soon on the themepunch servers (envato API may be down)
// update_option('revslider-valid', 'true');
// update_option('revslider-code', $data['code']);
// //update_option('revslider-email', $data['email']);
// update_option('revslider-temp-active', 'true');
// update_option('revslider-temp-active-notice', 'false');
// return 'temp';
// }else{
// return false;
// }
/*elseif($version_info == 'bad_email'){
return 'bad_email';
}elseif($version_info == 'email_used'){
return 'email_used';
}*/
}
public function doPurchaseDeactivation($data){
global $wp_version;
$code = get_option('revslider-code', '');
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'http://updates.smartdatasoft.net/activate.php',
CURLOPT_USERAGENT => 'Smartdatasoft cURL Request',
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => array(
'purchase_key' => $code,
'operation' => 'deactivate',
'domain' => $_SERVER['HTTP_HOST'],
'module' =>'revsliderprestashop',
'version' => RevSliderGlobals::SLIDER_REVISION,
//'theme_name' => basename(_THEME_DIR_)
'theme_name' =>'classic'
)
));
$resp = curl_exec($curl);
curl_close($curl);
$respAarray = (array) json_decode($resp);
if (!empty($respAarray)) {
if ($respAarray['status'] == 1) {
update_option('revslider-valid', 'false');
update_option('revslider-temp-active', 'false');
update_option('revslider-code', '');
return true;
}
} else {
return false;
}
// $code = get_option('revslider-code', '');
// $response = wp_remote_post('https://updates.themepunch.tools/deactivate.php', array(
// 'user-agent' => 'Prestashop'.$wp_version.'; '.get_bloginfo('url'),
// 'body' => array(
// 'code' => urlencode($code),
// 'product' => urlencode('revslider_prestashop')
// )
// ));
// // echo '';
// // print_r($response);
// // die();
// $response_code = wp_remote_retrieve_response_code( $response );
// $version_info = wp_remote_retrieve_body( $response );
// if ( $response_code != 200 || is_wp_error( $version_info ) ) {
// return false;
// }
// if($version_info == 'valid'){
// update_option('revslider-valid', 'false');
// update_option('revslider-temp-active', 'false');
// update_option('revslider-code', '');
// return true;
// }else{
// return false;
// }
}
public static function get_performance($val, $min, $max) {
if ($val==0) $val = 1;
$arr = array();
//print_r(($max-$min)."/".($val-$min)."=");
$arr["proc"] = (($max-$min) / ($val-$min))*100;
//print_r($arr["proc"]." --> ");
if ($arr["proc"]>100) $arr["proc"] = 100;
if ($arr["proc"]<0) $arr["proc"] = 0;
if ($arr["proc"]<35) $arr["col"] = "slow";
else
if ($arr["proc"]<75) $arr["col"] = "ok";
else
//print_r($arr["proc"]."
");
$arr["col"] = "fast";
return $arr;
}
/**
* view the estimated speed of the Slider
* @since: 5.0
*/
public static function get_slider_speed($sliderID){
//$data = wp_get_attachment_metadata($cur_img_id);
ob_start();
$total_size = 0;
$do_ssl = (is_ssl()) ? 'http:' : 'https:';
$slider = new RevSliderSlider();
$slider->initByID($sliderID);
$slides = $slider->getSlidesForExport();
$static_slides = $slider->getStaticSlideForExport();
if(!empty($static_slides) && is_array($static_slides)){
foreach($static_slides as $s_slide){
$slides[] = $s_slide;
}
}
$used_images = array();
$used_videos = array();
$used_captions = array();
$using_kenburns = false;
$using_parallax = false;
$using_carousel = false;
$using_navigation = false;
$using_videos = false;
$using_actions = false;
$using_layeranim = false;
$img_size = 0;
$video_size = 0;
$slide_counter = 0;
$firstslide_size = 0;
$smartslide_size = 0;
if($slider->getParam("use_parallax","off") == 'on')
$using_parallax = true;
if($slider->getParam("slider-type","standard") == 'carousel')
$using_carousel = true;
$enable_arrows = $slider->getParam('enable_arrows','off');
$enable_bullets = $slider->getParam('enable_bullets','off');
$enable_tabs = $slider->getParam('enable_tabs','off');
$enable_thumbnails = $slider->getParam('enable_thumbnails','off');
if($enable_arrows == 'on' || $enable_bullets == 'on' || $enable_tabs == 'on' || $enable_thumbnails == 'on')
$using_navigation = true;
if(!empty($slides) && count($slides) > 0){
foreach($slides as $key => $slide){
if(isset($slide['params']['state']) && $slide['params']['state'] != 'published') continue;
if(!isset($slide['id'])) continue;
$slide_counter++;
$slide_id = $slide['id'];
if(isset($slide['params']['kenburn_effect']) && $slide['params']['kenburn_effect'] == 'on')
$using_kenburns = true;
if(!isset($slide['params']['image_source_type'])) $slide['params']['image_source_type'] = 'full';
if(isset($slide['params']['image']) && $slide['params']['image'] != ''){
//add infos of image to an array
$infos = array();
$urlImage = false;
switch($slide['params']['background_type']){
case 'streamyoutube':
case 'streaminstagram':
case 'streamvimeo':
case 'youtube':
case 'vimeo':
$using_videos = true;
break;
}
if(isset($slide['params']['image_id']) && $slide['params']['image_id'] !=''){
$cur_img_id = $slide['params']['image_id'];
//get image sizes by ID
$urlImage = wp_get_attachment_image_src($slide['params']['image_id'], $slide['params']['image_source_type']);
}
if($urlImage === false){
$cur_img_id = RevSliderFunctionsWP::get_image_id_by_url($slide['params']['image']);
if($cur_img_id !== false){
$urlImage = wp_get_attachment_image_src($cur_img_id, $slide['params']['image_source_type']);
}
}
if($urlImage !== false){
$infos['id'] = $cur_img_id;
$file = get_attached_file( $cur_img_id );
$infos['info'] = pathinfo( $file );
if(file_exists( $file )){
$infos['size'] = filesize( $file );
$infos['size-format'] = size_format($infos['size'], 2);
$img_size += $infos['size'];
if ($slide_counter==1)
$firstslide_size += $infos['size'];
if ($slide_counter==1 || $slide_counter==2 || $slide_counter==count($slides))
$smartslide_size += $infos['size'];
}else{
$infos['id'] = false;
}
}else{
$infos['id'] = 'external';
}
if(strpos($slide_id, 'static_') !== false){
$infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_'.$sliderID);
}else{
$infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id='.$slide_id);
}
$used_images[$slide['params']['image']] = $infos;
}
if(isset($slide['layers']) && !empty($slide['layers']) && count($slide['layers']) > 0){
$using_layeranim = true;
foreach($slide['layers'] as $lKey => $layer){
switch($layer['type']){
case 'image':
$infos = array();
if(isset($layer['image_url']) && trim($layer['image_url']) != ''){
$cur_img_id = RevSliderFunctionsWP::get_image_id_by_url($layer['image_url']);
if($cur_img_id !== false){
if(!isset($layer['layer-image-size']) || $layer['layer-image-size'] == 'auto') $layer['layer-image-size'] = $slide['params']['image_source_type'];
$urlImage = wp_get_attachment_image_src($cur_img_id, $layer['layer-image-size']);
if($urlImage !== false){
$infos['id'] = $cur_img_id;
$file = get_attached_file( $cur_img_id );
$infos['info'] = pathinfo( $file );
if(file_exists( $file )){
$infos['size'] = filesize( $file );
$infos['size-format'] = size_format($infos['size'], 2);
$img_size += $infos['size'];
if ($slide_counter==1)
$firstslide_size += $infos['size'];
if ($slide_counter==1 || $slide_counter==2 || $slide_counter==count($slides))
$smartslide_size += $infos['size'];
}else{
$infos['id'] = false;
}
}else{
$infos['id'] = 'external';
}
}else{
$infos['id'] = 'external';
}
if(strpos($slide_id, 'static_') !== false){
$infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_'.$sliderID);
}else{
$infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id='.$slide_id);
}
$used_images[$layer['image_url']] = $infos; //image_url if image caption
}
break;
case 'video':
$using_videos = true;
//get cover image if existing
$infos = array();
$poster_img = array();
if(isset($layer['video_data']) && isset($layer['video_data']->urlPoster)){
$poster_img[] = $layer['video_data']->urlPoster;
}
if(isset($layer['video_image_url']) && isset($layer['video_image_url'])){
$poster_img[] = $layer['video_image_url'];
}
if(!empty($poster_img)){
foreach($poster_img as $img){
if(trim($img) == '') continue;
$cur_img_id = RevSliderFunctionsWP::get_image_id_by_url($img);
if($cur_img_id !== false){
if(!isset($layer['layer-image-size']) || $layer['layer-image-size'] == 'auto') $layer['layer-image-size'] = $slide['params']['image_source_type'];
$urlImage = wp_get_attachment_image_src($cur_img_id, $layer['layer-image-size']);
if($urlImage !== false){
$infos['id'] = $cur_img_id;
$file = get_attached_file( $cur_img_id );
$infos['info'] = pathinfo( $file );
if(file_exists( $file )){
$infos['size'] = filesize( $file );
$infos['size-format'] = size_format($infos['size'], 2);
$img_size += $infos['size'];
if ($slide_counter==1)
$firstslide_size += $infos['size'];
if ($slide_counter==1 || $slide_counter==2 || $slide_counter==count($slides))
$smartslide_size += $infos['size'];
}else{
$infos['id'] = false;
}
}else{
$infos['id'] = 'external';
}
}else{
$infos['id'] = 'external';
}
if(strpos($slide_id, 'static_') !== false){
$infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_'.$sliderID);
}else{
$infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id='.$slide_id);
}
$used_images[$img] = $infos; //image_url if image caption
}
}
$infos = array();
if(isset($layer['video_type'])){
//add videos and try to get video size
if(isset($layer['video_data'])){
$video_arr = array();
$max_video_size = 0;
if(strpos($slide_id, 'static_') !== false){
$infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_'.$sliderID);
}else{
$infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id='.$slide_id);
}
switch($layer['video_type']){
case 'html5':
if(isset($layer['video_data']->urlMp4) && !empty($layer['video_data']->urlMp4)) $video_arr['mp4'] = $layer['video_data']->urlMp4;
if(isset($layer['video_data']->urlWebm) && !empty($layer['video_data']->urlWebm)) $video_arr['webm'] = $layer['video_data']->urlWebm;
if(isset($layer['video_data']->urlOgv) && !empty($layer['video_data']->urlOgv)) $video_arr['mp4'] = $layer['video_data']->urlOgv;
if(!empty($video_arr)){
foreach($video_arr as $type => $url){
$cur_id = RevSliderFunctionsWP::get_image_id_by_url($url);
if($cur_id !== false){
$infos['id'] = $cur_id;
$file = get_attached_file( $cur_id );
$infos['info'] = pathinfo( $file );
if(file_exists( $file )){
$infos['size'] = filesize( $file );
$infos['size-format'] = size_format($infos['size'], 2);
if($infos['size'] > $max_video_size) $max_video_size = $infos['size']; //add only the largest video of the three here as each browser loads only one file and we can add here the biggest
}else{
$infos['id'] = 'external';
}
}else{
$infos['id'] = 'external';
}
$used_videos[$url] = $infos;
}
$video_size += $max_video_size;
}
break;
case 'youtube':
$infos['id'] = 'external';
if(!isset($layer['video_data']->id) || empty($layer['video_data']->id)) continue;
$used_videos[$do_ssl.'//www.youtube.com/watch?v='.$layer['video_data']->id] = $infos;
break;
case 'vimeo':
if(!isset($layer['video_data']->id) || empty($layer['video_data']->id)) continue;
$infos['id'] = 'external';
$used_videos[$do_ssl.'//vimeo.com/'.$layer['video_data']->id] = $infos;
break;
}
}
}
break;
}
//check captions for actions
if(isset($layer['layer_action']) && !empty($layer['layer_action'])){
$a_action = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($layer['layer_action'], 'action', array()));
$a_link_type = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($layer['layer_action'], 'link_type', array()));
if(!empty($a_action)){
foreach($a_action as $num => $action){
if($using_actions == true) break;
if($action !== 'link'){
$using_actions = true;
}else{
//check if jQuery or a tag
if($a_link_type[$num] == 'jquery') $using_actions = true;
}
}
}
}
if(isset($layer['style']) && $layer['style'] != '') $used_captions[$layer['style']] = true;
}
}
}
}
$total_size += $img_size;
$img_counter = 0;
$issues ="";
//$total_size += $video_size;
?>
%umtsspeed-single%
%dslspeed-single%
%t1speed-single%
%umtsspeed-smart%
%dslspeed-smart%
%t1speed-smart%
%umtsspeed-all%
%dslspeed-all%
%t1speed-all%
%overall_size%
Show Full Statistics
%firstslide_size%
%smartslide_size%
%allslide_size%
Show All Issues
standardpreset || heropreset || carouselpreset
$presets[] = array (
'settings' => array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/slideshow_auto_layout.png', 'name' => 'Slideshow-Auto', 'preset' => 'standardpreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'on',
'stop_slider' => 'off',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'on',
'background_dotted_overlay' => 'none',
'background_color' => 'transparent',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'on',
'navigation_arrow_style' => 'round',
'arrows_always_on' => 'true',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'on',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'center',
'leftarrow_offset_hor' => '30',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'right',
'rightarrow_align_vert' => 'center',
'rightarrow_offset_hor' => '30',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'on',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'horizontal',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'center',
'bullets_align_vert' => 'bottom',
'bullets_offset_hor' => '0',
'bullets_offset_vert' => '30',
'enable_thumbnails' => 'off',
'thumbnails_padding' => '5',
'span_thumbnails_wrapper' => 'off',
'thumbnails_wrapper_color' => 'transparent',
'thumbnails_wrapper_opacity' => '100',
'thumbnails_style' => 'round',
'thumb_amount' => '5',
'thumbnails_space' => '5',
'thumbnail_direction' => 'horizontal',
'thumb_width' => '100',
'thumb_height' => '50',
'thumb_width_min' => '100',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'off',
'thumbs_under_hidden' => '0',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'inner',
'thumbnails_align_hor' => 'center',
'thumbnails_align_vert' => 'bottom',
'thumbnails_offset_hor' => '0',
'thumbnails_offset_vert' => '20',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'off',
'carousel_space' => '0',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '3',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'off',
'carousel_rotation' => 'off',
'carousel_varyrotate' => 'off',
'carousel_maxrotation' => '0',
'carousel_scale' => 'off',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '50',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'auto',
'width' => '1240',
'width_notebook' => '1024',
'width_tablet' => '778',
'width_mobile' => '480',
'height' => '600',
'height_notebook' => '600',
'height_tablet' => '500',
'height_mobile' => '400',
'enable_custom_size_notebook' => 'on',
'enable_custom_size_tablet' => 'on',
'enable_custom_size_iphone' => 'on',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_javascript' => '',
'custom_css' => '',
),
);
$presets[] = array (
'settings' =>
array ( 'class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/slideshow_auto_layout.png', 'name' => 'Slideshow-Full-Width', 'preset' => 'standardpreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'on',
'stop_slider' => 'off',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'on',
'background_dotted_overlay' => 'none',
'background_color' => 'transparent',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'on',
'navigation_arrow_style' => 'round',
'arrows_always_on' => 'true',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'on',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'center',
'leftarrow_offset_hor' => '30',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'right',
'rightarrow_align_vert' => 'center',
'rightarrow_offset_hor' => '30',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'on',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'horizontal',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'center',
'bullets_align_vert' => 'bottom',
'bullets_offset_hor' => '0',
'bullets_offset_vert' => '30',
'enable_thumbnails' => 'off',
'thumbnails_padding' => '5',
'span_thumbnails_wrapper' => 'off',
'thumbnails_wrapper_color' => 'transparent',
'thumbnails_wrapper_opacity' => '100',
'thumbnails_style' => 'round',
'thumb_amount' => '5',
'thumbnails_space' => '5',
'thumbnail_direction' => 'horizontal',
'thumb_width' => '100',
'thumb_height' => '50',
'thumb_width_min' => '100',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'off',
'thumbs_under_hidden' => '0',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'inner',
'thumbnails_align_hor' => 'center',
'thumbnails_align_vert' => 'bottom',
'thumbnails_offset_hor' => '0',
'thumbnails_offset_vert' => '20',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'off',
'carousel_space' => '0',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '3',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'off',
'carousel_rotation' => 'off',
'carousel_varyrotate' => 'off',
'carousel_maxrotation' => '0',
'carousel_scale' => 'off',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '50',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'fullwidth',
'width' => '1240',
'width_notebook' => '1024',
'width_tablet' => '778',
'width_mobile' => '480',
'height' => '600',
'height_notebook' => '600',
'height_tablet' => '500',
'height_mobile' => '400',
'enable_custom_size_notebook' => 'on',
'enable_custom_size_tablet' => 'on',
'enable_custom_size_iphone' => 'on',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_javascript' => '',
'custom_css' => '',
),
);
$presets[] = array (
'settings' =>
array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/slideshow_auto_layout.png', 'name' => 'Slideshow-Full-Screen', 'preset' => 'standardpreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'on',
'stop_slider' => 'off',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'on',
'background_dotted_overlay' => 'none',
'background_color' => 'transparent',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'on',
'navigation_arrow_style' => 'round',
'arrows_always_on' => 'true',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'on',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'center',
'leftarrow_offset_hor' => '30',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'right',
'rightarrow_align_vert' => 'center',
'rightarrow_offset_hor' => '30',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'on',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'horizontal',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'center',
'bullets_align_vert' => 'bottom',
'bullets_offset_hor' => '0',
'bullets_offset_vert' => '30',
'enable_thumbnails' => 'off',
'thumbnails_padding' => '5',
'span_thumbnails_wrapper' => 'off',
'thumbnails_wrapper_color' => 'transparent',
'thumbnails_wrapper_opacity' => '100',
'thumbnails_style' => 'round',
'thumb_amount' => '5',
'thumbnails_space' => '5',
'thumbnail_direction' => 'horizontal',
'thumb_width' => '100',
'thumb_height' => '50',
'thumb_width_min' => '100',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'off',
'thumbs_under_hidden' => '0',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'inner',
'thumbnails_align_hor' => 'center',
'thumbnails_align_vert' => 'bottom',
'thumbnails_offset_hor' => '0',
'thumbnails_offset_vert' => '20',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'off',
'carousel_space' => '0',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '3',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'off',
'carousel_rotation' => 'off',
'carousel_varyrotate' => 'off',
'carousel_maxrotation' => '0',
'carousel_scale' => 'off',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '50',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'fullscreen',
'width' => '1240',
'width_notebook' => '1024',
'width_tablet' => '778',
'width_mobile' => '480',
'height' => '600',
'height_notebook' => '600',
'height_tablet' => '500',
'height_mobile' => '400',
'enable_custom_size_notebook' => 'on',
'enable_custom_size_tablet' => 'on',
'enable_custom_size_iphone' => 'on',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_javascript' => '',
'custom_css' => '',
),
);
$presets[] = array (
'settings' =>
array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/thumb_auto1.png', 'name' => 'Thumbs-Bottom-Auto', 'preset' => 'standardpreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'off',
'stop_slider' => 'on',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'off',
'background_dotted_overlay' => 'none',
'background_color' => 'transparent',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'on',
'navigation_arrow_style' => 'navbar',
'arrows_always_on' => 'false',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'on',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'center',
'leftarrow_offset_hor' => '30',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'right',
'rightarrow_align_vert' => 'center',
'rightarrow_offset_hor' => '30',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'off',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'horizontal',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'center',
'bullets_align_vert' => 'bottom',
'bullets_offset_hor' => '0',
'bullets_offset_vert' => '30',
'enable_thumbnails' => 'on',
'thumbnails_padding' => '5',
'span_thumbnails_wrapper' => 'off',
'thumbnails_wrapper_color' => 'transparent',
'thumbnails_wrapper_opacity' => '100',
'thumbnails_style' => 'navbar',
'thumb_amount' => '5',
'thumbnails_space' => '5',
'thumbnail_direction' => 'horizontal',
'thumb_width' => '50',
'thumb_height' => '50',
'thumb_width_min' => '50',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'off',
'thumbs_under_hidden' => '0',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'inner',
'thumbnails_align_hor' => 'center',
'thumbnails_align_vert' => 'bottom',
'thumbnails_offset_hor' => '0',
'thumbnails_offset_vert' => '20',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'off',
'carousel_space' => '0',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '3',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'off',
'carousel_rotation' => 'off',
'carousel_varyrotate' => 'off',
'carousel_maxrotation' => '0',
'carousel_scale' => 'off',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '50',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'auto',
'width' => '1240',
'width_notebook' => '1024',
'width_tablet' => '778',
'width_mobile' => '480',
'height' => '600',
'height_notebook' => '600',
'height_tablet' => '500',
'height_mobile' => '400',
'enable_custom_size_notebook' => 'on',
'enable_custom_size_tablet' => 'on',
'enable_custom_size_iphone' => 'on',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_javascript' => '',
'custom_css' => '',
),
);
$presets[] = array (
'settings' =>
array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/thumbs_left_auto.png', 'name' => 'Thumbs-Left-Auto', 'preset' => 'standardpreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'off',
'stop_slider' => 'on',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'off',
'background_dotted_overlay' => 'none',
'background_color' => 'transparent',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'on',
'navigation_arrow_style' => 'navbar',
'arrows_always_on' => 'false',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'off',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'right',
'leftarrow_align_vert' => 'bottom',
'leftarrow_offset_hor' => '40',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'right',
'rightarrow_align_vert' => 'bottom',
'rightarrow_offset_hor' => '0',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'off',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'horizontal',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'center',
'bullets_align_vert' => 'bottom',
'bullets_offset_hor' => '0',
'bullets_offset_vert' => '30',
'enable_thumbnails' => 'on',
'thumbnails_padding' => '5',
'span_thumbnails_wrapper' => 'off',
'thumbnails_wrapper_color' => 'transparent',
'thumbnails_wrapper_opacity' => '100',
'thumbnails_style' => 'navbar',
'thumb_amount' => '5',
'thumbnails_space' => '5',
'thumbnail_direction' => 'vertical',
'thumb_width' => '50',
'thumb_height' => '50',
'thumb_width_min' => '50',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'on',
'thumbs_under_hidden' => '778',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'inner',
'thumbnails_align_hor' => 'left',
'thumbnails_align_vert' => 'center',
'thumbnails_offset_hor' => '20',
'thumbnails_offset_vert' => '0',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'off',
'carousel_space' => '0',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '3',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'off',
'carousel_rotation' => 'off',
'carousel_varyrotate' => 'off',
'carousel_maxrotation' => '0',
'carousel_scale' => 'off',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '50',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'auto',
'width' => '1240',
'width_notebook' => '1024',
'width_tablet' => '778',
'width_mobile' => '480',
'height' => '600',
'height_notebook' => '600',
'height_tablet' => '500',
'height_mobile' => '400',
'enable_custom_size_notebook' => 'on',
'enable_custom_size_tablet' => 'on',
'enable_custom_size_iphone' => 'on',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_javascript' => '',
'custom_css' => '',
),
);
$presets[] = array (
'settings' => array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/thumbs_right_auto.png', 'name' => 'Thumbs-Right-Auto', 'preset' => 'standardpreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'off',
'stop_slider' => 'on',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'off',
'background_dotted_overlay' => 'none',
'background_color' => 'transparent',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'on',
'navigation_arrow_style' => 'navbar',
'arrows_always_on' => 'false',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'off',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'bottom',
'leftarrow_offset_hor' => '0',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'left',
'rightarrow_align_vert' => 'bottom',
'rightarrow_offset_hor' => '40',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'off',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'horizontal',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'center',
'bullets_align_vert' => 'bottom',
'bullets_offset_hor' => '0',
'bullets_offset_vert' => '30',
'enable_thumbnails' => 'on',
'thumbnails_padding' => '5',
'span_thumbnails_wrapper' => 'off',
'thumbnails_wrapper_color' => 'transparent',
'thumbnails_wrapper_opacity' => '100',
'thumbnails_style' => 'navbar',
'thumb_amount' => '5',
'thumbnails_space' => '5',
'thumbnail_direction' => 'vertical',
'thumb_width' => '50',
'thumb_height' => '50',
'thumb_width_min' => '50',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'on',
'thumbs_under_hidden' => '778',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'inner',
'thumbnails_align_hor' => 'right',
'thumbnails_align_vert' => 'center',
'thumbnails_offset_hor' => '20',
'thumbnails_offset_vert' => '0',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'off',
'carousel_space' => '0',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '3',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'off',
'carousel_rotation' => 'off',
'carousel_varyrotate' => 'off',
'carousel_maxrotation' => '0',
'carousel_scale' => 'off',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '50',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'auto',
'width' => '1240',
'width_notebook' => '1024',
'width_tablet' => '778',
'width_mobile' => '480',
'height' => '600',
'height_notebook' => '600',
'height_tablet' => '500',
'height_mobile' => '400',
'enable_custom_size_notebook' => 'on',
'enable_custom_size_tablet' => 'on',
'enable_custom_size_iphone' => 'on',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_javascript' => '',
'custom_css' => '',
),
);
$presets[] = array (
'settings' =>
array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/scroll_fullscreen.png', 'name' => 'Vertical-Bullet-Full-Screen', 'preset' => 'standardpreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'off',
'stop_slider' => 'on',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'off',
'background_dotted_overlay' => 'none',
'background_color' => 'transparent',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'off',
'navigation_arrow_style' => 'navbar',
'arrows_always_on' => 'false',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'off',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'bottom',
'leftarrow_offset_hor' => '0',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'left',
'rightarrow_align_vert' => 'bottom',
'rightarrow_offset_hor' => '40',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'on',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'vertical',
'bullets_always_on' => 'false',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'right',
'bullets_align_vert' => 'center',
'bullets_offset_hor' => '30',
'bullets_offset_vert' => '0',
'enable_thumbnails' => 'off',
'thumbnails_padding' => '5',
'span_thumbnails_wrapper' => 'off',
'thumbnails_wrapper_color' => 'transparent',
'thumbnails_wrapper_opacity' => '100',
'thumbnails_style' => 'navbar',
'thumb_amount' => '5',
'thumbnails_space' => '5',
'thumbnail_direction' => 'vertical',
'thumb_width' => '50',
'thumb_height' => '50',
'thumb_width_min' => '50',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'on',
'thumbs_under_hidden' => '778',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'inner',
'thumbnails_align_hor' => 'right',
'thumbnails_align_vert' => 'center',
'thumbnails_offset_hor' => '20',
'thumbnails_offset_vert' => '0',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'off',
'carousel_space' => '0',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '3',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'off',
'carousel_rotation' => 'off',
'carousel_varyrotate' => 'off',
'carousel_maxrotation' => '0',
'carousel_scale' => 'off',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '50',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'fullscreen',
'width' => '1240',
'width_notebook' => '1024',
'width_tablet' => '778',
'width_mobile' => '480',
'height' => '600',
'height_notebook' => '600',
'height_tablet' => '500',
'height_mobile' => '400',
'enable_custom_size_notebook' => 'on',
'enable_custom_size_tablet' => 'on',
'enable_custom_size_iphone' => 'on',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_javascript' => '',
'custom_css' => '',
),
);
$presets[] = array (
'settings' =>
array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Wide-Full-Screen', 'preset' => 'heropreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'off',
'stop_slider' => 'on',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'off',
'background_dotted_overlay' => 'none',
'background_color' => 'transparent',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'off',
'navigation_arrow_style' => 'navbar',
'arrows_always_on' => 'false',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'off',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'bottom',
'leftarrow_offset_hor' => '0',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'left',
'rightarrow_align_vert' => 'bottom',
'rightarrow_offset_hor' => '40',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'on',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'vertical',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'right',
'bullets_align_vert' => 'center',
'bullets_offset_hor' => '30',
'bullets_offset_vert' => '0',
'enable_thumbnails' => 'off',
'thumbnails_padding' => '5',
'span_thumbnails_wrapper' => 'off',
'thumbnails_wrapper_color' => 'transparent',
'thumbnails_wrapper_opacity' => '100',
'thumbnails_style' => 'navbar',
'thumb_amount' => '5',
'thumbnails_space' => '5',
'thumbnail_direction' => 'vertical',
'thumb_width' => '50',
'thumb_height' => '50',
'thumb_width_min' => '50',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'on',
'thumbs_under_hidden' => '778',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'inner',
'thumbnails_align_hor' => 'right',
'thumbnails_align_vert' => 'center',
'thumbnails_offset_hor' => '20',
'thumbnails_offset_vert' => '0',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'off',
'carousel_space' => '0',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '3',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'off',
'carousel_rotation' => 'off',
'carousel_varyrotate' => 'off',
'carousel_maxrotation' => '0',
'carousel_scale' => 'off',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '50',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'fullscreen',
'width' => '1400',
'width_notebook' => '1240',
'width_tablet' => '778',
'width_mobile' => '480',
'height' => '868',
'height_notebook' => '768',
'height_tablet' => '960',
'height_mobile' => '720',
'enable_custom_size_notebook' => 'on',
'enable_custom_size_tablet' => 'on',
'enable_custom_size_iphone' => 'on',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_javascript' => '',
'custom_css' => '',
),
);
$presets[] = array (
'settings' =>
array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Wide-Full-Width', 'preset' => 'heropreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'off',
'stop_slider' => 'on',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'off',
'background_dotted_overlay' => 'none',
'background_color' => 'transparent',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'off',
'navigation_arrow_style' => 'navbar',
'arrows_always_on' => 'false',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'off',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'bottom',
'leftarrow_offset_hor' => '0',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'left',
'rightarrow_align_vert' => 'bottom',
'rightarrow_offset_hor' => '40',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'on',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'vertical',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'right',
'bullets_align_vert' => 'center',
'bullets_offset_hor' => '30',
'bullets_offset_vert' => '0',
'enable_thumbnails' => 'off',
'thumbnails_padding' => '5',
'span_thumbnails_wrapper' => 'off',
'thumbnails_wrapper_color' => 'transparent',
'thumbnails_wrapper_opacity' => '100',
'thumbnails_style' => 'navbar',
'thumb_amount' => '5',
'thumbnails_space' => '5',
'thumbnail_direction' => 'vertical',
'thumb_width' => '50',
'thumb_height' => '50',
'thumb_width_min' => '50',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'on',
'thumbs_under_hidden' => '778',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'inner',
'thumbnails_align_hor' => 'right',
'thumbnails_align_vert' => 'center',
'thumbnails_offset_hor' => '20',
'thumbnails_offset_vert' => '0',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'off',
'carousel_space' => '0',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '3',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'off',
'carousel_rotation' => 'off',
'carousel_varyrotate' => 'off',
'carousel_maxrotation' => '0',
'carousel_scale' => 'off',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '50',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'fullwidth',
'width' => '1400',
'width_notebook' => '1240',
'width_tablet' => '778',
'width_mobile' => '480',
'height' => '600',
'height_notebook' => '500',
'height_tablet' => '400',
'height_mobile' => '400',
'enable_custom_size_notebook' => 'on',
'enable_custom_size_tablet' => 'on',
'enable_custom_size_iphone' => 'on',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_javascript' => '',
'custom_css' => '',
),
);
$presets[] = array (
'settings' =>
array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Regular-Full-Screen', 'preset' => 'heropreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'off',
'stop_slider' => 'on',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'off',
'background_dotted_overlay' => 'none',
'background_color' => 'transparent',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'off',
'navigation_arrow_style' => 'navbar',
'arrows_always_on' => 'false',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'off',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'bottom',
'leftarrow_offset_hor' => '0',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'left',
'rightarrow_align_vert' => 'bottom',
'rightarrow_offset_hor' => '40',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'on',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'vertical',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'right',
'bullets_align_vert' => 'center',
'bullets_offset_hor' => '30',
'bullets_offset_vert' => '0',
'enable_thumbnails' => 'off',
'thumbnails_padding' => '5',
'span_thumbnails_wrapper' => 'off',
'thumbnails_wrapper_color' => 'transparent',
'thumbnails_wrapper_opacity' => '100',
'thumbnails_style' => 'navbar',
'thumb_amount' => '5',
'thumbnails_space' => '5',
'thumbnail_direction' => 'vertical',
'thumb_width' => '50',
'thumb_height' => '50',
'thumb_width_min' => '50',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'on',
'thumbs_under_hidden' => '778',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'inner',
'thumbnails_align_hor' => 'right',
'thumbnails_align_vert' => 'center',
'thumbnails_offset_hor' => '20',
'thumbnails_offset_vert' => '0',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'off',
'carousel_space' => '0',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '3',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'off',
'carousel_rotation' => 'off',
'carousel_varyrotate' => 'off',
'carousel_maxrotation' => '0',
'carousel_scale' => 'off',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '50',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'fullscreen',
'width' => '1240',
'width_notebook' => '1024',
'width_tablet' => '778',
'width_mobile' => '480',
'height' => '868',
'height_notebook' => '768',
'height_tablet' => '960',
'height_mobile' => '720',
'enable_custom_size_notebook' => 'on',
'enable_custom_size_tablet' => 'on',
'enable_custom_size_iphone' => 'on',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_javascript' => '',
'custom_css' => '',
),
);
$presets[] = array (
'settings' =>
array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Regular-Full-Width', 'preset' => 'heropreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'off',
'stop_slider' => 'on',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'off',
'background_dotted_overlay' => 'none',
'background_color' => 'transparent',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'off',
'navigation_arrow_style' => 'navbar',
'arrows_always_on' => 'false',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'off',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'bottom',
'leftarrow_offset_hor' => '0',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'left',
'rightarrow_align_vert' => 'bottom',
'rightarrow_offset_hor' => '40',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'on',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'vertical',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'right',
'bullets_align_vert' => 'center',
'bullets_offset_hor' => '30',
'bullets_offset_vert' => '0',
'enable_thumbnails' => 'off',
'thumbnails_padding' => '5',
'span_thumbnails_wrapper' => 'off',
'thumbnails_wrapper_color' => 'transparent',
'thumbnails_wrapper_opacity' => '100',
'thumbnails_style' => 'navbar',
'thumb_amount' => '5',
'thumbnails_space' => '5',
'thumbnail_direction' => 'vertical',
'thumb_width' => '50',
'thumb_height' => '50',
'thumb_width_min' => '50',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'on',
'thumbs_under_hidden' => '778',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'inner',
'thumbnails_align_hor' => 'right',
'thumbnails_align_vert' => 'center',
'thumbnails_offset_hor' => '20',
'thumbnails_offset_vert' => '0',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'off',
'carousel_space' => '0',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '3',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'off',
'carousel_rotation' => 'off',
'carousel_varyrotate' => 'off',
'carousel_maxrotation' => '0',
'carousel_scale' => 'off',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '50',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'fullwidth',
'width' => '1240',
'width_notebook' => '1024',
'width_tablet' => '778',
'width_mobile' => '480',
'height' => '600',
'height_notebook' => '500',
'height_tablet' => '400',
'height_mobile' => '300',
'enable_custom_size_notebook' => 'on',
'enable_custom_size_tablet' => 'on',
'enable_custom_size_iphone' => 'on',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_javascript' => '',
'custom_css' => '',
),
);
$presets[] = array (
'settings' =>
array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/cover_carousel_thumbs.png', 'name' => 'Cover-Flow-Thumbs', 'preset' => 'carouselpreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'off',
'stop_slider' => 'on',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'on',
'background_dotted_overlay' => 'none',
'background_color' => 'transparent',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'on',
'navigation_arrow_style' => 'navbar-old',
'arrows_always_on' => 'false',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'off',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'center',
'leftarrow_offset_hor' => '30',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'right',
'rightarrow_align_vert' => 'center',
'rightarrow_offset_hor' => '30',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'off',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'horizontal',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'center',
'bullets_align_vert' => 'bottom',
'bullets_offset_hor' => '0',
'bullets_offset_vert' => '30',
'enable_thumbnails' => 'on',
'thumbnails_padding' => '20',
'span_thumbnails_wrapper' => 'on',
'thumbnails_wrapper_color' => '#000000',
'thumbnails_wrapper_opacity' => '15',
'thumbnails_style' => 'navbar',
'thumb_amount' => '9',
'thumbnails_space' => '10',
'thumbnail_direction' => 'horizontal',
'thumb_width' => '60',
'thumb_height' => '60',
'thumb_width_min' => '60',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'off',
'thumbs_under_hidden' => '0',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'outer-bottom',
'thumbnails_align_hor' => 'center',
'thumbnails_align_vert' => 'bottom',
'thumbnails_offset_hor' => '0',
'thumbnails_offset_vert' => '0',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'off',
'carousel_space' => '-150',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '5',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'on',
'carousel_rotation' => 'on',
'carousel_varyrotate' => 'on',
'carousel_maxrotation' => '65',
'carousel_scale' => 'on',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '55',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'fullwidth',
'width' => '600',
'width_notebook' => '600',
'width_tablet' => '600',
'width_mobile' => '600',
'height' => '600',
'height_notebook' => '600',
'height_tablet' => '600',
'height_mobile' => '600',
'enable_custom_size_notebook' => 'off',
'enable_custom_size_tablet' => 'off',
'enable_custom_size_iphone' => 'off',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_css' => '',
'custom_javascript' => '',
),
);
$presets[] = array (
'settings' =>
array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/cover_carousel_endless.png', 'name' => 'Cover-Flow-Infinite', 'preset' => 'carouselpreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'off',
'stop_slider' => 'on',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'on',
'background_dotted_overlay' => 'none',
'background_color' => 'transparent',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'on',
'navigation_arrow_style' => 'round',
'arrows_always_on' => 'false',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'off',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'center',
'leftarrow_offset_hor' => '30',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'right',
'rightarrow_align_vert' => 'center',
'rightarrow_offset_hor' => '30',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'off',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'horizontal',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'center',
'bullets_align_vert' => 'bottom',
'bullets_offset_hor' => '0',
'bullets_offset_vert' => '30',
'enable_thumbnails' => 'off',
'thumbnails_padding' => '20',
'span_thumbnails_wrapper' => 'on',
'thumbnails_wrapper_color' => '#000000',
'thumbnails_wrapper_opacity' => '15',
'thumbnails_style' => 'navbar',
'thumb_amount' => '9',
'thumbnails_space' => '10',
'thumbnail_direction' => 'horizontal',
'thumb_width' => '60',
'thumb_height' => '60',
'thumb_width_min' => '60',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'off',
'thumbs_under_hidden' => '0',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'outer-bottom',
'thumbnails_align_hor' => 'center',
'thumbnails_align_vert' => 'bottom',
'thumbnails_offset_hor' => '0',
'thumbnails_offset_vert' => '0',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'on',
'carousel_space' => '-150',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '3',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'on',
'carousel_rotation' => 'on',
'carousel_varyrotate' => 'on',
'carousel_maxrotation' => '65',
'carousel_scale' => 'on',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '55',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'fullwidth',
'width' => '600',
'width_notebook' => '600',
'width_tablet' => '600',
'width_mobile' => '600',
'height' => '600',
'height_notebook' => '600',
'height_tablet' => '600',
'height_mobile' => '600',
'enable_custom_size_notebook' => 'off',
'enable_custom_size_tablet' => 'off',
'enable_custom_size_iphone' => 'off',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_css' => '',
'custom_javascript' => '',
),
);
$presets[] = array (
'settings' =>
array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/flat_carousel_thumbs.png', 'name' => 'Flat-Infinite-Thumbs', 'preset' => 'carouselpreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'off',
'stop_slider' => 'on',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'on',
'background_dotted_overlay' => 'none',
'background_color' => '#111111',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'on',
'navigation_arrow_style' => 'navbar',
'arrows_always_on' => 'false',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'off',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'center',
'leftarrow_offset_hor' => '30',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'right',
'rightarrow_align_vert' => 'center',
'rightarrow_offset_hor' => '30',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'off',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'horizontal',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'center',
'bullets_align_vert' => 'bottom',
'bullets_offset_hor' => '0',
'bullets_offset_vert' => '30',
'enable_thumbnails' => 'on',
'thumbnails_padding' => '20',
'span_thumbnails_wrapper' => 'on',
'thumbnails_wrapper_color' => '#222222',
'thumbnails_wrapper_opacity' => '100',
'thumbnails_style' => 'navbar',
'thumb_amount' => '9',
'thumbnails_space' => '10',
'thumbnail_direction' => 'horizontal',
'thumb_width' => '60',
'thumb_height' => '60',
'thumb_width_min' => '60',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'off',
'thumbs_under_hidden' => '0',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'outer-bottom',
'thumbnails_align_hor' => 'center',
'thumbnails_align_vert' => 'bottom',
'thumbnails_offset_hor' => '0',
'thumbnails_offset_vert' => '0',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'on',
'carousel_space' => '0',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '3',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'on',
'carousel_rotation' => 'off',
'carousel_varyrotate' => 'on',
'carousel_maxrotation' => '65',
'carousel_scale' => 'off',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '55',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'fullwidth',
'width' => '720',
'width_notebook' => '720',
'width_tablet' => '720',
'width_mobile' => '720',
'height' => '405',
'height_notebook' => '405',
'height_tablet' => '405',
'height_mobile' => '405',
'enable_custom_size_notebook' => 'off',
'enable_custom_size_tablet' => 'off',
'enable_custom_size_iphone' => 'off',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_css' => '',
'custom_javascript' => '',
),
);
$presets[] = array (
'settings' =>
array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/flat_carousel.png', 'name' => 'Flat-Infinite', 'preset' => 'carouselpreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'off',
'stop_slider' => 'on',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'on',
'background_dotted_overlay' => 'none',
'background_color' => '#111111',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'on',
'navigation_arrow_style' => 'uranus',
'arrows_always_on' => 'false',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'off',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'center',
'leftarrow_offset_hor' => '30',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'right',
'rightarrow_align_vert' => 'center',
'rightarrow_offset_hor' => '30',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'off',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'horizontal',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'center',
'bullets_align_vert' => 'bottom',
'bullets_offset_hor' => '0',
'bullets_offset_vert' => '30',
'enable_thumbnails' => 'off',
'thumbnails_padding' => '20',
'span_thumbnails_wrapper' => 'on',
'thumbnails_wrapper_color' => '#222222',
'thumbnails_wrapper_opacity' => '100',
'thumbnails_style' => 'navbar',
'thumb_amount' => '9',
'thumbnails_space' => '10',
'thumbnail_direction' => 'horizontal',
'thumb_width' => '60',
'thumb_height' => '60',
'thumb_width_min' => '60',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'off',
'thumbs_under_hidden' => '0',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'outer-bottom',
'thumbnails_align_hor' => 'center',
'thumbnails_align_vert' => 'bottom',
'thumbnails_offset_hor' => '0',
'thumbnails_offset_vert' => '0',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'on',
'carousel_space' => '0',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '3',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'on',
'carousel_rotation' => 'off',
'carousel_varyrotate' => 'on',
'carousel_maxrotation' => '65',
'carousel_scale' => 'off',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '55',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'fullwidth',
'width' => '720',
'width_notebook' => '720',
'width_tablet' => '720',
'width_mobile' => '720',
'height' => '405',
'height_notebook' => '405',
'height_tablet' => '405',
'height_mobile' => '405',
'enable_custom_size_notebook' => 'off',
'enable_custom_size_tablet' => 'off',
'enable_custom_size_iphone' => 'off',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_css' => '',
'custom_javascript' => '',
),
);
$presets[] = array (
'settings' =>
array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/flat_carousel_thumbs_left.png', 'name' => 'Flat-Thumbs-Left', 'preset' => 'carouselpreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'off',
'stop_slider' => 'on',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'on',
'background_dotted_overlay' => 'none',
'background_color' => '#111111',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'on',
'navigation_arrow_style' => 'uranus',
'arrows_always_on' => 'false',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'off',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'center',
'leftarrow_offset_hor' => '30',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'right',
'rightarrow_align_vert' => 'center',
'rightarrow_offset_hor' => '30',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'off',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'horizontal',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'center',
'bullets_align_vert' => 'bottom',
'bullets_offset_hor' => '0',
'bullets_offset_vert' => '30',
'enable_thumbnails' => 'on',
'thumbnails_padding' => '20',
'span_thumbnails_wrapper' => 'on',
'thumbnails_wrapper_color' => '#222222',
'thumbnails_wrapper_opacity' => '100',
'thumbnails_style' => 'navbar',
'thumb_amount' => '9',
'thumbnails_space' => '10',
'thumbnail_direction' => 'vertical',
'thumb_width' => '60',
'thumb_height' => '60',
'thumb_width_min' => '60',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'off',
'thumbs_under_hidden' => '0',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'outer-left',
'thumbnails_align_hor' => 'left',
'thumbnails_align_vert' => 'top',
'thumbnails_offset_hor' => '0',
'thumbnails_offset_vert' => '0',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'on',
'carousel_space' => '0',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '3',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'on',
'carousel_rotation' => 'off',
'carousel_varyrotate' => 'on',
'carousel_maxrotation' => '65',
'carousel_scale' => 'off',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '55',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'fullwidth',
'width' => '720',
'width_notebook' => '720',
'width_tablet' => '720',
'width_mobile' => '720',
'height' => '405',
'height_notebook' => '405',
'height_tablet' => '405',
'height_mobile' => '405',
'enable_custom_size_notebook' => 'off',
'enable_custom_size_tablet' => 'off',
'enable_custom_size_iphone' => 'off',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_css' => '',
'custom_javascript' => '',
),
);
$presets[] = array (
'settings' =>
array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/carousel_thumbs_right_fullscreen.png', 'name' => 'Full-Screen-Thumbs-Right', 'preset' => 'carouselpreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'stop_on_hover' => 'off',
'stop_slider' => 'on',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'on',
'background_dotted_overlay' => 'none',
'background_color' => '#111111',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'on',
'navigation_arrow_style' => 'uranus',
'arrows_always_on' => 'false',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'off',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'center',
'leftarrow_offset_hor' => '30',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'right',
'rightarrow_align_vert' => 'center',
'rightarrow_offset_hor' => '30',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'off',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'horizontal',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'center',
'bullets_align_vert' => 'bottom',
'bullets_offset_hor' => '0',
'bullets_offset_vert' => '30',
'enable_thumbnails' => 'on',
'thumbnails_padding' => '20',
'span_thumbnails_wrapper' => 'on',
'thumbnails_wrapper_color' => '#222222',
'thumbnails_wrapper_opacity' => '100',
'thumbnails_style' => 'navbar',
'thumb_amount' => '9',
'thumbnails_space' => '10',
'thumbnail_direction' => 'vertical',
'thumb_width' => '60',
'thumb_height' => '60',
'thumb_width_min' => '60',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'off',
'thumbs_under_hidden' => '0',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'outer-right',
'thumbnails_align_hor' => 'right',
'thumbnails_align_vert' => 'top',
'thumbnails_offset_hor' => '0',
'thumbnails_offset_vert' => '0',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'on',
'carousel_space' => '0',
'carousel_borderr' => '0',
'carousel_borderr_unit' => 'px',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '3',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'on',
'carousel_rotation' => 'off',
'carousel_varyrotate' => 'on',
'carousel_maxrotation' => '65',
'carousel_scale' => 'off',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '55',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'fullscreen',
'width' => '900',
'width_notebook' => '720',
'width_tablet' => '720',
'width_mobile' => '720',
'height' => '720',
'height_notebook' => '405',
'height_tablet' => '405',
'height_mobile' => '405',
'enable_custom_size_notebook' => 'off',
'enable_custom_size_tablet' => 'off',
'enable_custom_size_iphone' => 'off',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_css' => '',
'custom_javascript' => '',
),
);
$presets[] = array (
'settings' =>
array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/cover_carousel_thumbs.png', 'name' => 'Cover-Flow-Full-Screen', 'preset' => 'carouselpreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'first_transition_active' => 'on',
'first_transition_type' => 'fade',
'first_transition_duration' => '1500',
'first_transition_slot_amount' => '7',
'stop_on_hover' => 'off',
'stop_slider' => 'on',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'on',
'background_dotted_overlay' => 'none',
'background_color' => 'transparent',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'on',
'navigation_arrow_style' => 'navbar-old',
'arrows_always_on' => 'false',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'off',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'center',
'leftarrow_offset_hor' => '30',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'right',
'rightarrow_align_vert' => 'center',
'rightarrow_offset_hor' => '30',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'off',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'horizontal',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'center',
'bullets_align_vert' => 'bottom',
'bullets_offset_hor' => '0',
'bullets_offset_vert' => '30',
'enable_thumbnails' => 'on',
'thumbnails_padding' => '20',
'span_thumbnails_wrapper' => 'on',
'thumbnails_wrapper_color' => '#000000',
'thumbnails_wrapper_opacity' => '15',
'thumbnails_style' => 'navbar',
'thumb_amount' => '9',
'thumbnails_space' => '10',
'thumbnail_direction' => 'horizontal',
'thumb_width' => '60',
'thumb_height' => '60',
'thumb_width_min' => '60',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'off',
'thumbs_under_hidden' => '0',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'inner',
'thumbnails_align_hor' => 'center',
'thumbnails_align_vert' => 'bottom',
'thumbnails_offset_hor' => '0',
'thumbnails_offset_vert' => '0',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'on',
'carousel_space' => '-150',
'carousel_borderr' => '0',
'carousel_borderr_unit' => '%',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '5',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'on',
'carousel_rotation' => 'on',
'carousel_varyrotate' => 'on',
'carousel_maxrotation' => '65',
'carousel_scale' => 'on',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '55',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'fullscreen',
'width' => '800',
'width_notebook' => '600',
'width_tablet' => '600',
'width_mobile' => '600',
'height' => '800',
'height_notebook' => '600',
'height_tablet' => '600',
'height_mobile' => '600',
'enable_custom_size_notebook' => 'off',
'enable_custom_size_tablet' => 'off',
'enable_custom_size_iphone' => 'off',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_css' => '',
'custom_javascript' => '',
),
);
$presets[] = array (
'settings' =>
array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/carousel_full_rounded.png', 'name' => 'Cover-Flow-Rounded', 'preset' => 'carouselpreset' ),
'values' =>
array (
'next_slide_on_window_focus' => 'off',
'delay' => '9000',
'start_js_after_delay' => '0',
'image_source_type' => 'full',
0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
//data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
//data.layertype - Layer Type (image,video,html)
//data.layersettings - Default Settings for Layer
//data.layer - Layer as jQuery Object
});',
'start_with_slide' => '1',
'first_transition_active' => 'on',
'first_transition_type' => 'fade',
'first_transition_duration' => '1500',
'first_transition_slot_amount' => '7',
'stop_on_hover' => 'off',
'stop_slider' => 'on',
'stop_after_loops' => '0',
'stop_at_slide' => '1',
'shuffle' => 'off',
'viewport_start' => 'wait',
'viewport_area' => '80',
'enable_progressbar' => 'on',
'background_dotted_overlay' => 'none',
'background_color' => 'transparent',
'padding' => '0',
'show_background_image' => 'off',
'background_image' => '',
'bg_fit' => 'cover',
'bg_repeat' => 'no-repeat',
'bg_position' => 'center center',
'position' => 'center',
'use_spinner' => '-1',
'spinner_color' => '#FFFFFF',
'enable_arrows' => 'on',
'navigation_arrow_style' => 'round',
'arrows_always_on' => 'false',
'hide_arrows' => '200',
'hide_arrows_mobile' => '1200',
'hide_arrows_on_mobile' => 'off',
'arrows_under_hidden' => '600',
'hide_arrows_over' => 'off',
'arrows_over_hidden' => '0',
'leftarrow_align_hor' => 'left',
'leftarrow_align_vert' => 'center',
'leftarrow_offset_hor' => '30',
'leftarrow_offset_vert' => '0',
'rightarrow_align_hor' => 'right',
'rightarrow_align_vert' => 'center',
'rightarrow_offset_hor' => '30',
'rightarrow_offset_vert' => '0',
'enable_bullets' => 'off',
'navigation_bullets_style' => 'round-old',
'bullets_space' => '5',
'bullets_direction' => 'horizontal',
'bullets_always_on' => 'true',
'hide_bullets' => '200',
'hide_bullets_mobile' => '1200',
'hide_bullets_on_mobile' => 'on',
'bullets_under_hidden' => '600',
'hide_bullets_over' => 'off',
'bullets_over_hidden' => '0',
'bullets_align_hor' => 'center',
'bullets_align_vert' => 'bottom',
'bullets_offset_hor' => '0',
'bullets_offset_vert' => '30',
'enable_thumbnails' => 'on',
'thumbnails_padding' => '20',
'span_thumbnails_wrapper' => 'on',
'thumbnails_wrapper_color' => '#000000',
'thumbnails_wrapper_opacity' => '0',
'thumbnails_style' => 'preview1',
'thumb_amount' => '9',
'thumbnails_space' => '10',
'thumbnail_direction' => 'horizontal',
'thumb_width' => '60',
'thumb_height' => '60',
'thumb_width_min' => '60',
'thumbs_always_on' => 'false',
'hide_thumbs' => '200',
'hide_thumbs_mobile' => '1200',
'hide_thumbs_on_mobile' => 'off',
'thumbs_under_hidden' => '0',
'hide_thumbs_over' => 'off',
'thumbs_over_hidden' => '0',
'thumbnails_inner_outer' => 'inner',
'thumbnails_align_hor' => 'center',
'thumbnails_align_vert' => 'bottom',
'thumbnails_offset_hor' => '0',
'thumbnails_offset_vert' => '0',
'enable_tabs' => 'off',
'tabs_padding' => '5',
'span_tabs_wrapper' => 'off',
'tabs_wrapper_color' => 'transparent',
'tabs_wrapper_opacity' => '5',
'tabs_style' => '',
'tabs_amount' => '5',
'tabs_space' => '5',
'tabs_direction' => 'horizontal',
'tabs_width' => '100',
'tabs_height' => '50',
'tabs_width_min' => '100',
'tabs_always_on' => 'false',
'hide_tabs' => '200',
'hide_tabs_mobile' => '1200',
'hide_tabs_on_mobile' => 'off',
'tabs_under_hidden' => '0',
'hide_tabs_over' => 'off',
'tabs_over_hidden' => '0',
'tabs_inner_outer' => 'inner',
'tabs_align_hor' => 'center',
'tabs_align_vert' => 'bottom',
'tabs_offset_hor' => '0',
'tabs_offset_vert' => '20',
'touchenabled' => 'on',
'drag_block_vertical' => 'off',
'swipe_velocity' => '75',
'swipe_min_touches' => '50',
'swipe_direction' => 'horizontal',
'keyboard_navigation' => 'off',
'keyboard_direction' => 'horizontal',
'mousescroll_navigation' => 'off',
'carousel_infinity' => 'on',
'carousel_space' => '-150',
'carousel_borderr' => '50',
'carousel_borderr_unit' => '%',
'carousel_padding_top' => '0',
'carousel_padding_bottom' => '0',
'carousel_maxitems' => '5',
'carousel_stretch' => 'off',
'carousel_fadeout' => 'on',
'carousel_varyfade' => 'on',
'carousel_rotation' => 'off',
'carousel_varyrotate' => 'on',
'carousel_maxrotation' => '65',
'carousel_scale' => 'on',
'carousel_varyscale' => 'off',
'carousel_scaledown' => '55',
'carousel_hposition' => 'center',
'carousel_vposition' => 'center',
'use_parallax' => 'on',
'disable_parallax_mobile' => 'off',
'parallax_type' => 'mouse',
'parallax_origo' => 'slidercenter',
'parallax_speed' => '2000',
'parallax_level_1' => '2',
'parallax_level_2' => '3',
'parallax_level_3' => '4',
'parallax_level_4' => '5',
'parallax_level_5' => '6',
'parallax_level_6' => '7',
'parallax_level_7' => '12',
'parallax_level_8' => '16',
'parallax_level_9' => '10',
'parallax_level_10' => '50',
'lazy_load_type' => 'smart',
'seo_optimization' => 'none',
'simplify_ie8_ios4' => 'off',
'show_alternative_type' => 'off',
'show_alternate_image' => '',
'jquery_noconflict' => 'off',
'js_to_body' => 'false',
'output_type' => 'none',
'jquery_debugmode' => 'off',
'slider_type' => 'fullwidth',
'width' => '800',
'width_notebook' => '600',
'width_tablet' => '600',
'width_mobile' => '600',
'height' => '800',
'height_notebook' => '600',
'height_tablet' => '600',
'height_mobile' => '600',
'enable_custom_size_notebook' => 'off',
'enable_custom_size_tablet' => 'off',
'enable_custom_size_iphone' => 'off',
'main_overflow_hidden' => 'off',
'auto_height' => 'off',
'min_height' => '',
'custom_css' => '',
'custom_javascript' => '',
),
);
//add the presets made from customers
//$customer_presets = get_option('revslider_presets', array());
$customer_presets = array();
$presets = array_merge($presets, $customer_presets);
$presets = $presets;
foreach($presets as $key => $preset){
if(intval($preset['settings']['image']) > 0){
$img = wp_get_attachment_image_src( $preset['settings']['image'], 'medium');
$presets[$key]['settings']['image'] = ($img !== false) ? $img['0'] : '';
}
}
return $presets;
}
/**
*
* @since: 5.0
**/
public static function add_preset_setting($data){
if(!isset($data['settings']) || !isset($data['values'])) return __('Missing values to add preset', 'revslider');
$customer_presets = get_option('revslider_presets', array());
$data['settings']['custom'] = true;
$customer_presets[] = array(
'settings' => $data['settings'],
'values' => $data['values']
);
RevSliderFunctionsWP::update_option('revslider_presets', $customer_presets, 'off');
return true;
}
/**
* @since: 5.0
**/
public static function remove_preset_setting($data){
if(!isset($data['name'])) return __('Missing values to remove preset', 'revslider');
$customer_presets = get_option('revslider_presets', array());
if(!empty($customer_presets)){
foreach($customer_presets as $key => $preset){
if($preset['settings']['name'] == $data['name']){
unset($customer_presets[$key]);
break;
}
}
}
RevSliderFunctionsWP::update_option('revslider_presets', $customer_presets, 'off');
return true;
}
/**
* @since: 5.0
**/
public static function update_preset_setting($data){
if(!isset($data['name'])) return __('Missing values to update preset', 'revslider');
$customer_presets = get_option('revslider_presets', array());
if(!empty($customer_presets)){
foreach($customer_presets as $key => $preset){
if($preset['settings']['name'] == $data['name']){
$customer_presets[$key]['values'] = $data['values'];
break;
}
}
}
RevSliderFunctionsWP::update_option('revslider_presets', $customer_presets, 'off');
return true;
}
/**
* @since: 5.3.0
* create a page with revslider shortcodes included
**/
public static function create_slider_page($added){
$new_page_id = 0;
if(!is_array($added)) return apply_filters('revslider_create_slider_page', $new_page_id, $added);
$content = '';
$page_id = get_option('rs_import_page_id', 1);
//$title = '';
//get alias of all new Sliders that got created and add them as a shortcode onto a page
foreach($added as $sid){
$slider = new RevSlider();
$slider->initByID($sid);
$alias = $slider->getAlias();
/*if($title == ''){
$title = $slider->getTitle();
}*/
if($alias !== ''){
$content .= '[rev_slider alias="'.$alias.'"][/rev_slider]'; //this way we will reorder as last comes first
$shortcode = '[rev_slider alias="'.$alias.'"]';
}
}
if($content !== ''){
// $new_page_id = wp_insert_post(
// array(
// 'post_title' => wp_strip_all_tags( 'RevSlider Page '.$page_id ), //$title
// 'post_content' => $content,
// 'post_type' => 'page',
// 'post_status' => 'draft',
// 'page_template' => '../public/views/revslider-page-template.php'
// )
// );
//
// if(is_wp_error($new_page_id)) $new_page_id = 0; //fallback to 0
//
// $page_id++;
// update_option('rs_import_page_id', $page_id);
$table = JTable::getInstance('Content', 'JTable', array());
$data = array(
'catid' => 1,
'title' => $shortcode,
'introtext' => 'Demo revslider',
'fulltext' => $shortcode,
'state' => 1,
);
// Bind data
if (!$table->bind($data))
{
return false;
}
// Check the data.
if (!$table->check())
{
return false;
}
// Store the data.
if (!$table->store())
{
return false;
}
}
//return apply_filters('revslider_create_slider_page', $new_page_id, $added);
}
/**
* @since: 5.3.1
* get cache plugins
**/
public function get_installed_cache_plugins(){
//get all plugins
$plugins = get_plugins();
//arrays for found cache related plugins
$known_cache_plugins = array();
$unknown_cache_plugins = array();
//run through all plugins
foreach ($plugins as $plugin_key => $plugin_values) {
switch($plugin_key){
//check if W3TC or WP Super Cache or WP Rocket
//add to known plugins
case "wp-rocket/wp-rocket.php":
$known_cache_plugins[$plugin_values['Name']] = "https://www.themepunch.com/faq/updating-make-sure-clear-caches/#wprocket";
break;
case "wp-super-cache/wp-cache.php":
$known_cache_plugins[$plugin_values['Name']] = "https://www.themepunch.com/faq/updating-make-sure-clear-caches/#wpsc";
break;
case "w3-total-cache/w3-total-cache.php":
$known_cache_plugins[$plugin_values['Name']] = "https://www.themepunch.com/faq/updating-make-sure-clear-caches/#w3tc";
break;
//check if cache in slug
default:
if(strpos($plugin_key,"cache")){
//add to unknown plugins
$unknown_cache_plugins[$plugin_values['Name']] = $plugin_values['PluginURI'];
}
break;
}
}
$all = array_merge($known_cache_plugins, $unknown_cache_plugins);
return apply_filters('revslider_get_installed_cache_plugins', $all);
}
/**
* @since: 5.3.1
* show failed import HTML
**/
public static function import_failed_message($message, $link = false){
echo '';
echo '';
echo 'Error: '.$message.'';
if($link !== false){
echo 'Go Back';
}
echo '';
echo '';
}
}
/**
* old classname extends new one (old classnames will be obsolete soon)
* @since: 5.0
**/
class RevOperations extends RevSliderOperations {}
?>