/** * * get array of sliders with slides, short, assoc. */ public function getArrSlidersWithSlidesShort($filterType = self::SLIDER_TYPE_ALL) { $arrSliders = self::getArrSlidersShort(null, $filterType); $output = array(); foreach ($arrSliders as $sliderID => $sliderName) { $slider = new RevSlider(); $slider->initByID($sliderID); $isFromPosts = $slider->isSlidesFromPosts(); $isTemplate = $slider->getParam("template", "false"); //filter by gallery only if ($filterType == self::SLIDER_TYPE_POSTS && $isFromPosts == false) { continue; } if ($filterType == self::SLIDER_TYPE_GALLERY && $isFromPosts == true) { continue; } //filter by template type if ($filterType == self::SLIDER_TYPE_TEMPLATE && $isTemplate == "false") { continue; } $sliderTitle = $slider->getTitle(); $arrSlides = $slider->getArrSlidesFromGalleryShort(); foreach ($arrSlides as $slideID => $slideName) { $output[$slideID] = $sliderName . ", " . $slideName; } } return $output; }