1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-24 08:22:07 +02:00

Allow theme developers to add a link class to the default site disclaimer.

This commit is contained in:
Cameron
2022-03-28 10:07:41 -07:00
parent a6c4c4c9d0
commit a14bb5496d

View File

@@ -47,11 +47,14 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
/**
* YYYY is automatically replaced with the current year.
* @param array $parm 'class' to set the class of links.
* @return string
*/
function sc_sitedisclaimer()
function sc_sitedisclaimer($parm=array())
{
$default = "Proudly powered by <a href='https://e107.org'>e107</a> which is <a href='".e_HTTP."credits.php'>released</a> under the terms of the GNU GPL License.";
$class = !empty($parm['class']) ? " class='".$parm['class']."'" : '';
$default = "Proudly powered by <a".$class." href='https://e107.org'>e107</a> which is <a".$class." href='".e_HTTP."credits.php'>released</a> under the terms of the GNU GPL License.";
$text = deftrue('SITEDISCLAIMER',$default);