mirror of
https://github.com/e107inc/e107.git
synced 2025-07-26 01:11:28 +02:00
Gallery - auto pause on hover (slideshow), fix of newly created bug
This commit is contained in:
@@ -935,6 +935,7 @@ class e_shortcode
|
|||||||
*/
|
*/
|
||||||
public function addParserVars($array)
|
public function addParserVars($array)
|
||||||
{
|
{
|
||||||
|
if(!is_array($array)) return $this;
|
||||||
$this->var = array_merge($this->var, $array);
|
$this->var = array_merge($this->var, $array);
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@@ -42,6 +42,7 @@ $(document).ready(function()
|
|||||||
speed: ".varset($gp['slideshow_duration'],1000).", // speed of the transition (any valid fx speed value)
|
speed: ".varset($gp['slideshow_duration'],1000).", // speed of the transition (any valid fx speed value)
|
||||||
timeout: ".varset($gp['slideshow_freq'],4000).",
|
timeout: ".varset($gp['slideshow_freq'],4000).",
|
||||||
slideExpr: '.slide',
|
slideExpr: '.slide',
|
||||||
|
pause: 1, // pause on hover - TODO pref
|
||||||
|
|
||||||
activePagerClass: '.gallery-slide-jumper-selected',//,
|
activePagerClass: '.gallery-slide-jumper-selected',//,
|
||||||
before: function(currSlideElement, nextSlideElement, options, forwardFlag)
|
before: function(currSlideElement, nextSlideElement, options, forwardFlag)
|
||||||
|
@@ -153,9 +153,10 @@ class gallery_shortcodes extends e_shortcode
|
|||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
$limit = varset($gp['slideshow_limit'],16);
|
$limit = varset($gp['slideshow_limit'],16);
|
||||||
$list = e107::getMedia()->getImages('gallery_'.$this->sliderCat,0,$limit);
|
$list = e107::getMedia()->getImages('gallery_'.$this->sliderCat,0,$limit);
|
||||||
$item_template = e107::getTemplate('gallery','gallery','SLIDESHOW_SLIDE_ITEM');
|
$item_template = e107::getTemplate('gallery','gallery','SLIDESHOW_SLIDE_ITEM');
|
||||||
$cat = $this->catList[$this->sliderCat];
|
$catList = e107::getMedia()->getCategories('gallery');
|
||||||
|
$cat = $catList['gallery_'.$this->sliderCat];
|
||||||
|
|
||||||
$count = 1;
|
$count = 1;
|
||||||
foreach($list as $row)
|
foreach($list as $row)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user