} } $slide->setLayersRaw($layers); $slide->saveLayers(); } } } } } } /** * add settings to layer depending on how * @since 5.0 */ public static function add_general_settings($sliders = false){ $sr = new RevSlider(); $sl = new RevSliderSlide(); //$operations = new RevSliderOperations(); if($sliders === false){ //do it on all Sliders $sliders = $sr->getArrSliders(false); }else{ $sliders = array($sliders); } //$styles = $operations->getCaptionsContentArray(); if(!empty($sliders) && is_array($sliders)){ $fonts = get_option('tp-google-fonts', array()); foreach($sliders as $slider){ $settings = $slider->getSettings(); $bg_freeze = $slider->getParam('parallax_bg_freeze', 'off'); $google_fonts = $slider->getParam('google_font', array()); if(!isset($settings['version']) || version_compare($settings['version'], 5.0, '<')){ if(empty($google_fonts) && !empty($fonts)){ //add all punchfonts to the Slider foreach($fonts as $font){ $google_fonts[] = $font['url']; } $slider->updateParam(array('google_font' => $google_fonts)); } $settings['version'] = 5.0; $slider->updateSetting(array('version' => 5.0)); } if($bg_freeze == 'on'){ //deprecated here, moved to slides so remove check here and add on to slides $slider->updateParam(array('parallax_bg_freeze' => 'off')); } $slides = $slider->getSlides(); $staticID = $sl->getStaticSlideID($slider->getID()); if($staticID !== false){ $msl = new RevSliderSlide(); if(strpos($staticID, 'static_') === false){ $staticID = 'static_'.$slider->getID(); } $msl->initByID($staticID); if($msl->getID() !== ''){ $slides = array_merge($slides, array($msl)); } } if(!empty($slides) && is_array($slides)){ foreach($slides as $slide){ if($bg_freeze == 'on'){ //set bg_freeze to on for slide settings $slide->setParam('slide_parallax_level', '1'); } $slide->saveParams(); } } } } } /** * remove static slide from Sliders if the setting was set to off * @since 5.0 */ public static function remove_static_slides($sliders = false){ $sr = new RevSlider(); $sl = new RevSliderSlide(); //$operations = new RevSliderOperations(); if($sliders === false){ //do it on all Sliders $sliders = $sr->getArrSliders(false); }else{ $sliders = array($sliders); } //$styles = $operations->getCaptionsContentArray(); if(!empty($sliders) && is_array($sliders)){ foreach($sliders as $slider){ $settings = $slider->getSettings(); $enable_static_layers = $slider->getParam('enable_static_layers', 'off'); if($enable_static_layers == 'off'){ $staticID = $sl->getStaticSlideID($slider->getID()); if($staticID !== false){ $slider->deleteStaticSlide(); } } } } } /** * change general settings of all sliders to 5.0.7 * @since 5.0.7 */ public static function change_general_settings_5_0_7($sliders = false){ //handle the new option for shuffle in combination with first alternative slide $sr = new RevSlider(); $sl = new RevSliderSlide(); //$operations = new RevSliderOperations(); if($sliders === false){ //do it on all Sliders $sliders = $sr->getArrSliders(false); }else{ $sliders = array($sliders); } if(!empty($sliders) && is_array($sliders)){ foreach($sliders as $slider){ $settings = $slider->getSettings(); if(!isset($settings['version']) || version_compare($settings['version'], '5.0.7', '<')){ $start_with_slide = $slider->getParam('start_with_slide', '1'); if($start_with_slide !== '1'){ $slider->updateParam(array('start_with_slide_enable' => 'on')); } $settings['version'] = '5.0.7'; $slider->updateSetting(array('version' => '5.0.7')); } } } } } /** * old classname extends new one (old classnames will be obsolete soon) * @since: 5.0 **/ class UnitePluginUpdateRev extends RevSliderPluginUpdate {} ?>=> '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()); $presets = array_merge($presets, $customer_presets); $presets = apply_filters('revslider_slider_presets', $presets); foreach($presets as $key => $preset){ if(intval($preset['settings']['image']) > 0){ $img = wp_get_attachment_image_src(esc_attr($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_TEXTDOMAIN); $customer_presets = get_option('revslider_presets', array()); $data['settings']['custom'] = true; $customer_presets[] = array( 'settings' => $data['settings'], 'values' => $data['values'] ); update_option('revslider_presets', $customer_presets); return true; } /** * @since: 5.0 **/ public static function remove_preset_setting($data){ if(!isset($data['name'])) return __('Missing values to remove preset', REVSLIDER_TEXTDOMAIN); $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; } } } update_option('revslider_presets', $customer_presets); return true; } /** * @since: 5.0 **/ public static function update_preset_setting($data){ if(!isset($data['name'])) return __('Missing values to update preset', REVSLIDER_TEXTDOMAIN); $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; } } } update_option('revslider_presets', $customer_presets); return true; } } /** * old classname extends new one (old classnames will be obsolete soon) * @since: 5.0 **/ class RevOperations extends RevSliderOperations {} ?> continue; //filter by template type if($filterType == self::SLIDER_TYPE_TEMPLATE && $isFromPosts == false) //$isTemplate == "false") continue; $sliderTitle = $slider->getTitle(); $arrSlides = $slider->getArrSlidesFromGalleryShort(); foreach($arrSlides as $slideID=>$slideName){ $output[$slideID] = $sliderName.", ".$slideName; } } return($output); } /** * * get max order */ public function getMaxOrder(){ $this->validateInited(); $maxOrder = 0; $arrSlideRecords = $this->db->fetch(RevSliderGlobals::$table_slides,"slider_id=".$this->id,"slide_order desc","","limit 1"); if(empty($arrSlideRecords)) return($maxOrder); $maxOrder = $arrSlideRecords[0]["slide_order"]; return($maxOrder); } /** * * get setting - start with slide */ public function getStartWithSlideSetting(){ $numSlides = $this->getNumSlides(); $startWithSlide = $this->getParam("start_with_slide","1"); if(is_numeric($startWithSlide)){ $startWithSlide = (int)$startWithSlide - 1; if($startWithSlide < 0) $startWithSlide = 0; if($startWithSlide >= $numSlides) $startWithSlide = 0; }else $startWithSlide = 0; return($startWithSlide); } /** * return if the slides source is from posts */ public function isSlidesFromPosts(){ $this->validateInited(); $sourceType = $this->getParam("source_type","gallery"); if($sourceType == "posts" || $sourceType == "specific_posts") return(true); return(false); } /** * return if the slides source is from stream */ public function isSlidesFromStream(){ $this->validateInited(); $sourceType = $this->getParam("source_type","gallery"); if($sourceType != "posts" && $sourceType != "specific_posts" && $sourceType != "gallery") return($sourceType); return(false); } /** * * get posts from categories (by the slider params). */ private function getPostsFromCategories($publishedOnly = false){ $this->validateInited(); $catIDs = $this->getParam("post_category"); $data = RevSliderFunctionsWP::getCatAndTaxData($catIDs); $taxonomies = $data["tax"]; $catIDs = $data["cats"]; $sortBy = $this->getParam("post_sortby",self::DEFAULT_POST_SORTBY); $sortDir = $this->getParam("posts_sort_direction",self::DEFAULT_POST_SORTDIR); $maxPosts = $this->getParam("max_slider_posts","30"); if(empty($maxPosts) || !is_numeric($maxPosts)) $maxPosts = -1; $postTypes = $this->getParam("post_types","any"); //set direction for custom order if($sortBy == RevSliderFunctionsWP::SORTBY_MENU_ORDER) $sortDir = RevSliderFunctionsWP::ORDER_DIRECTION_ASC; //Events integration $arrAddition = array(); if($publishedOnly == true) $arrAddition["post_status"] = RevSliderFunctionsWP::STATE_PUBLISHED; if(RevSliderEventsManager::isEventsExists()){ $filterType = $this->getParam("events_filter",RevSliderEventsManager::DEFAULT_FILTER); $arrAddition = RevSliderEventsManager::getWPQuery($filterType, $sortBy); } $slider_id = $this->getID(); $arrPosts = RevSliderFunctionsWP::getPostsByCategory($slider_id, $catIDs,$sortBy,$sortDir,$maxPosts,$postTypes,$taxonomies,$arrAddition); return($arrPosts); } /** * * get posts from specific posts list */ private function getPostsFromSpecificList(){ $strPosts = $this->getParam("posts_list",""); $strPosts = apply_filters('revslider_set_posts_list', $strPosts); $slider_id = $this->getID(); $arrPosts = RevSliderFunctionsWP::getPostsByIDs($strPosts, $slider_id); return($arrPosts); } /** * update sortby option */ public function updatePostsSortbyFromData($data){ $sliderID = RevSliderFunctions::getVal($data, "sliderID"); $sortBy = RevSliderFunctions::getVal($data, "sortby"); RevSliderFunctions::validateNotEmpty($sortBy,"sortby"); $this->initByID($sliderID); $arrUpdate = array(); $arrUpdate["post_sortby"] = $sortBy; $this->updateParam($arrUpdate); } /** * * replace image urls */ public function replaceImageUrlsFromData($data){ $sliderID = RevSliderFunctions::getVal($data, "sliderid"); $urlFrom = RevSliderFunctions::getVal($data, "url_from"); RevSliderFunctions::validateNotEmpty($urlFrom,"url from"); $urlTo = RevSliderFunctions::getVal($data, "url_to"); $this->initByID($sliderID); $arrSildes = $this->getSlides(); foreach($arrSildes as $slide){ $slide->replaceImageUrls($urlFrom, $urlTo); } } public function resetSlideSettings($data){ $sliderID = RevSliderFunctions::getVal($data, "sliderid"); $this->initByID($sliderID); $arrSildes = $this->getSlides(); foreach($arrSildes as $slide){ $slide->reset_slide_values($data); } } public static function clear_error_in_string($m){ return 's:'.strlen($m[2]).':"'.$m[2].'";'; } } /** * old classname extends new one (old classnames will be obsolete soon) * @since: 5.0 **/ class RevSlider extends RevSliderSlider {} ?> case "left": $containerStyle .= "float:left;"; break; case "right": $containerStyle .= "float:right;"; break; } if($this->slider->getParam('main_overflow_hidden','on') == 'on'){ $do_overflow = ' tp-overflow-hidden'; } } //add background color $backgroundColor = esc_attr(trim($this->slider->getParam('background_color'))); if(!empty($backgroundColor)) $containerStyle .= 'background-color:'.$backgroundColor.';'; //set padding $containerStyle .= 'padding:'.esc_attr($this->slider->getParam('padding','0')).'px;'; //set margin: if($sliderType != 'fullscreen'){ if($sliderPosition != 'center'){ $containerStyle .= 'margin-left:'.esc_attr($this->slider->getParam('margin_left', '0', RevSlider::FORCE_NUMERIC)).'px;'; $containerStyle .= 'margin-right:'.esc_attr($this->slider->getParam('margin_right', '0', RevSlider::FORCE_NUMERIC)).'px;'; } $containerStyle .= 'margin-top:'.esc_attr($this->slider->getParam('margin_top', '0', RevSlider::FORCE_NUMERIC)).'px;'; $containerStyle .= 'margin-bottom:'.esc_attr($this->slider->getParam('margin_bottom', '0', RevSlider::FORCE_NUMERIC)).'px;'; } //set height and width: $bannerStyle = 'display:none;'; //add background image (to banner style) $showBackgroundImage = $this->slider->getParam('show_background_image', 'off'); if($showBackgroundImage == 'true' || $showBackgroundImage == 'on'){ $backgroundImage = esc_attr($this->slider->getParam('background_image')); $backgroundFit = esc_attr($this->slider->getParam('bg_fit', $this->slider->getParam('def-background_fit', 'cover'))); $backgroundRepeat = esc_attr($this->slider->getParam('bg_repeat', $this->slider->getParam('def-bg_repeat', 'no-repeat'))); $backgroundPosition = esc_attr($this->slider->getParam('bg_position', $this->slider->getParam('def-bg_position', 'center center'))); if(!empty($backgroundImage)) $containerStyle .= "background-image:url(".$backgroundImage.");background-repeat:".$backgroundRepeat.";background-size:".$backgroundFit.";background-position:".$backgroundPosition.";"; } //set wrapper and slider class: $sliderWrapperClass = "rev_slider_wrapper"; $sliderClass = "rev_slider"; switch($sliderType){ case "responsitive": //@since 5.0: obsolete now, was custom case "fixed": //@since 5.0: obsolete now case 'auto': case 'fullwidth': $sliderWrapperClass .= " fullwidthbanner-container"; $sliderClass .= " fullwidthabanner"; // KRISZTIAN REMOVED SOME LINE //$bannerStyle .= "max-height:".$bannerHeight."px;height:".$bannerHeight."px;"; //$containerStyle .= "max-height:".$bannerHeight."px;"; break; case 'fullscreen': $sliderWrapperClass .= " fullscreen-container"; $sliderClass .= " fullscreenbanner"; break; default: $bannerStyle .= "height:".$bannerHeight."px;width:".$bannerWidth."px;"; $containerStyle .= "height:".$bannerHeight."px;width:".$bannerWidth."px;"; break; } $maxWidth = $this->slider->getParam('max_width', '0', RevSlider::FORCE_NUMERIC); if($maxWidth > 0 && $this->slider->getParam('slider_type') == 'auto'){ $containerStyle.='max-width:'. $maxWidth.'px;'; } $htmlTimerBar = ""; $enable_progressbar = $this->slider->getParam('enable_progressbar','on'); $timerBar = $this->slider->getParam('show_timerbar','top'); $progress_height = $this->slider->getParam('progress_height','5'); $progress_opa = $this->slider->getParam('progress_opa','15'); $progressbar_color = $this->slider->getParam('progressbar_color','#000000'); if($enable_progressbar !== 'on' || $slider_type == 'hero') $timerBar = 'hide'; $progress_style = ' style="height: '.esc_attr($progress_height).'px; background-color: '.RevSliderFunctions::hex2rgba($progressbar_color, $progress_opa).';"'; switch($timerBar){ case "top": $htmlTimerBar = '
'; break; case "bottom": $htmlTimerBar = '
'; break; case "hide": $htmlTimerBar = '
'; break; } //check inner / outer border $paddingType = $this->slider->getParam("padding_type","outer"); if($paddingType == "inner") $sliderWrapperClass .= " tp_inner_padding"; global $revSliderVersion; $add_alias = ''; if(is_super_admin() || is_admin_bar_showing()){ if(current_user_can('edit_theme_options')){ $add_alias = ' data-alias="'.esc_attr($this->slider->getAlias()).'"'; } } echo $htmlBeforeSlider."\n"; echo '
slider->getParam("show_alternative_type","off"); if($show_alternate !== 'off'){ $show_alternate_image = $this->slider->getParam("show_alternate_image",""); echo ' data-aimg="'.$show_alternate_image.'" '; if($show_alternate == 'mobile' || $show_alternate == 'mobile-ie8'){ echo ' data-amobile="enabled" '; }else{ echo ' data-amobile="disabled" '; } if($show_alternate == 'mobile-ie8' || $show_alternate == 'ie8'){ echo ' data-aie8="enabled" '; }else{ echo ' data-aie8="disabled" '; } } echo ' style="'. $containerStyle .'">'."\n"; echo ''."\n"; echo '
'."\n"; echo $this->putSlides($gal_ids); echo $htmlTimerBar; echo '
'."\n"; $this->putJS($markup_export); echo '
'; echo ''; }catch(Exception $e){ $message = $e->getMessage(); $this->putErrorMessage($message); } } } ?>ets/assets/sources/ig.png'; $bgStyle = 'background-size: cover;'; break; case 'flickr': $thumb = RS_PLUGIN_URL.'public/assets/assets/sources/fr.png'; $bgStyle = 'background-size: cover;'; break; case 'youtube': $thumb = RS_PLUGIN_URL.'public/assets/assets/sources/yt.png'; $bgStyle = 'background-size: cover;'; break; case 'vimeo': $thumb = RS_PLUGIN_URL.'public/assets/assets/sources/vm.png'; $bgStyle = 'background-size: cover;'; break; } if($thumb == '') $thumb = RevSliderBase::getVar($params, "image"); $bg_fullstyle =''; $bg_extraClass=''; $data_urlImageForView=''; //if($bgType=="image" || $bgType=="streamvimeo" || $bgType=="streamyoutube" || $bgType=="streaminstagram" || $bgType=="html5") { $data_urlImageForView = $thumb; $bg_fullstyle = $bgStyle; //} if($bgType=="solid") $bg_fullstyle ='background-color:'.$bgColor.';'; if($bgType=="trans" || $bgType=="transparent") $bg_extraClass = 'mini-transparent'; return array( 'url' => $data_urlImageForView, 'class' => $bg_extraClass, 'style' => $bg_fullstyle ); } /** * * replace image url's among slide image and layer images */ public function replaceImageUrls($urlFrom, $urlTo){ $this->validateInited(); $isUpdated = false; $urlImage = RevSliderFunctions::getVal($this->params, "image"); if(strpos($urlImage, $urlFrom) !== false){ $imageNew = str_replace($urlFrom, $urlTo, $urlImage); $this->params["image"] = $imageNew; $isUpdated = true; } if($isUpdated == true) $this->updateParamsInDB(); // update image url in layers $isUpdated = false; foreach($this->arrLayers as $key=>$layer){ $type = RevSliderFunctions::getVal($layer, "type"); if($type == "image"){ $urlImage = RevSliderFunctions::getVal($layer, "image_url"); if(strpos($urlImage, $urlFrom) !== false){ $newUrlImage = str_replace($urlFrom, $urlTo, $urlImage); $this->arrLayers[$key]["image_url"] = $newUrlImage; $isUpdated = true; } } } if($isUpdated == true) $this->updateLayersInDB(); } /** * replace all css classes in all layers * @since: 5.0 */ public function replaceCssClass($css_from, $css_to){ $this->validateInited(); $isUpdated = false; if(!empty($this->arrLayers)){ foreach($this->arrLayers as $key=>$layer){ $caption = RevSliderFunctions::getVal($layer, 'style'); if($caption == $css_from){ $this->arrLayers[$key]['style'] = $css_to; $isUpdated = true; } } } if($isUpdated == true) $this->updateLayersInDB(); } /** * reset Slide to certain values * @since: 5.0 */ public function reset_slide_values($values){ $this->validateInited(); foreach($values as $key => $val){ if($key !== 'sliderid'){ $this->params[esc_attr($key)] = esc_attr($val); } } $this->updateParamsInDB(); } /** * return if current Slide is static Slide */ public function isStaticSlide(){ return $this->static_slide; } /** * Returns all layer attributes that can have more than one setting due to desktop, tablet, mobile sizes * @since: 5.0 */ public static function translateIntoSizes(){ return array( 'align_hor', 'align_vert', 'top', 'left', 'font-size', 'line-height', 'font-weight', 'color', 'max_width', 'max_height', 'whitespace', 'video_height', 'video_width', 'scaleX', 'scaleY' ); } /** * Translates all values that need more than one setting * @since: 5.0 */ public function translateLayerSizes($layers){ $translation = self::translateIntoSizes(); if(!empty($layers)){ foreach($layers as $l => $layer){ foreach($translation as $trans){ if(isset($layers[$l][$trans])){ if(!is_array($layers[$l][$trans])){ $layers[$l][$trans] = array('desktop' => $layers[$l][$trans]); } } } } } return $layers; } } /** * old classname extends new one (old classnames will be obsolete soon) * @since: 5.0 **/ class RevSlide extends RevSliderSlide {} ?>llet-title { \\n position:absolute; \\n bottom:65px;\\n display:inline-block;\\n left:50%;\\n background:#000;\\n background:rgba(0,0,0,0.75);\\n color:#fff;\\n padding:10px 30px;\\n border-radius:4px;\\n -webkit-border-radius:4px;\\n opacity:0;\\n transition:all 0.3s;\\n -webkit-transition:all 0.3s;\\n transform: translateZ(0.001px) translateX(-50%) translateY(14px);\\n transform-origin:50% 100%;\\n -webkit-transform: translateZ(0.001px) translateX(-50%) translateY(14px);\\n -webkit-transform-origin:50% 100%;\\n opacity:0;\\n white-space:nowrap;\\n }\\n\\n.dione .tp-bullet:hover .tp-bullet-title {\\n transform:rotateX(0deg) translateX(-50%);\\n -webkit-transform:rotateX(0deg) translateX(-50%);\\n opacity:1;\\n}\\n\\n.dione .tp-bullet.selected,\\n.dione .tp-bullet:hover {\\n \\n background: rgba(255,255,255,1);\\n background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%);\\n background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,1)), color-stop(100%, rgba(119,119,119,1)));\\n background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%);\\n background: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%);\\n background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%);\\n background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(119,119,119,1) 100%);\\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\\\\\\"#ffffff\\\\\\", endColorstr=\\\\\\"#777777\\\\\\", GradientType=0 );\\n \\n }\\n.dione .tp-bullet-title:after {\\n content:\\\\\\" \\\\\\";\\n position:absolute;\\n left:50%;\\n margin-left:-8px;\\n width: 0;\\n height: 0;\\n border-style: solid;\\n border-width: 8px 8px 0 8px;\\n border-color: rgba(0,0,0,0.75) transparent transparent transparent;\\n bottom:-8px;\\n }\\n","arrows":".dione.tparrows {\\n height:100%;\\n width:100px;\\n background:transparent;\\n background:rgba(0,0,0,0);\\n line-height:100%;\\n transition:all 0.3s;\\n-webkit-transition:all 0.3s;\\n}\\n\\n.dione.tparrows:hover {\\n background:rgba(0,0,0,0.45);\\n }\\n.dione .tp-arr-imgwrapper {\\n width:100px;\\n left:0px;\\n position:absolute;\\n height:100%;\\n top:0px;\\n overflow:hidden;\\n }\\n.dione.tp-rightarrow .tp-arr-imgwrapper {\\nleft:auto;\\nright:0px;\\n}\\n\\n.dione .tp-arr-imgholder {\\nbackground-position:center center;\\nbackground-size:cover;\\nwidth:100px;\\nheight:100%;\\ntop:0px;\\nvisibility:hidden;\\ntransform:translateX(-50px);\\n-webkit-transform:translateX(-50px);\\ntransition:all 0.3s;\\n-webkit-transition:all 0.3s;\\nopacity:0;\\nleft:0px;\\n}\\n\\n.dione.tparrows.tp-rightarrow .tp-arr-imgholder {\\n right:0px;\\n left:auto;\\n transform:translateX(50px);\\n -webkit-transform:translateX(50px);\\n}\\n\\n.dione.tparrows:before {\\nposition:absolute;\\nline-height:30px;\\nmargin-left:-22px;\\ntop:50%;\\nleft:50%;\\nfont-size:30px;\\nmargin-top:-15px;\\ntransition:all 0.3s;\\n-webkit-transition:all 0.3s;\\n}\\n\\n.dione.tparrows.tp-rightarrow:before {\\nmargin-left:6px;\\n}\\n\\n.dione.tparrows:hover:before {\\n transform:translateX(-20px);\\n-webkit-transform:translateX(-20px);\\nopacity:0;\\n}\\n\\n.dione.tparrows.tp-rightarrow:hover:before {\\n transform:translateX(20px);\\n-webkit-transform:translateX(20px);\\n}\\n\\n.dione.tparrows:hover .tp-arr-imgholder {\\n transform:translateX(0px);\\n-webkit-transform:translateX(0px);\\nopacity:1;\\nvisibility:visible;\\n}\\n\\n"}','settings' => '{"width":{"thumbs":"200","arrows":"160","bullets":"160","tabs":"160"},"height":{"thumbs":"130","arrows":"160","bullets":"160","tabs":"31"}}'); $navigations[] = array('id' => 5013,'default' => true,'name' => 'Uranus','handle' => 'uranus','markup' => '{"arrows":"","bullets":"<\/span>"}','css' => '{"arrows":".uranus.tparrows {\\n width:50px;\\n height:50px;\\n background:transparent;\\n }\\n .uranus.tparrows:before {\\n width:50px;\\n height:50px;\\n line-height:50px;\\n font-size:40px;\\n transition:all 0.3s;\\n-webkit-transition:all 0.3s;\\n }\\n \\n .uranus.tparrows:hover:before {\\n opacity:0.75;\\n }","bullets":".uranus .tp-bullet{\\n\\tborder-radius: 50%;\\n box-shadow: 0 0 0 2px rgba(255, 255, 255, 0);\\n -webkit-transition: box-shadow 0.3s ease;\\n transition: box-shadow 0.3s ease;\\n background:transparent;\\n}\\n.uranus .tp-bullet.selected,\\n.uranus .tp-bullet:hover {\\n box-shadow: 0 0 0 2px #FFF;\\n border:none;\\n border-radius: 50%;\\n\\n background:transparent;\\n}\\n\\n\\n\\n.uranus .tp-bullet-inner {\\n background-color: rgba(255, 255, 255, 0.7);\\n -webkit-transition: background-color 0.3s ease, -webkit-transform 0.3s ease;\\n transition: background-color 0.3s ease, transform 0.3s ease;\\n top: 0;\\n left: 0;\\n width: 100%;\\n height: 100%;\\n outline: none;\\n border-radius: 50%;\\n background-color: #FFF;\\n background-color: rgba(255, 255, 255, 0.3);\\n text-indent: -999em;\\n cursor: pointer;\\n position: absolute;\\n}\\n\\n.uranus .tp-bullet.selected .tp-bullet-inner,\\n.uranus .tp-bullet:hover .tp-bullet-inner{\\n transform: scale(0.4);\\n -webkit-transform: scale(0.4);\\n background-color:#fff;\\n}"}','settings' => '{"width":{"thumbs":"200","arrows":"160","bullets":"160","tabs":"160"},"height":{"thumbs":"130","arrows":"160","bullets":"160","tabs":"31"}}'); return apply_filters('revslider_mod_default_navigations', $navigations); } /** * Translate Navigation for backwards compatibility * @since: 5.0 **/ public static function translate_navigation($handle){ switch($handle){ case 'round': $handle = 'hesperiden'; break; case 'navbar': $handle = 'gyges'; break; case 'preview1': $handle = 'hades'; break; case 'preview2': $handle = 'ares'; break; case 'preview3': $handle = 'hebe'; break; case 'preview4': $handle = 'hermes'; break; case 'custom': $handle = 'custom'; break; case 'round-old': $handle = 'hephaistos'; break; case 'square-old': $handle = 'persephone'; break; case 'navbar-old': $handle = 'erinyen'; break; } return $handle; } } ?>