1
0
mirror of https://github.com/e107inc/e107.git synced 2025-05-06 12:15:38 +02:00

Image caption - Link start slideshow

This commit is contained in:
Roland Graf 2014-02-08 20:07:02 +01:00
parent af9138885d
commit 0f6c16bdc8

View File

@ -32,7 +32,7 @@ class gallery_shortcodes extends e_shortcode
function sc_gallery_caption($parm='') function sc_gallery_caption($parm='')
{ {
$tp = e107::getParser(); $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 .= $this->var['media_caption'];
$text .= "</a>"; $text .= "</a>";
return $text; return $text;
@ -235,7 +235,7 @@ class gallery_shortcodes extends e_shortcode
{ {
$this->setVars($row) $this->setVars($row)
->addVars($cat); ->addVars($cat);
$inner .= ($count == 1) ? "\n\n<!-- SLIDE ".$count." -->\n<div class='slide' id='gallery-item-".$this->slideCount."'>\n" : ""; $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 .= "\n\t".$tp->parseTemplate($item_template,TRUE)."\n";
$inner .= ($count == $amount) ? "\n</div>\n\n" : ""; $inner .= ($count == $amount) ? "\n</div>\n\n" : "";