diff options
author | mistic100 <mistic@piwigo.org> | 2011-06-09 20:34:48 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2011-06-09 20:34:48 +0000 |
commit | 7532e1a802beb74b32417cedefc9a000733c8004 (patch) | |
tree | 3f0bacd34b9921df9ddc07a88f2d9dd9109c73fb /include/functions_category.inc.php | |
parent | 87e8bd9788a561ad045d149c549ed6d995983f1b (diff) |
feature:2330 ability to hide the "new" icon for recent photos
git-svn-id: http://piwigo.org/svn/trunk@11285 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_category.inc.php')
-rw-r--r-- | include/functions_category.inc.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php index 44cefb0b5..067b7b798 100644 --- a/include/functions_category.inc.php +++ b/include/functions_category.inc.php @@ -50,7 +50,7 @@ function check_restrictions($category_id) function get_categories_menu() { - global $page, $user, $filter; + global $page, $user, $filter, $conf; $query = ' SELECT '; @@ -110,21 +110,24 @@ WHERE '.$where.' 'render_category_name', $row['name'], 'get_categories_menu' - ), + ), 'TITLE' => get_display_images_count( $row['nb_images'], $row['count_images'], $row['count_categories'], false, ' / ' - ), + ), 'URL' => make_index_url(array('category' => $row)), 'LEVEL' => substr_count($row['global_rank'], '.') + 1, - 'icon_ts' => get_icon($row['max_date_last'], $child_date_last), 'SELECTED' => $selected_category['id'] == $row['id'] ? true : false, 'IS_UPPERCAT' => $selected_category['id_uppercat'] == $row['id'] ? true : false, - ) - ); + ) + ); + if ($conf['index_new_icon']) + { + $row['icon_ts'] = get_icon($row['max_date_last'], $child_date_last); + } array_push($cats, $row); if ($row['id']==@$page['category']['id']) //save the number of subcats for later optim $page['category']['count_categories'] = $row['count_categories']; |