]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/MonoBook/templates/signin.tmpl
Add user link if non-empty id
[SourceForge/phpwiki.git] / themes / MonoBook / templates / signin.tmpl
1 <?php // -*-php-*-
2 rcs_id('$Id: signin.tmpl,v 1.5 2007-01-20 11:42:05 rurban Exp $'); ?>
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><?= HTML::a(array('href'=>'?auth[logout]=1'),$sp,_("Logout"),$sp) ?></li>
11   <?php } else { ?>
12   <!-- Login or Register -->
13   <?php if ($id) { ?>
14     <li id="pt-userpage"><?= WikiLink($id, 'auto', HTML($sp,$id,$sp)) ?></li>
15   <?php } ?>
16   <li id="pt-login"><?= HTML::a(array('href'=>'?auth[login]=1'),$sp,_("Login"),$sp) ?></a></li>
17   <?php } ?>
18   </li>
19  </ul>
20 </div></div>