]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/actionbar.tmpl
shorter actionbar, buuttons moved to info page
[SourceForge/phpwiki.git] / themes / default / templates / actionbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: actionbar.tmpl,v 1.17 2002-09-15 20:21:16 rurban Exp $ -->
3 <?php
4   if (!$page->get('locked') || $user->isAdmin()) {
5       $EditB = Button("edit", $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"));
6   } else {
7       $EditB = Button("viewsource", _("View Source"));
8   }
9   $Sep = $Theme->getButtonSeparator();
10 ?>
11 <!-- I would like not to have to use these tables, and managed to
12      get this stuff to work more or less correctly using
13      CSSs float:left; and float:right;.  However float:right; seems
14      to cause MSIE4.01/NT to hang. 
15      So, we use tables...  -->
16 <table summary="Toolbar 1: Page actions and user login."
17        width="100%" cellpadding="0" cellspacing="0" border="0">
18 <tr valign="baseline">
19   <td>
20   <div id="actionbuttons">
21     <?= $EditB ?> 
22     <?php if ($user->isAdmin()) { ?>
23       <?=$Sep?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
24       <?=$Sep?><?= Button('remove') ?>
25     <?php } ?>
26     <?=$Sep?><?= Button(_("Info")) ?>
27   </div>
28   </td>
29   <td align="right">
30     <div id="signin"><?= Template('signin') ?></div>
31   </td>
32 </tr>
33 </table>