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