mirror of
https://github.com/e107inc/e107.git
synced 2025-06-05 02:15:13 +02:00
Added {SITEURL} shortcode for consistency.
This commit is contained in:
parent
c7552fbcc9
commit
540f60c249
@ -24,7 +24,13 @@ 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_sitename($parm)
|
function sc_siteurl($parm='')
|
||||||
|
{
|
||||||
|
return SITEURL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user