total > $max) { $max = $tag->total; } } foreach($vars['tagcloud'] as $tag) { if (!empty($cloud)) $cloud .= " "; $m_log = log($max); if ($m_log == 0) { $size = 30; } else { $size = round((log($tag->total) / log($max)) * 100) + 100; } if ($size < 60) $size = 60; $cloud .= "tag)." ({$tag->total})\" style=\"text-decoration:none;\">" .$tag->tag . ""; } echo $cloud; } ?>