diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-13 21:13:55 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-13 21:13:55 +0000 |
commit | a8a6d84d11f285aeb8eb17e347ecfad34a2d7659 (patch) | |
tree | 55082c3e380c48c981a3633ba7eacf3a6b35e761 /mod | |
parent | e8a6f96d18b97f910a41235a7274129375f05840 (diff) | |
download | elgg-a8a6d84d11f285aeb8eb17e347ecfad34a2d7659.tar.gz elgg-a8a6d84d11f285aeb8eb17e347ecfad34a2d7659.tar.bz2 |
Removing tagcloud output view from tagcloud mod--it's in core now.
git-svn-id: http://code.elgg.org/elgg/trunk@6036 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r-- | mod/tagcloud/views/default/output/tagcloud.php | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/mod/tagcloud/views/default/output/tagcloud.php b/mod/tagcloud/views/default/output/tagcloud.php deleted file mode 100644 index aa3d84081..000000000 --- a/mod/tagcloud/views/default/output/tagcloud.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php - - /** - * Elgg tagcloud - * Displays a tagcloud - */ - - if (!empty($vars['subtype'])) { - $subtype = "&subtype=" . urlencode($vars['subtype']); - } else { - $subtype = ""; - } - if (!empty($vars['object'])) { - $object = "&object=" . urlencode($vars['object']); - } else { - $object = ""; - } - - if (empty($vars['tagcloud']) && !empty($vars['value'])) - $vars['tagcloud'] = $vars['value']; - - if (!empty($vars['tagcloud']) && is_array($vars['tagcloud'])) { - - if (get_context() === 'random') - shuffle($vars['tagcloud']); - - $counter = 0; - $cloud = ""; - $max = 0; - foreach($vars['tagcloud'] as $tag) { - if ($tag->total > $max) { - $max = $tag->total; - } - } - foreach($vars['tagcloud'] as $tag) { - if (!empty($cloud)) $cloud .= ","; - $size = round((log($tag->total) / log($max)) * 100) + 80; - if ($size < 100) $size = 100; - $cloud .= "<a href=\"" . $vars['url'] . "search/?tag=". urlencode($tag->tag) . $object . $subtype . "\" style=\"font-size: {$size}%\" title=\"".addslashes($tag->tag)." ({$tag->total})\" style=\"text-decoration:none;\">" . htmlentities($tag->tag, ENT_QUOTES, 'UTF-8') . "</a>"; - } - $tags = explode(',', $cloud); - asort($tags); - $tags = implode(',', $tags); - echo str_replace(",", " ", $tags); - } - -?> |