} if ($bgPosition == 'percentage') { $style_wrapper .= "background-position: " . $bgPositionX . '% ' . $bgPositionY . '%;'; } else { $style_wrapper .= "background-position: " . $bgPosition . ";"; } $style_wrapper .= "background-repeat: " . $bgRepeat . ";"; break; } $slideTitle = $slide->getParam("title", "Slide"); $slideOrder = $slide->getOrder(); //treat multilanguage $isWpmlExists = RevSliderWpml::isWpmlExists(); $useWpml = $slider->getParam("use_wpml", "off"); $wpmlActive = false; if (!$slide->isStaticSlide()) { if ($isWpmlExists && $useWpml == "on") { $wpmlActive = true; $parentSlide = $slide->getParentSlide(); $arrChildLangs = $parentSlide->getArrChildrenLangs(); } } //<!-- load good font --> $operations = new RevSliderOperations(); $googleFont = $slider->getParam("google_font", array()); if (!empty($googleFont)) { if (is_array($googleFont)) { foreach ($googleFont as $key => $font) { echo RevSliderOperations::getCleanFontImport($font); } } else {
$style_wrapper .= "background-image:url('" . $slideBGExternal . "');"; if ($bgFit == 'percentage') { $style_wrapper .= "background-size: " . $bgFitX . '% ' . $bgFitY . '%;'; } else { $style_wrapper .= "background-size: " . $bgFit . ";"; } if ($bgPosition == 'percentage') { $style_wrapper .= "background-position: " . $bgPositionX . '% ' . $bgPositionY . '%;'; } else { $style_wrapper .= "background-position: " . $bgPosition . ";"; } $style_wrapper .= "background-repeat: " . $bgRepeat . ";"; break; } $slideTitle = $slide->getParam("title", "Slide"); $slideOrder = $slide->getOrder(); //treat multilanguage $isWpmlExists = UniteWpmlRev::isWpmlExists(); $useWpml = $slider->getParam("use_wpml", "off"); $wpmlActive = false; if (!$slide->isStaticSlide()) { if ($isWpmlExists && $useWpml == "on") { $wpmlActive = true; $parentSlide = $slide->getParentSlide(); $arrChildLangs = $parentSlide->getArrChildrenLangs(); } } require self::getPathTemplate("slide"); ?>