コード例 #1
0
ファイル: slide.php プロジェクト: anoopbaabte/baabtraCMS
<?php

//Get input
$slideID = UniteFunctionsBanner::getGetVar("id");
//Init slide object
$slide = new BannerSlide();
$slide->initByID($slideID);
$slideParams = $slide->getParams();
$operations = new BannerOperations();
//Init slider object
$sliderID = $slide->getSliderID();
$slider = new BannerRotator();
$slider->initByID($sliderID);
$sliderParams = $slider->getParams();
$arrSlideNames = $slider->getArrSlideNames();
//Set slide delay
$sliderDelay = $slider->getParam("delay", "9000");
$slideDelay = $slide->getParam("delay", "");
if (empty($slideDelay)) {
    $slideDelay = $sliderDelay;
}
require self::getSettingsFilePath("slide_settings");
require self::getSettingsFilePath("layer_settings");
$settingsLayerOutput = new UniteSettingsProductSidebarBanner();
$settingsSlideOutput = new UniteSettingsBannerProductBanner();
$arrLayers = $slide->getLayers();
//Get settings objects
$settingsLayer = self::getSettings("layer_settings");
$settingsSlide = self::getSettings("slide_settings");
$cssContent = self::getSettings("css_captions_content");
$arrCaptionClasses = $operations->getArrCaptionClasses($cssContent);