diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-03 17:53:05 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-03 17:53:05 +0000 |
commit | 4766f36a4d74924f21ff329c4318ce4e069ffa04 (patch) | |
tree | 969b84632f2a8b0db79788a8a6db8e41d63e5cb4 /mod/categories/views/default/categories/view.php | |
parent | 57a217fd6b708844407486046a1faa23b46cac08 (diff) | |
download | elgg-4766f36a4d74924f21ff329c4318ce4e069ffa04.tar.gz elgg-4766f36a4d74924f21ff329c4318ce4e069ffa04.tar.bz2 |
Pulled in the interface changes.
git-svn-id: http://code.elgg.org/elgg/trunk@5257 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/categories/views/default/categories/view.php')
-rw-r--r-- | mod/categories/views/default/categories/view.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mod/categories/views/default/categories/view.php b/mod/categories/views/default/categories/view.php new file mode 100644 index 000000000..ef092ce84 --- /dev/null +++ b/mod/categories/views/default/categories/view.php @@ -0,0 +1,19 @@ +<?php + + $linkstr = ''; + if (isset($vars['entity']) && $vars['entity'] instanceof ElggEntity) { + + $categories = $vars['entity']->universal_categories; + if (!empty($categories)) { + if (!is_array($categories)) $categories = array($categories); + foreach($categories as $category) { + $link = $vars['url'] . 'search?tagtype=universal_categories&tag=' . urlencode($category); + if (!empty($linkstr)) $linkstr .= ', '; + $linkstr .= '<a href="'.$link.'">' . $category . '</a>'; + } + } + + } + echo $linkstr; + +?>
\ No newline at end of file |