mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Gallery - auto pause on hover (slideshow), fix of newly created bug
This commit is contained in:
parent
9d61b37214
commit
b2d9bf0242
@ -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;
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user