Changeset 18637
- Timestamp:
- Oct 13, 2012, 5:55:35 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/config_default.inc.php
r15316 r18637 182 182 // ); 183 183 $conf['random_index_redirect'] = array(); 184 185 // reverse_home_title: if Piwigo is your home page for a better robot index186 // we recommend to set it true (Only index page will reverse its title)187 $conf['reverse_home_title'] = false;188 184 189 185 // List of notes to display on all header page -
trunk/include/page_header.php
r15578 r18637 48 48 isset($page['body_id']) ? 49 49 $page['body_id'] : '', 50 51 'REVERSE' =>52 (isset($conf['reverse_home_title']) and $conf['reverse_home_title']) ?53 true : false,54 50 55 51 'CONTENT_ENCODING' => get_pwg_charset(), -
trunk/include/section_init.inc.php
r18462 r18637 562 562 if (!empty($page['title'])) 563 563 { 564 $page['title'] =$conf['level_separator'].$page['title'];564 $page['section_title'] = '<a href="'.get_gallery_home_url().'">'.l10n('Home').'</a>'.$conf['level_separator'].$page['title']; 565 565 } 566 $page['title'] = '<a href="'.get_gallery_home_url().'">'.l10n('Home').'</a>'.$page['title']; 566 else 567 { 568 if ('picture'==script_basename()) 569 { 570 $used_title = l10n('Home'); 571 $used_link = duplicate_index_url(array('start'=>0)); 572 } 573 else 574 { 575 $used_title = @$page['is_homepage'] ? $conf['gallery_title'] :l10n('Home'); 576 $used_link = get_gallery_home_url(); 577 } 578 $page['section_title'] = $page['title'] = '<a href="'.$used_link.'">'.$used_title.'</a>'; 579 } 567 580 } 568 581 -
trunk/index.php
r18636 r18637 112 112 $template->set_filenames( array('index'=>'index.tpl') ); 113 113 //-------------------------------------------------------------- category title 114 $template_title = $page[' title'];114 $template_title = $page['section_title']; 115 115 if (count($page['items']) > 0) 116 116 { -
trunk/picture.php
r17345 r18637 737 737 $template->assign( 738 738 array( 739 'SECTION_TITLE' => $page[' title'],739 'SECTION_TITLE' => $page['section_title'], 740 740 'PHOTO' => $title_nb, 741 741 'IS_HOME' => ('categories'==$page['section'] and !isset($page['category']) ), -
trunk/themes/default/template/header.tpl
r13763 r18637 17 17 {/if} 18 18 {/if} 19 20 {if (isset($REVERSE) and $REVERSE and $PAGE_TITLE == l10n('Home'))} 21 <title>{$GALLERY_TITLE} | {$PAGE_TITLE}</title>{else} 22 <title>{$PAGE_TITLE} | {$GALLERY_TITLE}</title>{/if} 19 <title>{$PAGE_TITLE}{if $PAGE_TITLE!=$GALLERY_TITLE} | {$GALLERY_TITLE}{/if}</title> 23 20 <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico"> 24 21
Note: See TracChangeset
for help on using the changeset viewer.