本文整理汇总了PHP中RevSlider::getArrSlidesFromGalleryShort方法的典型用法代码示例。如果您正苦于以下问题:PHP RevSlider::getArrSlidesFromGalleryShort方法的具体用法?PHP RevSlider::getArrSlidesFromGalleryShort怎么用?PHP RevSlider::getArrSlidesFromGalleryShort使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RevSlider
的用法示例。
在下文中一共展示了RevSlider::getArrSlidesFromGalleryShort方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getArrSlidersWithSlidesShort
/**
*
* 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;
}