]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/actionbar.tmpl
ending LF: #950617 Clean up CVS repository
[SourceForge/phpwiki.git] / themes / default / templates / actionbar.tmpl
1 <?php // -*-php-*-
2   rcs_id('$Id: actionbar.tmpl,v 1.27 2004-05-09 00:57:33 rurban 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') && DEBUG) || $user->isAdmin()) { ?> 
31     <!-- Buttons really only for debugging -->
32     <?=$Sep?><?= Button("DebugInfo", _("DebugInfo")) ?>
33     <?=$Sep?><?= Button("PageDump", _("PageDump")) ?>
34 <?php
35      $PurgeCache = Button(array('nocache' => 'purge'),
36                      _("PurgeHtmlCache"), $page->getName());
37      $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
38 ?>
39     <?=$Sep?><?= $PurgeCache ?>
40     <!-- End debugging buttons -->
41 <?php } ?>
42   </div>
43   </td>
44 <?php
45 /* valign="top" is not ideal here but required to get reasonable alignment
46    with the other action buttons in some browsers, like OmniWeb and Safari
47    (therefore probably Konquorer too) */
48 if (empty($NOSIGNIN)) {
49 ?>
50   <td align="right" valign="top">
51     <div id="signin"><?= Template('signin') ?></div>
52   </td>
53 </tr>
54 </table>
55 <?php } ?>