Issue 1521 : report trunk on branch 2.0
git-svn-id: http://piwigo.org/svn/branches/2.0@5938 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
3402ea7bf3
commit
4dccf25776
5 changed files with 20 additions and 13 deletions
|
@ -43,9 +43,6 @@
|
||||||
// | misc |
|
// | misc |
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
|
|
||||||
// home_page : relative url of your homepage. Empty by default. It points to the index of the gallery.
|
|
||||||
$conf['home_page'] = '';
|
|
||||||
|
|
||||||
// order_by : how to change the order of display for images in a category ?
|
// order_by : how to change the order of display for images in a category ?
|
||||||
//
|
//
|
||||||
// There are several fields that can order the display :
|
// There are several fields that can order the display :
|
||||||
|
@ -329,6 +326,12 @@ $conf['double_password_type_in_admin'] = 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.
|
||||||
|
// We suggest avoid the names "index.htm" or "index.html" if you set $conf['php_extension_in_urls'] to false.
|
||||||
|
$conf['home_page'] = '';
|
||||||
|
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
// | metadata |
|
// | metadata |
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
|
|
|
@ -239,7 +239,8 @@ function get_cat_display_name($cat_informations,
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
$output = '<a href="'.PHPWG_ROOT_PATH.$conf['home_page'].'">'.l10n('no_category').'</a>';
|
$output = '';
|
||||||
|
$is_first = true;
|
||||||
|
|
||||||
foreach ($cat_informations as $cat)
|
foreach ($cat_informations as $cat)
|
||||||
{
|
{
|
||||||
|
@ -253,7 +254,14 @@ function get_cat_display_name($cat_informations,
|
||||||
'get_cat_display_name'
|
'get_cat_display_name'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ($is_first)
|
||||||
|
{
|
||||||
|
$is_first=false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
$output.= $conf['level_separator'];
|
$output.= $conf['level_separator'];
|
||||||
|
}
|
||||||
|
|
||||||
if ( !isset($url) )
|
if ( !isset($url) )
|
||||||
{
|
{
|
||||||
|
|
|
@ -220,6 +220,8 @@ $forbidden = get_sql_condition_FandF(
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
if ('categories' == $page['section'])
|
if ('categories' == $page['section'])
|
||||||
{
|
{
|
||||||
|
$page['title'] = '<a href="'.get_absolute_root_url().$conf['home_page'].'">'.l10n('home').'</a>';
|
||||||
|
|
||||||
if (isset($page['category']))
|
if (isset($page['category']))
|
||||||
{
|
{
|
||||||
$page = array_merge(
|
$page = array_merge(
|
||||||
|
@ -232,14 +234,10 @@ if ('categories' == $page['section'])
|
||||||
'main_page_category_description'
|
'main_page_category_description'
|
||||||
),
|
),
|
||||||
'title' =>
|
'title' =>
|
||||||
get_cat_display_name($page['category']['upper_names'], '', false),
|
$page['title'].$conf['level_separator'].get_cat_display_name($page['category']['upper_names'], '', false),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
$page['title'] = '<a href="'.PHPWG_ROOT_PATH.$conf['home_page'].'">'.l10n('no_category').'</a>';
|
|
||||||
}
|
|
||||||
|
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
|
|
|
@ -692,7 +692,6 @@ $template->assign(
|
||||||
|
|
||||||
'LEVEL_SEPARATOR' => $conf['level_separator'],
|
'LEVEL_SEPARATOR' => $conf['level_separator'],
|
||||||
|
|
||||||
'U_HOME' => make_index_url(),
|
|
||||||
'U_UP' => $url_up,
|
'U_UP' => $url_up,
|
||||||
'U_METADATA' => $url_metadata,
|
'U_METADATA' => $url_metadata,
|
||||||
)
|
)
|
||||||
|
|
|
@ -29,8 +29,7 @@
|
||||||
|
|
||||||
<div id="imageHeaderBar">
|
<div id="imageHeaderBar">
|
||||||
<div class="browsePath">
|
<div class="browsePath">
|
||||||
<a href="{$U_HOME}" rel="home">{'home'|@translate}</a>
|
{$SECTION_TITLE}
|
||||||
{if !$IS_HOME}{$LEVEL_SEPARATOR}{$SECTION_TITLE}{/if}
|
|
||||||
{$LEVEL_SEPARATOR}{$current.TITLE}
|
{$LEVEL_SEPARATOR}{$current.TITLE}
|
||||||
</div>
|
</div>
|
||||||
<div class="imageNumber">{$PHOTO}</div>
|
<div class="imageNumber">{$PHOTO}</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue