Changeset 3090 for branches


Ignore:
Timestamp:
Jan 17, 2009, 11:13:31 PM (16 years ago)
Author:
vdigital
Message:

Title harmonization in the scope of Piwigo website integration.
$confreverse_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.

Location:
branches/2.0
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/include/config_default.inc.php

    r3046 r3090  
    221221//    );
    222222$conf['random_index_redirect'] = array();
     223
     224// reverse_home_title: if Piwigo is your home page for a better robot index
     225// we recommend to set it true (Only index page will reverse its title)
     226$conf['reverse_home_title'] = false;
    223227
    224228// List of notes to display on all header page
  • branches/2.0/include/page_header.php

    r3046 r3090  
    4343      isset($page['body_id']) ?
    4444        $page['body_id'] : '',
     45
     46    'REVERSE' =>
     47      (isset($conf['reverse_home_title']) and $conf['reverse_home_title']) ?
     48        true : false,
    4549
    4650    'CONTENT_ENCODING' => get_pwg_charset(),
  • branches/2.0/template/yoga/header.tpl

    r3040 r3090  
    1919{/if}
    2020
    21 <title>{$GALLERY_TITLE} :: {$PAGE_TITLE}</title>
     21{if (isset($REVERSE) and $REVERSE and $PAGE_TITLE == l10n('home'))}
     22<title>{$GALLERY_TITLE} | {$PAGE_TITLE}</title>{else}
     23<title>{$PAGE_TITLE} | {$GALLERY_TITLE}</title>{/if}
    2224<link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico">
    2325
Note: See TracChangeset for help on using the changeset viewer.