]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/actionbar.tmpl
removed unnecessary call to gettext
[SourceForge/phpwiki.git] / themes / default / templates / actionbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: actionbar.tmpl,v 1.14 2002-02-17 17:41:39 carstenklapp 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")) ?>
30         <?=$Sep?><?= Button("diff") ?> 
31         <?=$Sep?><?= Button("info") ?>
32 <?php if (defined('DEBUG')) { ?>
33         <?=$Sep?><?= Button(_("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>