1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Added stylesheet to gallery

This commit is contained in:
CaMer0n
2012-04-23 09:29:12 +00:00
parent a4bc52b831
commit c41b3e4b31
4 changed files with 49 additions and 12 deletions

View File

@@ -13,13 +13,19 @@ class gallery_shortcodes extends e_shortcode
{
function sc_gallery_caption($parm='')
{
return $this->eParserVars['media_caption'];
$text = "<a href='".e107::getParser()->replaceConstants($this->eParserVars['media_url'])."' rel='external shadowbox' >";
$text .= $this->eParserVars['media_caption'];
$text .= "</a>";
return $text;
}
function sc_gallery_thumb($parm='')
{
$att = ($parm) ?$parm : 'aw=190&ah=150';
return "<img src='".e107::getParser()->thumbUrl($this->eParserVars['media_url'],$att)."' alt='' />";
$text = "<a href='".e107::getParser()->replaceConstants($this->eParserVars['media_url'])."' rel='external shadowbox' >";
$text .= "<img src='".e107::getParser()->thumbUrl($this->eParserVars['media_url'],$att)."' alt='' />";
$text .= "</a>";
return $text;
}
function sc_gallery_cat_title($parm='')