From 869a5dfcdb13f80efe912c6337579e4bc00a4526 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 1 Nov 2009 23:25:25 +0000 Subject: fixed some display issues with the common lists --- views/default/tidypics/gallery.php | 64 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 views/default/tidypics/gallery.php (limited to 'views/default') diff --git a/views/default/tidypics/gallery.php b/views/default/tidypics/gallery.php new file mode 100644 index 000000000..29c706bb1 --- /dev/null +++ b/views/default/tidypics/gallery.php @@ -0,0 +1,64 @@ + 0 && $viewtypetoggle) { + $nav .= elgg_view('navigation/viewtype', array( + 'baseurl' => $baseurl, + 'offset' => $offset, + 'count' => $count, + 'viewtype' => $viewtype, + )); +} + +if ($pagination) { + $nav .= elgg_view('navigation/pagination',array( + 'baseurl' => $baseurl, + 'offset' => $offset, + 'count' => $count, + 'limit' => $limit, + )); +} + +$html .= $nav; +if ($viewtype == 'list') { + if (is_array($entities) && sizeof($entities) > 0) { + foreach($entities as $entity) { + $html .= elgg_view_entity($entity, $fullview); + } + } +} else { + if (is_array($entities) && sizeof($entities) > 0) { + $html .= elgg_view('entities/gallery', array('entities' => $entities)); + } +} + +$html .= '
'; + +if ($count) { + $html .= $nav; +} + +echo $html; \ No newline at end of file -- cgit v1.2.3