aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/photos/album
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-28 07:50:23 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-28 07:50:23 -0500
commitefdd4b6544e14355f6ae0e6151c6f828271d3913 (patch)
treeddc1de199af538df367e625ab5f3cea420e039cd /views/default/forms/photos/album
parentca5a35607dfb277cecba120ce27eece7c59f270a (diff)
downloadelgg-efdd4b6544e14355f6ae0e6151c6f828271d3913.tar.gz
elgg-efdd4b6544e14355f6ae0e6151c6f828271d3913.tar.bz2
working on album sorting
Diffstat (limited to 'views/default/forms/photos/album')
-rw-r--r--views/default/forms/photos/album/sort.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/views/default/forms/photos/album/sort.php b/views/default/forms/photos/album/sort.php
new file mode 100644
index 000000000..524112e0c
--- /dev/null
+++ b/views/default/forms/photos/album/sort.php
@@ -0,0 +1,28 @@
+<?php
+/**
+ * Album sorting view
+ */
+
+$album = $vars['album'];
+$image_guids = $album->getImageList();
+
+echo '<div>';
+echo elgg_echo('tidypics:sort:instruct');
+echo '</div>';
+
+echo '<div>';
+echo elgg_view('input/hidden', array('name' => 'guids'));
+echo elgg_view('input/hidden', array('name' => 'album_guid', 'value' => $album->guid));
+echo elgg_view('input/submit', array('value' => elgg_echo('save')));
+echo '</div>';
+
+echo '<div class="elgg-foot">';
+echo '<ul id="tidypics-sort" class="elgg-gallery">';
+foreach ($image_guids as $image_guid) {
+ $image = get_entity($image_guid);
+ $img = elgg_view('output/img', array(
+ 'src' => $image->getSrcURL(),
+ ));
+ echo "<li class=\"mam\" id=\"$image_guid\">$img</li>";
+}
+echo '</ul>';