wp_blog/wp-content/plugins/revslider/views/slides.php
2020-01-02 23:15:16 +07:00

34 lines
848 B
PHP

<?php
$sliderID = self::getGetVar("id");
if(empty($sliderID))
UniteFunctionsRev::throwError("Slider ID not found");
$slider = new RevSlider();
$slider->initByID($sliderID);
$sliderParams = $slider->getParams();
$arrSliders = $slider->getArrSlidersShort($sliderID);
$selectSliders = UniteFunctionsRev::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;";
$arrSlides = $slider->getSlides();
$numSlides = count($arrSlides);
$linksSliderSettings = self::getViewUrl(RevSliderAdmin::VIEW_SLIDER,"id=$sliderID");
require self::getPathTemplate("slides");
?>