diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/sidebar.block.profile.php | 9 | ||||
-rw-r--r-- | templates/toolbar.inc.php | 5 |
2 files changed, 12 insertions, 2 deletions
diff --git a/templates/sidebar.block.profile.php b/templates/sidebar.block.profile.php index 1b8e915..4fd61ff 100644 --- a/templates/sidebar.block.profile.php +++ b/templates/sidebar.block.profile.php @@ -1,11 +1,15 @@ <?php +// Menu moved to toolbar.inc.php + +/* $userservice =& ServiceFactory::getServiceInstance('UserService'); if (utf8_strlen($userinfo['name']) > 0) { $name = $userinfo['name']; } else { $name = $userinfo['username']; } -?> + + <h2><?php echo $name; ?></h2> <div id="profile"> <ul> @@ -14,3 +18,6 @@ if (utf8_strlen($userinfo['name']) > 0) { <li><a href="<?php echo createURL('watchlist', $user); ?>"><?php echo T_('Watchlist'); ?></a> →</li> </ul> </div> + +*/ +?> diff --git a/templates/toolbar.inc.php b/templates/toolbar.inc.php index 2eb56ac..916897c 100644 --- a/templates/toolbar.inc.php +++ b/templates/toolbar.inc.php @@ -2,14 +2,17 @@ $userservice =& ServiceFactory::getServiceInstance('UserService'); if ($userservice->isLoggedOn()) { $cUser = $userservice->getCurrentUser(); + $cUserId = $userservice->getCurrentUserId(); $cUsername = $cUser[$userservice->getFieldName('username')]; ?> <ul id="navigation"> <li><a href="<?php echo createURL('bookmarks', $cUsername); ?>"><?php echo T_('Bookmarks'); ?></a></li> + <li><a href="<?php echo createURL('alltags', $cUsername); ?>"><?php echo T_('Tags'); ?></a></li> <li><a href="<?php echo createURL('watchlist', $cUsername); ?>"><?php echo T_('Watchlist'); ?></a></li> + <li><a href="<?php echo $userservice->getProfileUrl($cUserId, $cUsername); ?>"><?php echo T_('Profile'); ?></a></li> <li><a href="<?php echo createURL('bookmarks', $cUsername . '?action=add'); ?>"><?php echo T_('Add a Bookmark'); ?></a></li> - <li class="access"><a href="<?php echo $GLOBALS['root']; ?>?action=logout"><?php echo T_('Log Out'); ?></a></li> + <li class="access"><?php echo $cUsername?><a href="<?php echo $GLOBALS['root']; ?>?action=logout">(<?php echo T_('Log Out'); ?>)</a></li> </ul> <?php |