function widget_tagcloud($args) { $o = ''; $tab = 0; $a = get_app(); $uid = $a->profile_uid; $count = x($args, 'count') ? intval($args['count']) : 24; $flags = 0; $type = TERM_CATEGORY; $r = tagadelic($uid, $count, $authors, $flags, ITEM_WEBPAGE, $type); if ($r) { $o = '<div class="tagblock widget"><h3>' . t('Categories') . '</h3><div class="tags" align="center">'; foreach ($r as $rr) { $o .= '<span class="tag' . $rr[2] . '">' . $rr[0] . '</span> ' . "\r\n"; } $o .= '</div></div>'; } return $o; }
function widget_tagcloud($args) { $o = ''; //$tab = 0; $uid = App::$profile_uid; $count = x($args, 'count') ? intval($args['count']) : 24; $flags = 0; $type = TERM_CATEGORY; // FIXME there exists no $authors variable $r = tagadelic($uid, $count, $authors, $owner, $flags, ITEM_TYPE_WEBPAGE, $type); if ($r) { $o = '<div class="tagblock widget"><h3>' . t('Categories') . '</h3><div class="tags" align="center">'; foreach ($r as $rr) { $o .= '<span class="tag' . $rr[2] . '">' . $rr[0] . '</span> ' . "\r\n"; } $o .= '</div></div>'; } return $o; }
function catblock($uid, $count = 0, $authors = '', $owner = '', $flags = 0, $restrict = 0, $type = TERM_CATEGORY) { $o = ''; $r = tagadelic($uid, $count, $authors, $owner, $flags, $restrict, $type); if ($r) { $c = q("select channel_address from channel where channel_id = %d limit 1", intval($uid)); $o = '<div class="tagblock widget"><h3>' . t('Categories') . '</h3><div class="tags" align="center">'; foreach ($r as $rr) { $o .= '<a href="channel/' . $c[0]['channel_address'] . '?f=&cat=' . urlencode($rr[0]) . '" class="tag' . $rr[2] . '">' . $rr[0] . '</a> ' . "\r\n"; } $o .= '</div></div>'; } return $o; }
function tagblock($link, $uid, $count = 0, $authors = '', $flags = 0, $restrict = 0, $type = TERM_HASHTAG) { $o = ''; $tab = 0; $r = tagadelic($uid, $count, $authors, $flags, $restrict, $type); if ($r) { $o = '<div class="tagblock widget"><h3>' . t('Tags') . '</h3><div class="tags" align="center">'; foreach ($r as $rr) { $o .= '<a href="' . $link . '/' . '?f=&tag=' . urlencode($rr[0]) . '" class="tag' . $rr[2] . '">' . $rr[0] . '</a> ' . "\r\n"; } $o .= '</div></div>'; } return $o; }