Changeset 6410 for branches/2.1/include/section_init.inc.php
- Timestamp:
- May 28, 2010, 9:55:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/include/section_init.inc.php
r6368 r6410 220 220 if ('categories' == $page['section']) 221 221 { 222 $page['title'] = '<a href="'.get_absolute_root_url().$conf['home_page'].'">'.l10n('Home').'</a>';223 224 222 if (isset($page['category'])) 225 223 { … … 233 231 'main_page_category_description' 234 232 ), 235 'title' => 236 $page['title'].$conf['level_separator'].get_cat_display_name($page['category']['upper_names'], '', false), 237 ) 238 ); 239 } 233 'title' => get_cat_display_name($page['category']['upper_names'], '', false), 234 ) 235 ); 236 } 237 else 238 $page['title'] = ''; // will be set later 240 239 241 240 if … … 337 336 $page, 338 337 array( 339 'title' => '<a href="'.get_absolute_root_url().$conf['home_page'].'">'.l10n('Home').'</a>'.$conf['level_separator'].get_tags_content_title(),338 'title' => get_tags_content_title(), 340 339 'items' => $items, 341 340 ) … … 359 358 array( 360 359 'items' => $search_result['items'], 361 'title' => '<a href="'. get_absolute_root_url().$conf['home_page'].'">'.l10n('Home').'</a>'.$conf['level_separator'].'<a href="'.duplicate_index_url(array('start'=>0)).'">'360 'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">' 362 361 .l10n('Search results').'</a>', 363 362 ) … … 374 373 $page, 375 374 array( 376 'title' => '<a href="'.get_absolute_root_url().$conf['home_page'].'">'.l10n('Home').'</a>'.$conf['level_separator'].l10n('Favorites')377 375 'title' => l10n('Favorites') 376 ) 378 377 ); 379 378 … … 454 453 $page, 455 454 array( 456 'title' => '<a href="'. get_absolute_root_url().$conf['home_page'].'">'.l10n('Home').'</a>'.$conf['level_separator'].'<a href="'.duplicate_index_url(array('start'=>0)).'">'455 'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">' 457 456 .l10n('Recent pictures').'</a>', 458 457 'items' => array_from_query($query, 'id'), … … 468 467 $page, 469 468 array( 470 'title' => '<a href="'.get_absolute_root_url().$conf['home_page'].'">'.l10n('Home').'</a>'.$conf['level_separator'].l10n('Recent categories'),469 'title' => l10n('Recent categories'), 471 470 ) 472 471 ); … … 492 491 $page, 493 492 array( 494 'title' => '<a href="'. get_absolute_root_url().$conf['home_page'].'">'.l10n('Home').'</a>'.$conf['level_separator'].'<a href="'.duplicate_index_url(array('start'=>0)).'">'493 'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">' 495 494 .$conf['top_number'].' '.l10n('Most visited').'</a>', 496 495 'items' => array_from_query($query, 'id'), … … 518 517 $page, 519 518 array( 520 'title' => '<a href="'. get_absolute_root_url().$conf['home_page'].'">'.l10n('Home').'</a>'.$conf['level_separator'].'<a href="'.duplicate_index_url(array('start'=>0)).'">'519 'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">' 521 520 .$conf['top_number'].' '.l10n('Best rated').'</a>', 522 521 'items' => array_from_query($query, 'id'), … … 541 540 $page, 542 541 array( 543 'title' => '<a href="'. get_absolute_root_url().$conf['home_page'].'">'.l10n('Home').'</a>'.$conf['level_separator'].'<a href="'.duplicate_index_url(array('start'=>0)).'">'542 'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">' 544 543 .l10n('Random pictures').'</a>', 545 544 'items' => array_from_query($query, 'id'), … … 557 556 include_once( PHPWG_ROOT_PATH.'include/functions_calendar.inc.php' ); 558 557 initialize_calendar(); 558 } 559 560 // title update 561 if (isset($page['title'])) 562 { 563 if (!empty($page['title'])) 564 { 565 $page['title'] = $conf['level_separator'].$page['title']; 566 } 567 $page['title'] = '<a href="'.get_gallery_home_url().'">'.l10n('Home').'</a>'.$page['title']; 559 568 } 560 569
Note: See TracChangeset
for help on using the changeset viewer.