From a11aec8c7b88e78581a5550c059c2cfab099a02d Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Thu, 13 Oct 2011 19:02:39 -0700 Subject: Fixes #3746. Moved the categories page handler script. Updated the layout call. --- mod/categories/pages/categories/listing.php | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 mod/categories/pages/categories/listing.php (limited to 'mod/categories/pages/categories/listing.php') diff --git a/mod/categories/pages/categories/listing.php b/mod/categories/pages/categories/listing.php new file mode 100644 index 000000000..8924506e9 --- /dev/null +++ b/mod/categories/pages/categories/listing.php @@ -0,0 +1,39 @@ + 'universal_categories', + 'metadata_value' => $category, + 'types' => $type, + 'subtypes' => $subtype, + 'owner_guid' => $owner_guid, + 'limit' => $limit, + 'full_view' => FALSE, + 'metadata_case_sensitive' => FALSE, +); +$objects = elgg_list_entities_from_metadata($params); + +$title = elgg_echo('categories:results', array($category)); + +$content = elgg_view_title($title); +$content .= $objects; + +$body = elgg_view_layout('content', array( + 'content' => $content, + 'title' => $title, + 'filter' => '', + 'header' => '', +)); + +echo elgg_view_page($title, $body); -- cgit v1.2.3