]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/MonoBook/templates/signin.tmpl
Preferences next to User as in Mediawiki
[SourceForge/phpwiki.git] / themes / MonoBook / templates / signin.tmpl
1 <?php // -*-php-*-
2 rcs_id('$Id$'); ?>
3 <?php // On MonoBook we do away with only GET urls, no form.
4   $sp = HTML::Raw("&nbsp;"); $id = $user->UserName();
5 ?>
6 <div class="portlet" id="p-personal"><div class="pBody">
7  <ul>
8   <?php if ($user->isAuthenticated()) { ?>
9   <li id="pt-userpage"><?= WikiLink($id, 'auto', HTML($sp,$id,$sp)) ?></li>
10   <li><?= WikiLink(_("UserPreferences"), "",_("Preferences")) ?></li>
11   <li><?= HTML::a(array('href'=>'?auth[logout]=1'),$sp,_("Logout"),$sp) ?></li>
12   <?php } else { ?>
13   <!-- Login or Register -->
14   <?php if ($id) { ?>
15     <li id="pt-userpage"><?= WikiLink($id, 'auto', HTML($sp,$id,$sp)) ?></li>
16   <?php } ?>
17   <li id="pt-login"><?= HTML::a(array('href'=>'?auth[login]=1'),$sp,_("Login"),$sp) ?></li>
18   <?php } ?>
19  </ul>
20 </div></div>