Ejemplo n.º 1
0
<?php

$sliderID = self::getGetVar("id");
if (empty($sliderID)) {
    UniteFunctionsBanner::throwError("Slider ID not found");
}
$slider = new BannerRotator();
$slider->initByID($sliderID);
$sliderParams = $slider->getParams();
$arrSliders = $slider->getArrSlidersShort($sliderID);
$selectSliders = UniteFunctionsBanner::getHTMLSelect($arrSliders, "", "id='selectSliders'", true);
$numSliders = count($arrSliders);
//Set iframe parameters
$width = $sliderParams["width"];
$height = $sliderParams["height"];
$iframeWidth = $width + 60;
$iframeHeight = $height + 50;
$iframeStyle = "width:{$iframeWidth}px;height:{$iframeHeight}px;";
//Handle wpml
$isWpmlExists = UniteWpmlBanner::isWpmlExists();
$useWpml = $slider->getParam("useWpml", "false");
$wpmlActive = false;
if ($isWpmlExists && $useWpml == "true") {
    $wpmlActive = true;
    //Get langs floating menu
    $urlIconDelete = self::$url_plugin . "images/icon-trash.png";
    $urlIconEdit = self::$url_plugin . "images/icon-edit.png";
    $urlIconPreview = self::$url_plugin . "images/preview.png";
    $textDelete = __("Delete Slide", BANNERROTATOR_TEXTDOMAIN);
    $textEdit = __("Edit Slide", BANNERROTATOR_TEXTDOMAIN);
    $textPreview = __("Preview Slide", BANNERROTATOR_TEXTDOMAIN);