mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
A site-disclaimer containing "YYYY" will be automatically replaced with the current year. eg. Copyright '2004-YYYY' becomes '2004-2017'
This commit is contained in:
parent
3ebfaaf3f1
commit
7628ddb89a
@ -45,14 +45,21 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* YYYY is automatically replaced with the current year.
|
||||
* @return string
|
||||
*/
|
||||
function sc_sitedisclaimer()
|
||||
{
|
||||
$default = "Proudly powered by <a href='http://e107.org'>e107</a> which is released under the terms of the GNU GPL License.";
|
||||
|
||||
$text = deftrue('SITEDISCLAIMER',$default);
|
||||
|
||||
$text = str_replace("YYYY", date('Y'), $text);
|
||||
|
||||
return e107::getParser()->toHtml($text, true, 'SUMMARY');
|
||||
}
|
||||
|
||||
|
||||
function sc_siteurl($parm='')
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user