mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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),
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 545 B |
@@ -18,7 +18,9 @@
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<title>{$GALLERY_TITLE} :: {$PAGE_TITLE}</title>
|
||||
{if (isset($REVERSE) and $REVERSE and $PAGE_TITLE == l10n('home'))}
|
||||
<title>{$GALLERY_TITLE} | {$PAGE_TITLE}</title>{else}
|
||||
<title>{$PAGE_TITLE} | {$GALLERY_TITLE}</title>{/if}
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico">
|
||||
|
||||
<link rel="start" title="{'home'|@translate}" href="{$U_HOME}" >
|
||||
|
||||
Reference in New Issue
Block a user