aboutsummaryrefslogtreecommitdiff
path: root/pages/photos
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-07-28 23:35:01 +0200
committerSem <sembrestels@riseup.net>2012-07-28 23:35:01 +0200
commit61566a3689a08460031d28925b7285b4a909a0ef (patch)
tree57000ebbe7637d071ce04d964b699aa523929aa3 /pages/photos
parent534c8b15a7c11035cf918e983c82efa3bea567a9 (diff)
downloadelgg-61566a3689a08460031d28925b7285b4a909a0ef.tar.gz
elgg-61566a3689a08460031d28925b7285b4a909a0ef.tar.bz2
Moved 'sort' link to title menu.
Diffstat (limited to 'pages/photos')
-rw-r--r--pages/photos/album/view.php11
1 files changed, 11 insertions, 0 deletions
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,