From 61566a3689a08460031d28925b7285b4a909a0ef Mon Sep 17 00:00:00 2001 From: Sem Date: Sat, 28 Jul 2012 23:35:01 +0200 Subject: Moved 'sort' link to title menu. --- pages/photos/album/view.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pages') diff --git a/pages/photos/album/view.php b/pages/photos/album/view.php index 100cc44c6..6e111ab98 100644 --- a/pages/photos/album/view.php +++ b/pages/photos/album/view.php @@ -42,6 +42,17 @@ if ($album->getContainerEntity()->canWriteToContainer()) { )); } +// only show sort button if there are images +if ($album->canEdit() && $album->getSize() > 0) { + elgg_register_menu_item('title', array( + 'name' => 'sort', + 'href' => "photos/sort/" . $album->getGUID(), + 'text' => elgg_echo('album:sort'), + 'link_class' => 'elgg-button elgg-button-action', + 'priority' => 200, + )); +} + $body = elgg_view_layout('content', array( 'filter' => false, 'content' => $content, -- cgit v1.2.3