<?php $userservice =& ServiceFactory::getServiceInstance('UserService'); $watching = $userservice->getWatchNames($userid); if ($watching) { ?> <h2><?php echo T_('Watching'); ?></h2> <div id="watching"> <ul> <?php foreach($watching as $watchuser): ?> <li><a href="<?php echo createURL('bookmarks', $watchuser); ?>"><?php echo $watchuser; ?></a> →</li> <?php endforeach; ?> </ul> </div> <?php } ?>