2007-12-12 17:29:16 +01:00
|
|
|
<?php
|
|
|
|
$userservice =& ServiceFactory::getServiceInstance('UserService');
|
|
|
|
if ($userservice->isLoggedOn()) {
|
|
|
|
$cUser = $userservice->getCurrentUser();
|
2008-01-11 09:08:33 +01:00
|
|
|
$cUserId = $userservice->getCurrentUserId();
|
2007-12-12 17:29:16 +01:00
|
|
|
$cUsername = $cUser[$userservice->getFieldName('username')];
|
|
|
|
?>
|
|
|
|
|
|
|
|
<ul id="navigation">
|
|
|
|
<li><a href="<?php echo createURL('bookmarks', $cUsername); ?>"><?php echo T_('Bookmarks'); ?></a></li>
|
2008-01-11 09:08:33 +01:00
|
|
|
<li><a href="<?php echo createURL('alltags', $cUsername); ?>"><?php echo T_('Tags'); ?></a></li>
|
2007-12-12 17:29:16 +01:00
|
|
|
<li><a href="<?php echo createURL('watchlist', $cUsername); ?>"><?php echo T_('Watchlist'); ?></a></li>
|
2008-01-11 09:08:33 +01:00
|
|
|
<li><a href="<?php echo $userservice->getProfileUrl($cUserId, $cUsername); ?>"><?php echo T_('Profile'); ?></a></li>
|
2007-12-12 17:29:16 +01:00
|
|
|
<li><a href="<?php echo createURL('bookmarks', $cUsername . '?action=add'); ?>"><?php echo T_('Add a Bookmark'); ?></a></li>
|
2008-01-11 09:08:33 +01:00
|
|
|
<li class="access"><?php echo $cUsername?><a href="<?php echo $GLOBALS['root']; ?>?action=logout">(<?php echo T_('Log Out'); ?>)</a></li>
|
2008-02-20 16:21:30 +01:00
|
|
|
<li><a href="<?php echo createURL('about'); ?>"><?php echo T_('About'); ?></a></li>
|
2007-12-12 17:29:16 +01:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
} else {
|
|
|
|
?>
|
|
|
|
|
|
|
|
<ul id="navigation">
|
2008-04-24 10:48:57 +02:00
|
|
|
<li><a href="<?php echo createURL('populartags', $cUsername); ?>"><?php echo T_('Popular Tags'); ?></a></li>
|
2007-12-12 17:29:16 +01:00
|
|
|
<li><a href="<?php echo createURL('about'); ?>"><?php echo T_('About'); ?></a></li>
|
|
|
|
<li class="access"><a href="<?php echo createURL('login'); ?>"><?php echo T_('Log In'); ?></a></li>
|
|
|
|
<li class="access"><a href="<?php echo createURL('register'); ?>"><?php echo T_('Register'); ?></a></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|