From 182f2b93d9703ffa8c1d0bbe5a178dc0f3e2b2ec Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 31 Mar 2012 10:24:07 +0000 Subject: feature 2586: simpler sort order labels on gallery side git-svn-id: http://piwigo.org/svn/trunk@13839 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_category.inc.php | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'include/functions_category.inc.php') diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php index 9685d225b..ec61b5c1a 100644 --- a/include/functions_category.inc.php +++ b/include/functions_category.inc.php @@ -219,21 +219,20 @@ SELECT * function get_category_preferred_image_orders() { global $conf, $page; - - return trigger_event('get_category_preferred_image_orders', - array( - array(l10n('Default'), '', true), - array(l10n('Rating score'), 'rating_score DESC', $conf['rate']), - array(l10n('Most visited'), 'hit DESC', true), - array(l10n('Creation date'), 'date_creation DESC', true), - array(l10n('Post date'), 'date_available DESC', true), - array(l10n('File name'), 'file ASC', true), - array( - l10n('Rank'), - 'rank ASC', - ('categories' == @$page['section'] and !isset($page['flat']) and !isset($page['chronology_field']) ) - ), - array( l10n('Permissions'), 'level DESC', is_admin() ) + + return trigger_event('get_category_preferred_image_orders', array( + array(l10n('Default'), '', true), + array(l10n('Photo title, A → Z'), 'name ASC', true), + array(l10n('Photo title, Z → A'), 'name DESC', true), + array(l10n('Date created, new → old'), 'date_creation DESC', true), + array(l10n('Date created, old → new'), 'date_creation ASC', true), + array(l10n('Date posted, new → old'), 'date_available DESC', true), + array(l10n('Date posted, old → new'), 'date_available ASC', true), + array(l10n('Rating score, high → low'), 'rating_score DESC', $conf['rate']), + array(l10n('Rating score, low → high'), 'rating_score ASC', $conf['rate']), + array(l10n('Visits, high → low'), 'hit DESC', true), + array(l10n('Visits, low → high'), 'hit ASC', true), + array(l10n('Permissions'), 'level DESC', is_admin()), )); } -- cgit v1.2.3