]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/actionbar.tmpl
*** empty log message ***
[SourceForge/phpwiki.git] / themes / default / templates / actionbar.tmpl
1 <?php // -*-html-*-
2   rcs_id('$Id: actionbar.tmpl,v 1.25 2004-03-24 19:40:34 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 <?php
34      $PurgeCache = Button(array('nocache' => 'purge'),
35                      _("PurgeHtmlCache"), $page->getName());
36      $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
37 ?>
38     <?=$Sep?><?= $PurgeCache ?>
39     <!-- End debugging buttons -->
40 <?php } ?>
41   </div>
42   </td>
43 <?php
44 /* valign="top" is not ideal here but required to get reasonable alignment
45    with the other action buttons in some browsers, like OmniWeb and Safari
46    (therefore probably Konquorer too) */
47 if (empty($NOSIGNIN)) {
48 ?>
49   <td align="right" valign="top">
50     <div id="signin"><?= Template('signin') ?></div>
51   </td>
52 </tr>
53 </table>
54 <?php } ?>