diff options
author | Sem <sembrestels@riseup.net> | 2012-07-29 04:50:38 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-07-29 04:50:38 +0200 |
commit | 71e6db3c3dff9c9ec7e8109fc990f0d960273c9f (patch) | |
tree | d205027608f02d02b9ea0a5f21b0b022c0caa917 /pages/photos | |
parent | f900e1e3cd0384aade0594ceffb6e4f51ce71415 (diff) | |
parent | 61566a3689a08460031d28925b7285b4a909a0ef (diff) | |
download | elgg-71e6db3c3dff9c9ec7e8109fc990f0d960273c9f.tar.gz elgg-71e6db3c3dff9c9ec7e8109fc990f0d960273c9f.tar.bz2 |
Merge branch 'sort-as-title-button' of git://github.com/sembrestels/Tidypics
Diffstat (limited to 'pages/photos')
-rw-r--r-- | pages/photos/album/view.php | 11 |
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, |