2 $tagservice =& ServiceFactory::getServiceInstance('TagService');
3 $userservice =& ServiceFactory::getServiceInstance('UserService');
5 $logged_on_userid = $userservice->getCurrentUserId();
6 if ($logged_on_userid === false) {
7 $logged_on_userid = NULL;
10 $relatedTags = $tagservice->getRelatedTags($currenttag, $userid, $logged_on_userid);
11 if (sizeof($relatedTags) > 0) {
14 <h2><?php echo T_('Related Tags'); ?></h2>
17 <?php foreach($relatedTags as $row): ?>
19 <td><a href="<?php echo sprintf($cat_url, filter($user, 'url'), filter($currenttag, 'url') .'+'. filter($row['tag'], 'url')); ?>">+</a></td>
20 <td><a href="<?php echo sprintf($cat_url, filter($user, 'url'), filter($row['tag'], 'url')); ?>" rel="tag"><?php echo filter($row['tag']); ?></a></td>