aboutsummaryrefslogtreecommitdiff
path: root/views/default/search/gallery.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/search/gallery.php')
-rw-r--r--views/default/search/gallery.php71
1 files changed, 33 insertions, 38 deletions
diff --git a/views/default/search/gallery.php b/views/default/search/gallery.php
index 366cd713b..52c4d0b92 100644
--- a/views/default/search/gallery.php
+++ b/views/default/search/gallery.php
@@ -1,49 +1,44 @@
<?php
+/**
+ * Elgg gallery view
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
+
+$entities = $vars['entities'];
+if (is_array($entities) && sizeof($entities) > 0) {
- /**
- * Elgg gallery view
- *
- * @package Elgg
- * @subpackage Core
-
- * @author Curverider Ltd
-
- * @link http://elgg.org/
- */
-
- $entities = $vars['entities'];
- if (is_array($entities) && sizeof($entities) > 0) {
-
?>
- <table class="search_gallery">
+<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 > 3) {
+ echo "</tr>";
$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 > 3) {
- echo "</tr>";
- $col = 0;
- }
- }
- if ($col > 0) echo "</tr>";
-
+ }
+ }
+ if ($col > 0) echo "</tr>";
+
?>
- </table>
+</table>
<?php
-
- }
-
-?> \ No newline at end of file
+
+} \ No newline at end of file