Changeset 5441


Ignore:
Timestamp:
03/29/10 10:02:44 (10 years ago)
Author:
laurent.duretz
Message:

Issue 1521 : Integration of LinkRoot plugin in Piwigo core

Location:
trunk/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/config_default.inc.php

    r5306 r5441  
    335335// 'filename' 
    336336$conf['uniqueness_mode'] = 'md5sum'; 
     337 
     338// home_page : relative url of the homepage. Empty by default. 
     339// It points to the index of the gallery. 
     340// This parameter is used if home page is not index.php of the gallery. 
     341$conf['home_page'] = ''; 
    337342 
    338343// +-----------------------------------------------------------------------+ 
  • trunk/include/functions_html.inc.php

    r5196 r5441  
    4141  global $conf; 
    4242 
    43   $output = ''; 
    44   $is_first = true; 
     43  $output = '<a href="'.PHPWG_ROOT_PATH.$conf['home_page'].'">'.l10n('Home').'</a>'; 
     44 
    4545  foreach ($cat_informations as $cat) 
    4646  { 
     
    5555      ); 
    5656 
    57     if ($is_first) 
    58     { 
    59       $is_first = false; 
    60     } 
    61     else 
    62     { 
    63       $output.= $conf['level_separator']; 
    64     } 
     57    $output.= $conf['level_separator']; 
    6558 
    6659    if ( !isset($url) ) 
  • trunk/include/section_init.inc.php

    r5196 r5441  
    238238  else 
    239239  { 
    240     $page['title'] = l10n('Home'); 
     240    $page['title'] = '<a href="'.PHPWG_ROOT_PATH.$conf['home_page'].'">'.l10n('Home').'</a>'; 
    241241  } 
    242242 
Note: See TracChangeset for help on using the changeset viewer.