From 7ee25a341918004d2fd26e52d4adbab3dc7cf44d Mon Sep 17 00:00:00 2001 From: vdigital Date: Sat, 17 Jan 2009 22:22:30 +0000 Subject: [PATCH] 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. - Croatian flag merge -c3091 from branch 2.0 to trunk git-svn-id: http://piwigo.org/svn/trunk@3095 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/config_default.inc.php | 4 ++++ include/page_header.php | 4 ++++ plugins/language_switch/icons/hr-HR.gif | Bin 0 -> 545 bytes template/yoga/header.tpl | 4 +++- 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 plugins/language_switch/icons/hr-HR.gif 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), diff --git a/plugins/language_switch/icons/hr-HR.gif b/plugins/language_switch/icons/hr-HR.gif new file mode 100644 index 0000000000000000000000000000000000000000..08b5747457222f7809f28ae4cff12f47a1382a7a GIT binary patch literal 545 zcmZ?wbhEHblwc5GIOfB^<2Z}oaoT21PC>^Rj%MY0_T5Elkuq*Grph?~XJGip#PpAu z`4=nuZyvt?e0;x!g#QZ){+E*SiJiUK#^$G-{9gryJvIS<_4Q*4r+&7u>Pc+KuAEg@ zJmtHa$Af^7|GvJ5(u)2E2mcQZeUzB`KRo#s4>NzIX28%}bXqUc3MH?AiaPPyfGs`Tz6h|G$0v|NZ;_ zK@4;lfB+O14D4+UoK4Lwt!?ccon1{_JmTEE-R){(Y&udb>LQa`EDSglB&01RJG_>! zSne#R$}g*|>AiBL&(>{Q%>_IK9krRZA2_(x#e>gXUeD;z>8&=3PAXRV!e>sqnd+M8 z8)}?!xc}h3nYEI=ma*-_R}637z7=v6wUc3f_wD;TMppJ8fB*ewVCE8$;9#%@0F_Ho A*#H0l literal 0 HcmV?d00001 diff --git a/template/yoga/header.tpl b/template/yoga/header.tpl index c64ae5959..668d7c505 100644 --- a/template/yoga/header.tpl +++ b/template/yoga/header.tpl @@ -18,7 +18,9 @@ {/if} {/if} -{$GALLERY_TITLE} :: {$PAGE_TITLE} +{if (isset($REVERSE) and $REVERSE and $PAGE_TITLE == l10n('home'))} +{$GALLERY_TITLE} | {$PAGE_TITLE}{else} +{$PAGE_TITLE} | {$GALLERY_TITLE}{/if}