mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-20 08:33:03 +02:00
feature 169 added: ability to manually sort images inside a category. A
dedicated screen let the administrator sort the images (pur HTML, no JavaScript yet). The "rank" sort order is available only for a category without flat mode. New database column image_category.rank. git-svn-id: http://piwigo.org/svn/trunk@2517 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -274,8 +274,13 @@ if ('private' == $category['status'])
|
||||
// manage category elements link
|
||||
if ($category['has_images'])
|
||||
{
|
||||
$template->assign( 'U_MANAGE_ELEMENTS',
|
||||
$base_url.'element_set&cat='.$category['id']
|
||||
$template->assign(
|
||||
'U_MANAGE_ELEMENTS',
|
||||
$base_url.'element_set&cat='.$category['id']
|
||||
);
|
||||
$template->assign(
|
||||
'U_MANAGE_RANKS',
|
||||
$base_url.'element_set_ranks&cat_id='.$category['id']
|
||||
);
|
||||
}
|
||||
|
||||
@@ -313,6 +318,7 @@ $sort_fields = array(
|
||||
'hit' => l10n('most_visited_cat'),
|
||||
'file' => l10n('File name'),
|
||||
'id' => 'Id',
|
||||
'rank' => l10n('Rank'),
|
||||
);
|
||||
|
||||
$sort_directions = array(
|
||||
|
||||
Reference in New Issue
Block a user