]> projects.mako.cc - scuttle/blob - templates/sidebar.block.profile.php
Merge remote-tracking branch 'remotes/gh-mjjstorey/master'
[scuttle] / templates / sidebar.block.profile.php
1 <?php
2 $userservice =& ServiceFactory::getServiceInstance('UserService');
3 if (utf8_strlen($userinfo['name']) > 0) {
4     $name = $userinfo['name'];
5 } else {
6     $name = $userinfo['username'];
7 }
8 ?>
9 <h2><?php echo $name; ?></h2>
10 <div id="profile">
11     <ul>
12         <li><a href="<?php echo $userservice->getProfileUrl($userid, $user); ?>"><?php echo T_('Profile'); ?></a> &rarr;</li>
13         <li><a href="<?php echo createURL('alltags', $user); ?>"><?php echo T_('Tags'); ?></a> &rarr;</li>
14         <li><a href="<?php echo createURL('watchlist', $user); ?>"><?php echo T_('Watchlist'); ?></a> &rarr;</li>
15     </ul>
16 </div>

Benjamin Mako Hill || Want to submit a patch?