mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02: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:
@@ -45,15 +45,22 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* YYYY is automatically replaced with the current year.
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
function sc_sitedisclaimer()
|
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.";
|
$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 = deftrue('SITEDISCLAIMER',$default);
|
||||||
|
|
||||||
|
$text = str_replace("YYYY", date('Y'), $text);
|
||||||
|
|
||||||
return e107::getParser()->toHtml($text, true, 'SUMMARY');
|
return e107::getParser()->toHtml($text, true, 'SUMMARY');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function sc_siteurl($parm='')
|
function sc_siteurl($parm='')
|
||||||
{
|
{
|
||||||
if(strlen(deftrue('SITEURL')) < 3 ) //fixes CLI/cron
|
if(strlen(deftrue('SITEURL')) < 3 ) //fixes CLI/cron
|
||||||
|
Reference in New Issue
Block a user