Ignore:
Timestamp:
May 28, 2010, 9:55:03 PM (14 years ago)
Author:
rvelices
Message:
  • merged the linkroot integration with the existing gallery_url (unique $confgallery_url used for RSS, mail homepage root in the browse path)
  • added an option $confdebug_mail - if set all outgoing mails are saved into local_data_dir
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/include/section_init.inc.php

    r6368 r6410  
    220220if ('categories' == $page['section'])
    221221{
    222   $page['title'] = '<a href="'.get_absolute_root_url().$conf['home_page'].'">'.l10n('Home').'</a>';
    223 
    224222  if (isset($page['category']))
    225223  {
     
    233231              'main_page_category_description'
    234232            ),
    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
    240239
    241240  if
     
    337336      $page,
    338337      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(),
    340339        'items' => $items,
    341340        )
     
    359358      array(
    360359        '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)).'">'
    362361                  .l10n('Search results').'</a>',
    363362        )
     
    374373      $page,
    375374      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      )
    378377    );
    379378
     
    454453      $page,
    455454      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)).'">'
    457456                  .l10n('Recent pictures').'</a>',
    458457        'items' => array_from_query($query, 'id'),
     
    468467      $page,
    469468      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'),
    471470        )
    472471      );
     
    492491      $page,
    493492      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)).'">'
    495494                  .$conf['top_number'].' '.l10n('Most visited').'</a>',
    496495        'items' => array_from_query($query, 'id'),
     
    518517      $page,
    519518      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)).'">'
    521520                  .$conf['top_number'].' '.l10n('Best rated').'</a>',
    522521        'items' => array_from_query($query, 'id'),
     
    541540      $page,
    542541      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)).'">'
    544543                    .l10n('Random pictures').'</a>',
    545544        'items' => array_from_query($query, 'id'),
     
    557556  include_once( PHPWG_ROOT_PATH.'include/functions_calendar.inc.php' );
    558557  initialize_calendar();
     558}
     559
     560// title update
     561if (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'];
    559568}
    560569
Note: See TracChangeset for help on using the changeset viewer.