1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-09 16:17:14 +02:00

More featurebox tweaks

This commit is contained in:
CaMer0n
2012-06-06 07:39:42 +00:00
parent 3571186d82
commit 625525304f
7 changed files with 164 additions and 19 deletions

View File

@@ -128,12 +128,25 @@ class plugin_featurebox_item extends e_model
public function sc_featurebox_thumb($parm='')
{
$tp = e107::getParser();
if(!$this->get('fb_image'))
{
return '';
}
$att = ($parm) ?$parm : 'aw=100&ah=60';
return e107::getParser()->thumbUrl($this->get('fb_image'),$att);
parse_str($parm, $parm);
$att = ($parm['aw']) ? "aw=".$parm['aw'] : 'aw=100&ah=60';
$src = e107::getParser()->thumbUrl($this->get('fb_image'),$att);
if(isset($parm['src']))
{
return $src;
}
else
{
return '<img id="featurebox-thumb-'.$this->getId().'" src="'.$src.'" alt="'.$tp->toAttribute($this->get('fb_title')).'" class="featurebox" />';
}
}
/**