Ignore:
Timestamp:
Feb 28, 2006, 5:28:06 AM (18 years ago)
Author:
rvelices
Message:

calendar improvements: week on weekly list starts on Monday,
ability to show grayed months/weeks/days (without any picture in it),
added icons for created/posted fields
language uniformization

calendar fixes: correct number of pictures in calendar view,
code simplification (I hope so)

File:
1 edited

Legend:

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

    r1052 r1059  
    2929 * Provides functions to handle categories.
    3030 *
    31  * 
     31 *
    3232 */
    3333
     
    6868{
    6969  global $page,$user;
    70  
     70
    7171  $infos = array('');
    72  
     72
    7373  $query = '
    7474SELECT name,id,date_last,nb_images,global_rank
     
    120120;';
    121121  list($total) = mysql_fetch_array(pwg_query($query));
    122  
     122
    123123  return $total;
    124124}
     
    136136 *  - id_uppercat
    137137 *  - site_id
    138  *  - 
     138 *  -
    139139 *
    140140 * @param int category id
     
    146146                 ,'dir','date_last','uploadable','status','visible'
    147147                 ,'representative_picture_id','uppercats','commentable');
    148  
     148
    149149  $query = '
    150150SELECT '.implode(',', $infos).'
     
    197197    $cat['name'][$cat_id] = $names[$cat_id];
    198198  }
    199  
     199
    200200  return $cat;
    201201}
     
    275275  global $conf;
    276276  return array(
    277     array('Default', '', true),
     277    array(l10n('default_sort'), '', true),
    278278    array(l10n('Average rate'), 'average_rate DESC', $conf['rate']),
    279279    array(l10n('most_visited_cat'), 'hit DESC', true),
    280280    array(l10n('Creation date'), 'date_creation DESC', true),
    281     array(l10n('Availability date'), 'date_available DESC', true),
     281    array(l10n('Post date'), 'date_available DESC', true),
    282282    array(l10n('File name'), 'file ASC', true)
    283283  );
     
    311311      $option.= '- '.$category['name'];
    312312    }
    313    
     313
    314314    $template->assign_block_vars(
    315315      $blockname,
Note: See TracChangeset for help on using the changeset viewer.