aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/objects/gallery.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-18 18:37:32 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-18 18:37:32 +0000
commitdd09373e0cefa8d33d0e9faa741593802d53c2a7 (patch)
treeebf986bfabd17bfd5adb3b560e762b83f0a8b825 /views/default/layout/objects/gallery.php
parent067c53f2575b96573b3c6966747bb0426669ae02 (diff)
downloadelgg-dd09373e0cefa8d33d0e9faa741593802d53c2a7.tar.gz
elgg-dd09373e0cefa8d33d0e9faa741593802d53c2a7.tar.bz2
Refs #2950: layout/objects => page/components
git-svn-id: http://code.elgg.org/elgg/trunk@8288 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layout/objects/gallery.php')
-rw-r--r--views/default/layout/objects/gallery.php75
1 files changed, 0 insertions, 75 deletions
diff --git a/views/default/layout/objects/gallery.php b/views/default/layout/objects/gallery.php
deleted file mode 100644
index f57cc99ba..000000000
--- a/views/default/layout/objects/gallery.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-/**
- * Gallery view
- *
- * @uses $vars['items']
- *
- * @todo not complete - number of columns
- */
-
-$items = $vars['items'];
-if (!is_array($items) && sizeof($items) == 0) {
- return true;
-}
-
-elgg_push_context('gallery');
-
-$offset = $vars['offset'];
-$limit = $vars['limit'];
-$count = $vars['count'];
-$pagination = elgg_extract('pagination', $vars, true);
-$full_view = elgg_extract('full_view', $vars, false);
-$offset_key = elgg_extract('offset_key', $vars, 'offset');
-$position = elgg_extract('position', $vars, 'after');
-
-$num_columns = 4;
-
-
-if ($pagination && $count) {
- $nav .= elgg_view('navigation/pagination', array(
- 'offset' => $offset,
- 'count' => $count,
- 'limit' => $limit,
- 'offset_key' => $offset_key,
- ));
-}
-
-if ($position == 'before' || $position == 'both') {
- echo $nav;
-}
-
-?>
-<table class="elgg-gallery">
-<?php
-
-$col = 0;
-foreach ($items as $item) {
- if ($col == 0) {
- echo '<tr>';
- }
- $col++;
-
- echo '<td>';
- echo elgg_view_list_item($item, $full_view, $vars);
- echo "</td>";
-
- if ($col == $num_columns) {
- echo '</tr>';
- $col = 0;
- }
-}
-
-if ($col > 0) {
- echo '</tr>';
-}
-
-?>
-
-</table>
-
-<?php
-if ($position == 'after' || $position == 'both') {
- echo $nav;
-}
-
-elgg_pop_context();