mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 19:44:09 +02:00
Added Missing social plugin font. Added {CMENUURL} shortcode. Issue #1507. Added example of getFieldVar() method to plugin builder.
This commit is contained in:
@@ -301,6 +301,21 @@ class cpage_shortcodes extends e_shortcode
|
||||
// print_a($this);
|
||||
return e107::getParser()->toHTML($this->var['menu_text'], true, 'BODY');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param null $parm
|
||||
* @example {CMENUURL}
|
||||
* @return string
|
||||
*/
|
||||
function sc_cmenuurl($parm=null)
|
||||
{
|
||||
if(empty($this->var['menu_button_url']))
|
||||
{
|
||||
return $this->sc_cpageurl();
|
||||
}
|
||||
|
||||
return e107::getParser()->replaceConstants($this->var['menu_button_url']);
|
||||
}
|
||||
|
||||
|
||||
function sc_cmenuimage($parm='')
|
||||
|
Reference in New Issue
Block a user