mirror of
https://github.com/e107inc/e107.git
synced 2025-05-05 11:45:38 +02:00
Image caption - Link start slideshow
This commit is contained in:
parent
af9138885d
commit
0f6c16bdc8
@ -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" : "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user