mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 12:19:57 +03:00
Issue 1521 : Integration of LinkRoot plugin in Piwigo core
git-svn-id: http://piwigo.org/svn/trunk@5441 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
36a4b9aff5
commit
72bdf727ee
3 changed files with 11 additions and 13 deletions
|
@ -335,6 +335,11 @@ $conf['insensitive_case_logon'] = false;
|
||||||
// 'filename'
|
// 'filename'
|
||||||
$conf['uniqueness_mode'] = 'md5sum';
|
$conf['uniqueness_mode'] = 'md5sum';
|
||||||
|
|
||||||
|
// home_page : relative url of the homepage. Empty by default.
|
||||||
|
// It points to the index of the gallery.
|
||||||
|
// This parameter is used if home page is not index.php of the gallery.
|
||||||
|
$conf['home_page'] = '';
|
||||||
|
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
// | metadata |
|
// | metadata |
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
|
|
|
@ -40,8 +40,8 @@ function get_cat_display_name($cat_informations,
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
$output = '';
|
$output = '<a href="'.PHPWG_ROOT_PATH.$conf['home_page'].'">'.l10n('Home').'</a>';
|
||||||
$is_first = true;
|
|
||||||
foreach ($cat_informations as $cat)
|
foreach ($cat_informations as $cat)
|
||||||
{
|
{
|
||||||
is_array($cat) or trigger_error(
|
is_array($cat) or trigger_error(
|
||||||
|
@ -54,14 +54,7 @@ function get_cat_display_name($cat_informations,
|
||||||
'get_cat_display_name'
|
'get_cat_display_name'
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($is_first)
|
$output.= $conf['level_separator'];
|
||||||
{
|
|
||||||
$is_first = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$output.= $conf['level_separator'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( !isset($url) )
|
if ( !isset($url) )
|
||||||
{
|
{
|
||||||
|
@ -517,4 +510,4 @@ function register_default_menubar_blocks( $menu_ref_arr )
|
||||||
$menu->register_block( new RegisteredBlock( 'mbIdentification', 'Identification', 'piwigo') );
|
$menu->register_block( new RegisteredBlock( 'mbIdentification', 'Identification', 'piwigo') );
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -237,7 +237,7 @@ if ('categories' == $page['section'])
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$page['title'] = l10n('Home');
|
$page['title'] = '<a href="'.PHPWG_ROOT_PATH.$conf['home_page'].'">'.l10n('Home').'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if
|
if
|
||||||
|
@ -625,4 +625,4 @@ if ( 'categories'==$page['section'] and isset($page['category']) )
|
||||||
}
|
}
|
||||||
|
|
||||||
trigger_action('loc_end_section_init');
|
trigger_action('loc_end_section_init');
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue