mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 17:39:46 +01:00
Gallery slider category fix
This commit is contained in:
parent
58f4ecafc9
commit
c9b1d0f1a9
@ -378,7 +378,14 @@ class e_media
|
||||
}
|
||||
if($cat)
|
||||
{
|
||||
$catArray[] = $cat;
|
||||
if(strpos($cat, "|") && !strpos($cat,"+") )
|
||||
{
|
||||
$catArray = explode("|",$cat);
|
||||
}
|
||||
else
|
||||
{
|
||||
$catArray[] = $cat;
|
||||
}
|
||||
// $inc[] = "media_category LIKE '%".$cat."%' "; // for multiple category field.
|
||||
// $inc[] = "media_category REGEXP '(^|,)(".$cat.")(,|$)' "; // for multiple category field.
|
||||
}
|
||||
|
@ -181,7 +181,7 @@ class gallery_shortcodes extends e_shortcode
|
||||
$amount = $parms[1] ? intval($parms[1]) : 3; // vartrue(e107::getPlugPref('gallery','slideshow_perslide'),3);
|
||||
$parms = $parms[2];
|
||||
$limit = (integer) vartrue($parms['limit'], 16);
|
||||
$list = e107::getMedia()->getImages('gallery_'.$this->sliderCat,0,$limit);
|
||||
$list = e107::getMedia()->getImages('gallery_'.$this->sliderCat.'|gallery_image_'.$this->sliderCat,0,$limit);
|
||||
$item_template = e107::getTemplate('gallery','gallery', vartrue($parms['template'], 'SLIDESHOW_SLIDE_ITEM'));
|
||||
$catList = e107::getMedia()->getCategories('gallery');
|
||||
$cat = $catList['gallery_'.$this->sliderCat];
|
||||
|
Loading…
x
Reference in New Issue
Block a user