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
This commit is contained in:
parent
87e8bd9788
commit
7532e1a802
9 changed files with 70 additions and 8 deletions
|
|
@ -306,7 +306,6 @@ if (count($categories) > 0)
|
|||
'ID' => $category['id'],
|
||||
'TN_SRC' => $thumbnail_src_of[$category['representative_picture_id']],
|
||||
'TN_ALT' => strip_tags($category['name']),
|
||||
'icon_ts' => get_icon($category['max_date_last'], $category['is_child_date_last']),
|
||||
|
||||
'URL' => make_index_url(
|
||||
array(
|
||||
|
|
@ -328,6 +327,10 @@ if (count($categories) > 0)
|
|||
'subcatify_category_description')),
|
||||
'NAME' => $name,
|
||||
);
|
||||
if ($conf['index_new_icon'])
|
||||
{
|
||||
$row['icon_ts'] = get_icon($category['max_date_last'], $category['is_child_date_last']);
|
||||
}
|
||||
|
||||
if ($conf['display_fromto'])
|
||||
{
|
||||
|
|
|
|||
|
|
@ -110,7 +110,6 @@ foreach ($pictures as $row)
|
|||
'TN_SRC' => get_thumbnail_url($row),
|
||||
'TN_ALT' => $row['file'],
|
||||
'TN_TITLE' => get_thumbnail_title($row),
|
||||
'icon_ts' => get_icon($row['date_available']),
|
||||
'URL' => $url,
|
||||
|
||||
/* Fields for template-extension usage */
|
||||
|
|
@ -127,6 +126,10 @@ foreach ($pictures as $row)
|
|||
'FILE_HAS_HD' => ($row['has_high'] and $user['enabled_high']=='true') ?
|
||||
true:false, /* lack of include/functions_picture.inc.php */
|
||||
);
|
||||
if ($conf['index_new_icon'])
|
||||
{
|
||||
$row['icon_ts'] = get_icon($row['date_available']);
|
||||
}
|
||||
|
||||
if ($user['show_nb_hits'])
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue