2 $sf = new ServiceFactory();
3 $tagservice =& $sf->getServiceInstance('TagService');
4 $userservice =& $sf->getServiceInstance('UserService');
6 $logged_on_userid = $userservice->getCurrentUserId();
7 if ($logged_on_userid === false) {
8 $logged_on_userid = NULL;
10 if (!isset($userid)) {
16 $popularTags =& $tagservice->getPopularTags($userid, $popCount, $logged_on_userid);
17 $popularTags =& $tagservice->tagCloud($popularTags, 5, 90, 225, 'alphabet_asc');
19 if ($popularTags && count($popularTags) > 0) {
22 <h2><?php echo T_('Popular Tags'); ?></h2>
27 foreach ($popularTags as $row) {
28 $entries = T_ngettext('bookmark', 'bookmarks', $row['bCount']);
29 $contents .= '<a href="'. sprintf($cat_url, $user, filter($row['tag'], 'url')) .'" title="'. $row['bCount'] .' '. $entries .'" rel="tag" style="font-size:'. $row['size'] .'">'. filter($row['tag']) .'</a> ';