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)) {
17 $relatedTags = $tagservice->getRelatedTags($currenttag, $userid, $logged_on_userid);
18 if (sizeof($relatedTags) > 0) {
21 <h2><?php echo T_('Related Tags'); ?></h2>
24 <?php foreach($relatedTags as $row): ?>
26 <td><a href="<?php echo sprintf($cat_url, filter($user, 'url'), filter($currenttag, 'url') .'+'. filter($row['tag'], 'url')); ?>">+</a></td>
27 <td><a href="<?php echo sprintf($cat_url, filter($user, 'url'), filter($row['tag'], 'url')); ?>" rel="tag"><?php echo filter($row['tag']); ?></a></td>