diff options
Diffstat (limited to 'include/taxonomy.php')
-rw-r--r-- | include/taxonomy.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/taxonomy.php b/include/taxonomy.php index 7e9a4c856..0ebda2b1c 100644 --- a/include/taxonomy.php +++ b/include/taxonomy.php @@ -146,14 +146,16 @@ function tags_sort($a,$b) { function tagblock($link,$uid,$count = 0,$type = TERM_HASHTAG) { + $o = ''; $tab = 0; $r = tagadelic($uid,$count,$type); if($r) { - echo '<div class="tags" align="center">'; + $o = '<div class="tagblock widget"><h3>' . t('Tags') . '</h3><div class="tags" align="center">'; foreach($r as $rr) { - echo '<a href="'.$link .'/' . '?f=&tag=' . urlencode($rr[0]).'" class="tag'.$rr[2].'">'.$rr[0].'</a> '; + $o .= '<a href="'.$link .'/' . '?f=&tag=' . urlencode($rr[0]).'" class="tag'.$rr[2].'">'.$rr[0].'</a> ' . "\r\n"; } - echo '</div>'; + $o .= '</div></div>'; } + return $o; } |