Changeset 11285


Ignore:
Timestamp:
06/09/11 22:34:48 (8 years ago)
Author:
mistic100
Message:

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

Location:
trunk
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r11279 r11285  
    7979    'index_created_date_icon', 
    8080    'index_slideshow_icon', 
     81    'index_new_icon', 
    8182    'picture_metadata_icon', 
    8283    'picture_slideshow_icon', 
  • trunk/admin/themes/default/template/configuration.tpl

    r11279 r11285  
    240240        <input type="checkbox" name="menubar_filter_icon" {if ($display.menubar_filter_icon)}checked="checked"{/if}> 
    241241      </label> 
     242    </li>     
     243     
     244    <li> 
     245      <label> 
     246        <span class="property">{'Activate icon "new" next to albums and pictures'|@translate}</span> 
     247        <input type="checkbox" name="index_new_icon" {if ($display.index_new_icon)}checked="checked"{/if}> 
     248      </label> 
    242249    </li> 
    243250 
  • 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 
  • trunk/install/config.sql

    r11279 r11285  
    3737INSERT INTO piwigo_config (param,value,comment) VALUES ('index_created_date_icon','true','Display calendar by creation date icon'); 
    3838INSERT INTO piwigo_config (param,value,comment) VALUES ('index_slideshow_icon','true','Display slideshow icon'); 
     39INSERT INTO piwigo_config (param,value,comment) VALUES ('index_new_icon','true','Display new icons next albums and pictures'); 
    3940INSERT INTO piwigo_config (param,value,comment) VALUES ('picture_metadata_icon','true','Display metadata icon on picture page'); 
    4041INSERT INTO piwigo_config (param,value,comment) VALUES ('picture_slideshow_icon','true','Display slideshow icon on picture page'); 
  • trunk/language/en_UK/admin.lang.php

    r11279 r11285  
    9999$lang['Activate Navigation Thumbnails'] = 'Activate navigation thumbnails'; 
    100100$lang['Activate'] = "Activate"; 
     101$lang['Activate icon "new" next to albums and pictures'] = 'Activate icon "new" next to albums and pictures'; 
    101102$lang['Active Languages'] = 'Active Languages'; 
    102103$lang['Active Plugins'] = 'Active Plugins'; 
  • trunk/language/fr_FR/admin.lang.php

    r11279 r11285  
    853853$lang['As default order'] = "Comme l'ordre par défaut"; 
    854854$lang['Custom'] = "Personnalisé"; 
     855$lang['Activate icon "new" next to albums and pictures'] = 'Afficher l\'icône "nouveau" à côté des albums et des photos'; 
    855856?> 
Note: See TracChangeset for help on using the changeset viewer.