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