From 891739afadddad56b517b7d565458296eeb58c0b Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 11 Feb 2011 22:51:08 +0000 Subject: some clean up of the categories plugin - html/css polish needed git-svn-id: http://code.elgg.org/elgg/trunk@8122 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/categories/views/default/output/categories.php | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 mod/categories/views/default/output/categories.php (limited to 'mod/categories/views/default/output/categories.php') diff --git a/mod/categories/views/default/output/categories.php b/mod/categories/views/default/output/categories.php new file mode 100644 index 000000000..724c46037 --- /dev/null +++ b/mod/categories/views/default/output/categories.php @@ -0,0 +1,27 @@ +universal_categories; + if (!empty($categories)) { + if (!is_array($categories)) { + $categories = array($categories); + } + foreach($categories as $category) { + $link = elgg_get_site_url() . 'pg/categories/list/?category=' . urlencode($category); + if (!empty($linkstr)) { + $linkstr .= ', '; + } + $linkstr .= '' . $category . ''; + } + } + +} + +echo $linkstr; -- cgit v1.2.3