mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Featurebox button added to shortcodes.
This commit is contained in:
@@ -87,9 +87,24 @@ class plugin_featurebox_item extends e_model
|
|||||||
|
|
||||||
$title = vartrue($parm['text']) ? defset($parm['text']) : FBLAN_02;
|
$title = vartrue($parm['text']) ? defset($parm['text']) : FBLAN_02;
|
||||||
$alt = $tp->toAttribute($this->get('fb_title'), false, 'TITLE');
|
$alt = $tp->toAttribute($this->get('fb_title'), false, 'TITLE');
|
||||||
return '<a id="featurebox-url-'.$this->getId().'" href="'.$url.'" title="'.$alt.'" rel="'.$tp->toAttribute(vartrue($parm['rel'], '')).'">'.$title.'</a>';
|
|
||||||
|
$buttonCls = vartrue($parm['button']) ? "class='btn' " : "";
|
||||||
|
|
||||||
|
return '<a '.$buttonCls.'id="featurebox-url-'.$this->getId().'" href="'.$url.'" title="'.$alt.'" rel="'.$tp->toAttribute(vartrue($parm['rel'], '')).'">'.$title.'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public function sc_featurebox_button($parm='')
|
||||||
|
{
|
||||||
|
return $this->sc_featurebox_url('button=1');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function sc_featurebox_text()
|
public function sc_featurebox_text()
|
||||||
{
|
{
|
||||||
return e107::getParser()->toHTML($this->get('fb_text'), true, 'BODY');
|
return e107::getParser()->toHTML($this->get('fb_text'), true, 'BODY');
|
||||||
|
Reference in New Issue
Block a user