1
0
mirror of https://github.com/e107inc/e107.git synced 2025-05-07 20:55:34 +02:00

Added {SITEURL} shortcode for consistency.

This commit is contained in:
Cameron 2013-12-25 01:59:32 -08:00
parent c7552fbcc9
commit 540f60c249

@ -23,8 +23,14 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
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;
}