diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-11 22:51:08 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-11 22:51:08 +0000 |
commit | 891739afadddad56b517b7d565458296eeb58c0b (patch) | |
tree | 1891b4f21abd3df6aa1ec4b8847758644e1622fb /mod/categories/views/default/categories/view.php | |
parent | 1f1a9d691360eac9bb3eeaf98ebaaec6b6305b2b (diff) | |
download | elgg-891739afadddad56b517b7d565458296eeb58c0b.tar.gz elgg-891739afadddad56b517b7d565458296eeb58c0b.tar.bz2 |
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
Diffstat (limited to 'mod/categories/views/default/categories/view.php')
-rw-r--r-- | mod/categories/views/default/categories/view.php | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/mod/categories/views/default/categories/view.php b/mod/categories/views/default/categories/view.php index 043b1d78e..6d1f7c1bb 100644 --- a/mod/categories/views/default/categories/view.php +++ b/mod/categories/views/default/categories/view.php @@ -1,22 +1,8 @@ <?php +/** + * @deprecated 1.8 + */ -$linkstr = ''; -if (isset($vars['entity']) && $vars['entity'] instanceof ElggEntity) { +elgg_deprecated_notice("Use output/categories instead of categories/view", 1.8); - $categories = $vars['entity']->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 .= '<a href="'.$link.'">' . $category . '</a>'; - } - } - -} - -echo $linkstr; +echo elgg_view('output/categories', $vars); |