Changeset 11285 for trunk/include


Ignore:
Timestamp:
Jun 9, 2011, 10:34:48 PM (13 years ago)
Author:
mistic100
Message:

feature:2330 ability to hide the "new" icon for recent photos

Location:
trunk/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/category_cats.inc.php

    r9365 r11285  
    307307          'TN_SRC'   => $thumbnail_src_of[$category['representative_picture_id']],
    308308          'TN_ALT'   => strip_tags($category['name']),
    309           'icon_ts'  => get_icon($category['max_date_last'], $category['is_child_date_last']),
    310309
    311310          'URL'   => make_index_url(
     
    329328          'NAME'  => $name,
    330329        );
     330    if ($conf['index_new_icon'])
     331    {
     332      $row['icon_ts'] = get_icon($category['max_date_last'], $category['is_child_date_last']);
     333    }
    331334
    332335    if ($conf['display_fromto'])
  • trunk/include/category_default.inc.php

    r8728 r11285  
    111111      'TN_ALT'    => $row['file'],
    112112      'TN_TITLE'  => get_thumbnail_title($row),
    113       'icon_ts'   => get_icon($row['date_available']),
    114113      'URL'       => $url,
    115114
     
    128127                true:false, /* lack of include/functions_picture.inc.php */
    129128    );
     129  if ($conf['index_new_icon'])
     130  {
     131    $row['icon_ts'] = get_icon($row['date_available']);
     132  }
    130133
    131134  if ($user['show_nb_hits'])
  • trunk/include/functions_category.inc.php

    r11155 r11285  
    5151function get_categories_menu()
    5252{
    53   global $page, $user, $filter;
     53  global $page, $user, $filter, $conf;
    5454
    5555  $query = '
     
    111111          $row['name'],
    112112          'get_categories_menu'
    113         ),
     113          ),
    114114        'TITLE' => get_display_images_count(
    115115          $row['nb_images'],
     
    118118          false,
    119119          ' / '
    120         ),
     120          ),
    121121        'URL' => make_index_url(array('category' => $row)),
    122122        'LEVEL' => substr_count($row['global_rank'], '.') + 1,
    123         'icon_ts' => get_icon($row['max_date_last'], $child_date_last),
    124123        'SELECTED' => $selected_category['id'] == $row['id'] ? true : false,
    125124        'IS_UPPERCAT' => $selected_category['id_uppercat'] == $row['id'] ? true : false,
    126       )
    127     );
     125        )
     126      );
     127    if ($conf['index_new_icon'])
     128    {
     129      $row['icon_ts'] = get_icon($row['max_date_last'], $child_date_last);
     130    }
    128131    array_push($cats, $row);
    129132    if ($row['id']==@$page['category']['id']) //save the number of subcats for later optim
Note: See TracChangeset for help on using the changeset viewer.