From 31d898cbc152de6dda6a60ccc8e76fa54f51c40e Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Mon, 1 Jul 2013 17:21:12 +0200 Subject: [PATCH] Adding configurable website title Fixes #310 --- public/include/config/global.inc.dist.php | 3 +++ public/include/smarty_globals.inc.php | 1 + public/templates/mmcFE/master.tpl | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/include/config/global.inc.dist.php b/public/include/config/global.inc.dist.php index acaa51bb..48931389 100644 --- a/public/include/config/global.inc.dist.php +++ b/public/include/config/global.inc.dist.php @@ -96,6 +96,7 @@ $config['ap_threshold']['max'] = 250; * Website specific configuration settings * * Explanation: + * title : Website title used in master template * name : The pool name, displayed in the header and mails * slogan : A special slogan, also displayed in the header below name * email : `From` addresses used in notifications @@ -104,6 +105,7 @@ $config['ap_threshold']['max'] = 250; * mobile_theme : Theme used for mobile browsers * * Defaults: + * title = `The Pool - Mining Evolved` * name = `The Pool` * slogan = `Resistance is futile` * email = `test@example.com` @@ -111,6 +113,7 @@ $config['ap_threshold']['max'] = 250; * mobile = true * mobile_theme = `mobile` **/ +$config['website']['title'] = 'The Pool - Mining Evolved'; $config['website']['name'] = 'The Pool'; $config['website']['slogan'] = 'Resistance is futile'; $config['website']['email'] = 'test@example.com'; diff --git a/public/include/smarty_globals.inc.php b/public/include/smarty_globals.inc.php index 460d52a9..a2983baf 100644 --- a/public/include/smarty_globals.inc.php +++ b/public/include/smarty_globals.inc.php @@ -42,6 +42,7 @@ $aGlobal = array( 'blockexplorer' => $config['blockexplorer'], 'chaininfo' => $config['chaininfo'], 'config' => array( + 'website' => array( 'title' => $config['website']['title'] ), 'price' => array( 'currency' => $config['price']['currency'] ), 'targetdiff' => $config['difficulty'], 'currency' => $config['currency'], diff --git a/public/templates/mmcFE/master.tpl b/public/templates/mmcFE/master.tpl index 31d31406..f476f747 100644 --- a/public/templates/mmcFE/master.tpl +++ b/public/templates/mmcFE/master.tpl @@ -1,7 +1,7 @@ - ThePool + {$GLOBAL.config.website.title}