$arrCaptionClasses = $operations->getArrCaptionClasses($cssContent); $arrButtonClasses = $operations->getButtonClasses(); //Set layer caption as first caption class $firstCaption = !empty($arrCaptionClasses) ? $arrCaptionClasses[0] : ""; $settingsLayer->updateSettingValue("layer_caption", $firstCaption); //Set stored values from "slide params" $settingsSlide->setStoredValues($slideParams); //Init the settings output object $settingsLayerOutput->init($settingsLayer); $settingsSlideOutput->init($settingsSlide); //Set various parameters needed for the page $width = $sliderParams["width"]; $height = $sliderParams["height"]; $imageUrl = $slide->getImageUrl(); $imageID = $slide->getImageID(); $imageFilename = $slide->getImageFilename(); $urlCaptionsCSS = GlobalsBannerRotator::$urlCaptionsCSS; $style = "width:{$width}px;height:{$height}px;"; //Set iframe parameters $iframeWidth = $width + 60; $iframeHeight = $height + 50; $iframeStyle = "width:{$iframeWidth}px;height:{$iframeHeight}px;"; $closeUrl = self::getViewUrl(BannerRotatorAdmin::VIEW_SLIDES, "id=" . $sliderID); $jsonLayers = UniteFunctionsBanner::jsonEncodeForClientSide($arrLayers); $jsonCaptions = UniteFunctionsBanner::jsonEncodeForClientSide($arrCaptionClasses); $loadGoogleFont = $slider->getParam("loadGoogleFont", "false"); //Bg type params $bgType = UniteFunctionsBanner::getVal($slideParams, "background_type", "image"); $slideBGColor = UniteFunctionsBanner::getVal($slideParams, "slide_bg_color", "#E7E7E7"); $divLayersClass = "slide_layers"; $bgSolidPickerProps = 'class="inputColorPicker slide_bg_color disabled" disabled="disabled"';