Changeset 13839


Ignore:
Timestamp:
Mar 31, 2012, 12:24:07 PM (8 years ago)
Author:
mistic100
Message:

feature 2586: simpler sort order labels on gallery side

Location:
trunk
Files:
2 edited

Legend:

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

    r13240 r13839  
    220220{
    221221  global $conf, $page;
    222 
    223   return trigger_event('get_category_preferred_image_orders',
    224     array(
    225     array(l10n('Default'), '', true),
    226     array(l10n('Rating score'), 'rating_score DESC', $conf['rate']),
    227     array(l10n('Most visited'), 'hit DESC', true),
    228     array(l10n('Creation date'), 'date_creation DESC', true),
    229     array(l10n('Post date'), 'date_available DESC', true),
    230     array(l10n('File name'), 'file ASC', true),
    231     array(
    232       l10n('Rank'),
    233       'rank ASC',
    234       ('categories' == @$page['section'] and !isset($page['flat']) and !isset($page['chronology_field']) )
    235       ),
    236     array( l10n('Permissions'), 'level DESC', is_admin() )
     222   
     223  return trigger_event('get_category_preferred_image_orders', array(
     224    array(l10n('Default'),                        '',                     true),
     225    array(l10n('Photo title, A → Z'),        'name ASC',             true),
     226    array(l10n('Photo title, Z → A'),        'name DESC',            true),
     227    array(l10n('Date created, new → old'),   'date_creation DESC',   true),
     228    array(l10n('Date created, old → new'),   'date_creation ASC',    true),
     229    array(l10n('Date posted, new → old'),    'date_available DESC',  true),
     230    array(l10n('Date posted, old → new'),    'date_available ASC',   true),
     231    array(l10n('Rating score, high → low'),  'rating_score DESC',    $conf['rate']),
     232    array(l10n('Rating score, low → high'),  'rating_score ASC',     $conf['rate']),
     233    array(l10n('Visits, high → low'),        'hit DESC',             true),
     234    array(l10n('Visits, low → high'),        'hit ASC',              true),
     235    array(l10n('Permissions'),                    'level DESC',           is_admin()),
    237236    ));
    238237}
  • trunk/language/en_UK/common.lang.php

    r13683 r13839  
    389389$lang['Mobile'] = 'Mobile';
    390390$lang['Desktop'] = 'Desktop';
     391$lang['File name, A → Z'] = 'File name, A → Z';
     392$lang['File name, Z → A'] = 'File name, Z → A';
     393$lang['Photo title, A → Z'] = 'Photo title, A → Z';
     394$lang['Photo title, Z → A'] = 'Photo title, Z → A';
     395$lang['Date created, new → old'] = 'Date created, new → old';
     396$lang['Date created, old → new'] = 'Date created, old → new';
     397$lang['Date posted, new → old'] = 'Date posted, new → old';
     398$lang['Date posted, old → new'] = 'Date posted, old → new';
     399$lang['Rating score, high → low'] = 'Rating score, high → low';
     400$lang['Rating score, low → high'] = 'Rating score, low → high';
     401$lang['Visits, high → low'] = 'Visits, high → low';
     402$lang['Visits, low → high'] = 'Visits, low → high';
     403$lang['Numeric identifier, 1 → 9'] = 'Numeric identifier, 1 → 9';
     404$lang['Numeric identifier, 9 → 1'] = 'Numeric identifier, 9 → 1';
     405$lang['Manual sort order'] = 'Manual sort order';
    391406?>
Note: See TracChangeset for help on using the changeset viewer.