1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Gallery - auto pause on hover (slideshow), fix of newly created bug

This commit is contained in:
secretr 2012-08-23 13:06:01 +00:00
parent 9d61b37214
commit b2d9bf0242
3 changed files with 6 additions and 3 deletions

View File

@ -935,6 +935,7 @@ class e_shortcode
*/
public function addParserVars($array)
{
if(!is_array($array)) return $this;
$this->var = array_merge($this->var, $array);
return $this;
}

View File

@ -42,6 +42,7 @@ $(document).ready(function()
speed: ".varset($gp['slideshow_duration'],1000).", // speed of the transition (any valid fx speed value)
timeout: ".varset($gp['slideshow_freq'],4000).",
slideExpr: '.slide',
pause: 1, // pause on hover - TODO pref
activePagerClass: '.gallery-slide-jumper-selected',//,
before: function(currSlideElement, nextSlideElement, options, forwardFlag)

View File

@ -153,9 +153,10 @@ class gallery_shortcodes extends e_shortcode
$tp = e107::getParser();
$limit = varset($gp['slideshow_limit'],16);
$list = e107::getMedia()->getImages('gallery_'.$this->sliderCat,0,$limit);
$item_template = e107::getTemplate('gallery','gallery','SLIDESHOW_SLIDE_ITEM');
$cat = $this->catList[$this->sliderCat];
$item_template = e107::getTemplate('gallery','gallery','SLIDESHOW_SLIDE_ITEM');
$catList = e107::getMedia()->getCategories('gallery');
$cat = $catList['gallery_'.$this->sliderCat];
$count = 1;
foreach($list as $row)
{