/ Published in: PHP
Expand |
Embed | Plain Text
function make_cloud($tagcloud, $search){ echo '<div id="tagcloud">'; echo '<h1>Tags</h1>'; echo '<ul class="tagcloud">'; foreach($countarray as $key => $value) { // set the size and colour for display if ($value >= 9){ $size_color = 9; } else { $size_color = $value; } //the tag is the same as our search term and should not be displayed if ($key == $search){ //do nothing, it should not be in our list } else{ echo '<li class="jisc_tags"><span class="count"> ('.$value.') </span> <a target="_blank" href="http://del.icio.us/tag/%27.$search.%27+%27.$key.%27" title="Used by '.$value. ' JISC emerge users" style="">'.$key. '</a></li>'; } } echo '</ul>'; echo '</div>'; }
You need to login to post a comment.
