diff options
Diffstat (limited to 'templates/sidebar.block.profile.php')
-rw-r--r-- | templates/sidebar.block.profile.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/sidebar.block.profile.php b/templates/sidebar.block.profile.php new file mode 100644 index 0000000..1b8e915 --- /dev/null +++ b/templates/sidebar.block.profile.php @@ -0,0 +1,16 @@ +<?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> + <li><a href="<?php echo $userservice->getProfileUrl($userid, $user); ?>"><?php echo T_('Profile'); ?></a> →</li> + <li><a href="<?php echo createURL('alltags', $user); ?>"><?php echo T_('Tags'); ?></a> →</li> + <li><a href="<?php echo createURL('watchlist', $user); ?>"><?php echo T_('Watchlist'); ?></a> →</li> + </ul> +</div> |