From 0f6c16bdc854b7bf5a1dc4b87eb30a32b8a8324b Mon Sep 17 00:00:00 2001 From: Roland Graf <oxigen.rg@gmail.com> Date: Sat, 8 Feb 2014 20:07:02 +0100 Subject: [PATCH] Image caption - Link start slideshow --- e107_plugins/gallery/e_shortcode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_plugins/gallery/e_shortcode.php b/e107_plugins/gallery/e_shortcode.php index 09a13c424..ca15fc166 100644 --- a/e107_plugins/gallery/e_shortcode.php +++ b/e107_plugins/gallery/e_shortcode.php @@ -32,7 +32,7 @@ class gallery_shortcodes extends e_shortcode function sc_gallery_caption($parm='') { $tp = e107::getParser(); - $text = "<a class='gallery-caption' title='".$tp->toAttribute($this->var['media_caption'])."' href='".$tp->thumbUrl($this->var['media_url'], $this->attFull)."' rel='lightbox.Gallery2' >"; + $text = "<a class='gallery-caption' title='".$tp->toAttribute($this->var['media_caption'])."' href='".$tp->thumbUrl($this->var['media_url'], $this->attFull)."' rel='prettyPhoto[slide]' >"; // Erase rel"lightbox.Gallery2" - Write "prettyPhoto[slide]" $text .= $this->var['media_caption']; $text .= "</a>"; return $text; @@ -235,7 +235,7 @@ class gallery_shortcodes extends e_shortcode { $this->setVars($row) ->addVars($cat); - + $inner .= ($count == 1) ? "\n\n<!-- SLIDE ".$count." -->\n<div class='slide' id='gallery-item-".$this->slideCount."'>\n" : ""; $inner .= "\n\t".$tp->parseTemplate($item_template,TRUE)."\n"; $inner .= ($count == $amount) ? "\n</div>\n\n" : "";