mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Added {SITEURL} shortcode for consistency.
This commit is contained in:
@@ -23,8 +23,14 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
|
|||||||
|
|
||||||
return e107::getParser()->toHtml($text, true, 'constants defs');
|
return e107::getParser()->toHtml($text, true, 'constants defs');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function sc_siteurl($parm='')
|
||||||
|
{
|
||||||
|
return SITEURL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function sc_sitename($parm)
|
function sc_sitename($parm='')
|
||||||
{
|
{
|
||||||
return ($parm == 'link') ? "<a href='".SITEURL."' title=\"".SITENAME."\">".SITENAME."</a>" : SITENAME;
|
return ($parm == 'link') ? "<a href='".SITEURL."' title=\"".SITENAME."\">".SITENAME."</a>" : SITENAME;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user