2 <!-- $Id: actionbar.tmpl,v 1.1 2004-03-01 09:38:01 rurban Exp $ -->
4 if (!$page->get('locked') || $user->isAdmin())
5 $EditB = Button("edit",
6 $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"));
8 $EditB = Button("viewsource", _("View Source"));
10 $Sep = $Theme->getButtonSeparator();
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... -->
19 <table summary="Toolbar 1: Page actions and user login."
20 width="100%" cellpadding="0" cellspacing="0" border="0">
21 <tr valign="baseline">
23 <div id="actionbuttons">
24 <? if ( $user->isSignedIn()) { ?>
25 <?= $EditB ?><?=$Sep?>
26 <?php if ($user->isAdmin()) { ?>
27 <?= Button($page->get('locked') ? 'unlock' : 'lock') ?><?=$Sep?>
28 <?= Button('remove') ?><?=$Sep?>
31 <?= Button(array('action'=>'PageInfo'),_("Info"),$page->getName()) ?>
32 <?php if ((defined('DEBUG') && DEBUG) || $user->isAdmin()) { ?>
33 <?=$Sep?><?= Button(_("PageHistory")) ?>
34 <?=$Sep?><?= Button("diff") ?>
35 <!-- Buttons really only for debugging -->
37 $PurgeCache = Button(array('nocache' => 'purge'),
38 _("PurgeHtmlCache"), $page->getName());
39 $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
41 <?=$Sep?><?= $PurgeCache ?>
46 <div id="signin"><?= Template('signin') ?></div>