]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/actionbar.tmpl
require_once fix for those libs which are loaded before FileFinder and
[SourceForge/phpwiki.git] / themes / default / templates / actionbar.tmpl
1 <?php // -*-php-*-
2   rcs_id('$Id: actionbar.tmpl,v 1.28 2004-05-12 10:49:56 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 <?php /* I would like not to have to use these tables, and managed to
12        * get this stuff to work more or less correctly using
13        * CSSs float:left; and float:right;.  However float:right; seems
14        * to cause MSIE4.01/NT to hang. 
15        * So, we use tables...  */ ?>
16 <table summary="Toolbar 1: Page actions and user login."
17        width="100%" cellpadding="0" cellspacing="0" border="0">
18 <tr valign="baseline">
19   <td>
20   <div id="actionbuttons">
21     <?= $EditB ?>
22     <?php if ($user->isAdmin()) { ?>
23       <?=$Sep?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
24       <?=$Sep?><?= Button('remove') ?>
25     <?php } ?>
26     <?=$Sep?><?= Button("PageHistory", _("PageHistory")) ?>
27     <?=$Sep?><?= Button("diff") ?> 
28     <?=$Sep?><?= Button("PageInfo", _("PageInfo")) ?>
29 <?php if (((defined('DEBUG') and DEBUG and $request->getArg('action') == 'browse')) || $user->isAdmin()) { ?> 
30     <!-- Buttons really only for debugging -->
31     <?=$Sep?><?= Button("DebugInfo", _("DebugInfo")) ?>
32     <?=$Sep?><?= Button("PageDump", _("PageDump")) ?>
33     <?php if (1 or CACHE_CONTROL != 'NONE') {
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     <?php } ?>
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 } ?>