aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2009-01-17 22:13:31 +0000
committervdigital <vdigital@piwigo.org>2009-01-17 22:13:31 +0000
commit192f33353b99a80d2b8c20771c48e195e7170c08 (patch)
treee25de25dffb308dbc9eec74d7d73ad8662e34c4c /include
parent3c3d75d7bb90aa4190188c775a120d2f1663f495 (diff)
Title harmonization in the scope of Piwigo website integration.
$conf['reverse_home_title'] is false by default. On reverse_home_title = true, only index page will reverse its title. Compare to prior releases all titles are reversed. git-svn-id: http://piwigo.org/svn/branches/2.0@3090 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/config_default.inc.php4
-rw-r--r--include/page_header.php4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/config_default.inc.php b/include/config_default.inc.php
index 08ce667cc..0ef4811f8 100644
--- a/include/config_default.inc.php
+++ b/include/config_default.inc.php
@@ -221,6 +221,10 @@ $conf['links'] = array();
// );
$conf['random_index_redirect'] = array();
+// reverse_home_title: if Piwigo is your home page for a better robot index
+// we recommend to set it true (Only index page will reverse its title)
+$conf['reverse_home_title'] = false;
+
// List of notes to display on all header page
// example $conf['header_notes'] = array('Test', 'Hello');
$conf['header_notes'] = array();
diff --git a/include/page_header.php b/include/page_header.php
index 6c157a5ec..6b9fcfffe 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -43,6 +43,10 @@ $template->assign(
isset($page['body_id']) ?
$page['body_id'] : '',
+ 'REVERSE' =>
+ (isset($conf['reverse_home_title']) and $conf['reverse_home_title']) ?
+ true : false,
+
'CONTENT_ENCODING' => get_pwg_charset(),
'PAGE_TITLE' => strip_tags($title),