mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
Add DateTime on administration introduction page (Useful to help user on the forum, ...)
Move history configuration in a other tab. Use translation on picture hint (Kb). Show hint oh the menu text (not only on counter) git-svn-id: http://piwigo.org/svn/trunk@1884 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -256,7 +256,7 @@ if (count($categories) > 0)
|
||||
$category['count_images'],
|
||||
$category['count_categories'],
|
||||
true,
|
||||
'; '
|
||||
' / '
|
||||
),
|
||||
|
||||
'U_IMG_LINK' => make_index_url(
|
||||
|
||||
@@ -840,7 +840,7 @@ function get_thumbnail_title($element_info)
|
||||
|
||||
if (!empty($element_info['filesize']))
|
||||
{
|
||||
$thumbnail_title .= ' : '.$element_info['filesize'].' KB';
|
||||
$thumbnail_title .= ' : '.l10n_dec('%d Kb', '%d Kb', $element_info['filesize']);
|
||||
}
|
||||
|
||||
return $thumbnail_title;
|
||||
|
||||
@@ -428,13 +428,22 @@ function get_html_menu_category($categories, $selected_category)
|
||||
)
|
||||
);
|
||||
|
||||
$title = get_display_images_count
|
||||
(
|
||||
$category['nb_images'],
|
||||
$category['count_images'],
|
||||
$category['count_categories'],
|
||||
false,
|
||||
' / '
|
||||
);
|
||||
|
||||
$menu.= "\n".'<a href="'.$url.'"';
|
||||
if ($selected_category!=null
|
||||
and $category['id'] == $selected_category['id_uppercat'])
|
||||
{
|
||||
$menu.= ' rel="up"';
|
||||
}
|
||||
$menu.= '>'.$category['name'].'</a>';
|
||||
$menu.= ' title=" '.$title.'">'.$category['name'].'</a>';
|
||||
|
||||
if ( $category['count_images']>0 )
|
||||
{// at least one direct or indirect image
|
||||
@@ -442,15 +451,7 @@ function get_html_menu_category($categories, $selected_category)
|
||||
// at least one image in this category -> class menuInfoCat
|
||||
$menu.= ($category['nb_images'] > 0 ? "menuInfoCat"
|
||||
: "menuInfoCatByChild").'"';
|
||||
$menu.= ' title="';
|
||||
$menu.= ' '.get_display_images_count
|
||||
(
|
||||
$category['nb_images'],
|
||||
$category['count_images'],
|
||||
$category['count_categories'],
|
||||
false,
|
||||
' / '
|
||||
).'">';
|
||||
$menu.= ' title=" '.$title.'">';
|
||||
// show total number of images
|
||||
$menu.= '['.$category['count_images'].']';
|
||||
$menu.= '</span>';
|
||||
|
||||
Reference in New Issue
Block a user