toAttribute($this->var['media_caption'])."' href='".e107::getParser()->replaceConstants($this->var['media_url'],'abs')."' rel='lightbox.Gallery2' >";
$text .= $this->var['media_caption'];
$text .= "";
return $text;
}
function sc_gallery_thumb($parm='')
{
$tp = e107::getParser();
$class = ($this->slideMode == TRUE) ? 'gallery-slideshow-thumb' : 'gallery-thumb';
$att = ($parm) ?$parm : 'aw=190&ah=150';
$text = "";
$text .= "";
$text .= "";
return $text;
}
function sc_gallery_cat_title($parm='')
{
$tp = e107::getParser();
$text = "";
$text .= $tp->toHtml($this->var['media_cat_title']);
$text .= "";
return $text;
}
function sc_gallery_cat_thumb($parm='')
{
$att = ($parm) ?$parm : 'aw=190&ah=150';
$text = "";
$text .= "
";
$text .= "";
return $text;
}
function sc_gallery_nextprev($parm='')
{
$url = e_SELF."?cat=".$this->curCat."--AMP--frm=--FROM--";
$parm = 'total='.$this->total.'&amount='.$this->amount.'¤t='.$this->from.'&url='.$url; // .'&url='.$url;
$text .= e107::getParser()->parseTemplate("{NEXTPREV=".$parm."}");
return $text;
}
function sc_gallery_slideshow($parm='')
{
$this->sliderCat = ($parm) ? intval($parm) : vartrue(e107::getPlugPref('gallery','slideshow_category'),1);
$template = e107::getTemplate('gallery','gallery','SLIDESHOW_WRAPPER');
return e107::getParser()->parseTemplate($template);
}
function sc_gallery_slides($parm)
{
$this->slideMode = TRUE;
$amount = ($parm) ? intval($parm) : vartrue(e107::getPlugPref('gallery','slideshow_perslide'),3);
$tp = e107::getParser();
$list = e107::getMedia()->getImages('gallery_'.$this->sliderCat);
$item_template = e107::getTemplate('gallery','gallery','SLIDESHOW_SLIDE_ITEM');
$count = 1;
foreach($list as $row)
{
$this->setParserVars($row);
$inner .= ($count == 1) ? "\n\n\n