diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-01 09:30:21 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-01 09:30:21 +0000 |
commit | 871b2cc9de5ab5ad90ddbaeed806633f59d78808 (patch) | |
tree | 5b971d0949388590abd5f31d0bc446cf8b7704fd /views/default/search | |
parent | c5853b49a6d0096414ec8e0f7696492daabf8f65 (diff) | |
download | elgg-871b2cc9de5ab5ad90ddbaeed806633f59d78808.tar.gz elgg-871b2cc9de5ab5ad90ddbaeed806633f59d78808.tar.bz2 |
Moved navigation/gallery to search/gallery, which makes more sense.
git-svn-id: https://code.elgg.org/elgg/trunk@1217 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/search')
-rw-r--r-- | views/default/search/gallery.php | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/views/default/search/gallery.php b/views/default/search/gallery.php new file mode 100644 index 000000000..4c099e603 --- /dev/null +++ b/views/default/search/gallery.php @@ -0,0 +1,49 @@ +<?php
+
+ /**
+ * Elgg gallery view
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ $entities = $vars['entities'];
+ if (is_array($entities) && sizeof($entities) > 0) {
+
+?>
+
+ <table class="search_gallery">
+
+<?php
+
+ $col = 0;
+ foreach($entities as $entity) {
+ if ($col == 0) {
+
+ echo "<tr>";
+
+ }
+ echo "<td class=\"search_gallery_item\">";
+ echo elgg_view_entity($entity);
+ echo "</td>";
+ $col++;
+ if ($col > 4) {
+ echo "</tr>";
+ $col = 0;
+ }
+ }
+ if ($col > 0) echo "</tr>";
+
+?>
+
+ </table>
+
+<?php
+
+ }
+
+?>
\ No newline at end of file |