aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-11-01 23:25:25 +0000
committerCash Costello <cash.costello@gmail.com>2009-11-01 23:25:25 +0000
commit869a5dfcdb13f80efe912c6337579e4bc00a4526 (patch)
tree9b91997b8acb68f50dd91eca7416283a56bc02d3 /lib
parente9c3929aa22606f4974a3f721c2156ec4efcf36b (diff)
downloadelgg-869a5dfcdb13f80efe912c6337579e4bc00a4526.tar.gz
elgg-869a5dfcdb13f80efe912c6337579e4bc00a4526.tar.bz2
fixed some display issues with the common lists
Diffstat (limited to 'lib')
-rw-r--r--lib/tidypics.php20
1 files changed, 19 insertions, 1 deletions
diff --git a/lib/tidypics.php b/lib/tidypics.php
index 38afc27f2..a5b713ee4 100644
--- a/lib/tidypics.php
+++ b/lib/tidypics.php
@@ -169,8 +169,26 @@
$count = tp_get_entities($type, $subtype, $owner_guid, "", $limit, $offset, true);
$entities = tp_get_entities($type, $subtype, $owner_guid, "", $limit, $offset);
- return elgg_view_entity_list($entities, $count, $offset, $limit, $fullview, $viewtypetoggle, $pagination);
+ return tp_view_entity_list($entities, $count, $offset, $limit, $fullview, $viewtypetoggle, $pagination);
+ }
+
+ function tp_view_entity_list($entities, $count, $offset, $limit, $fullview = true, $viewtypetoggle = false, $pagination = true) {
+ $context = get_context();
+
+ $html = elgg_view('tidypics/gallery',array(
+ 'entities' => $entities,
+ 'count' => $count,
+ 'offset' => $offset,
+ 'limit' => $limit,
+ 'baseurl' => $_SERVER['REQUEST_URI'],
+ 'fullview' => $fullview,
+ 'context' => $context,
+ 'viewtypetoggle' => $viewtypetoggle,
+ 'viewtype' => get_input('search_viewtype','list'),
+ 'pagination' => $pagination
+ ));
+ return $html;
}
/**