Adding configurable website title

Fixes #310
This commit is contained in:
Sebastian Grewe 2013-07-01 17:21:12 +02:00
parent 2dd333b5d8
commit 31d898cbc1
3 changed files with 5 additions and 1 deletions

View File

@ -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';

View File

@ -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'],

View File

@ -1,7 +1,7 @@
<!DOCTYPE unspecified PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>ThePool</title>
<title>{$GLOBAL.config.website.title}</title>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="favicon.ico" />