4 <?php if (!$WikiTheme->DUMP_MODE) { ?>
5 <?php /* I would like not to have to use these tables, and managed to
6 * get this stuff to work more or less correctly using
7 * CSSs float:left; and float:right;. However float:right; seems
8 * to cause MSIE4.01/NT to hang.
9 * So, we use tables... */ ?>
10 <table summary="Toolbar 1: Page actions and user login."
11 width="100%" cellpadding="0" cellspacing="0" border="0">
12 <tr valign="baseline">
14 <div id="actionbuttons">
15 <?php if ((!$page->get('locked') || $user->isAdmin()) and $revision) { ?>
16 <?php echo Button("edit", $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"), false, array('id'=>'btn-edit')) ?>
17 <?php if (ENABLE_WYSIWYG) { ?>
18 <?php echo $SEP?><?php echo Button(array("action" => "edit", "mode"=> "wysiwyg"), "Wysiwyg Editor", false, array('id' => 'btn-wysiwyg-edit')) ?>
21 <?php echo Button("viewsource", _("View Source")) ?>
23 <?php if ($user->isAdmin() or mayAccessPage('change', $page->getName())) { ?>
24 <?php echo $SEP?><?php echo Button($page->get('locked') ? 'unlock' : 'lock') ?>
25 <?php if (ENABLE_PAGEPERM and mayAccessPage('change', $page->getName())) { ?>
26 <?php echo $SEP?><?php echo Button('chown') ?>
27 <?php echo $SEP?><?php echo Button('setacl') ?>
28 <?php echo $SEP?><?php echo Button('rename') ?>
30 <?php if ($revision and ($user->isAdmin() or mayAccessPage('remove', $page->getName()))) { ?>
31 <?php echo $SEP?><?php echo Button('revert',_("Revert"), $revision->isCurrent() ? $page->GetRevisionBefore() : $revision) ?>
32 <?php echo $SEP?><?php echo Button('remove') ?>
34 <?php echo $SEP?><?php echo Button("PageHistory", _("PageHistory")) ?>
35 <?php echo $SEP?><?php echo Button("diff") ?>
36 <?php echo $SEP?><?php echo Button("PageInfo", _("PageInfo")) ?>
37 <?php if ((DEBUG and $request->getArg('action') == 'browse') || $user->isAdmin()) { ?>
38 <!-- Buttons really only for debugging -->
39 <?php echo $SEP?><?php echo Button("DebugInfo", _("DebugInfo")) ?>
40 <?php echo $SEP?><?php echo Button("PageDump", _("PageDump")) ?>
42 if (DEBUG & _DEBUG_SQL and USECACHE) {
43 $PurgeCache = Button(array('nocache' => 'purge'),
44 _("PurgeHtmlCache"), $page->getName());
45 $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
47 <?php echo $SEP?><?php echo $PurgeCache ?>
49 <!-- End debugging buttons -->
51 <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?>
52 <?php echo $SEP?><?php echo Button("pdf","Pdf",'wikiclear',array('id'=>'btn-pdf')) ?>
56 <?php if (empty($NOSIGNIN)) { ?>
58 /* valign="top" is not ideal here but required to get reasonable alignment
59 with the other action buttons in some browsers, like OmniWeb and Safari
60 (therefore probably Konquorer too) */ ?>
61 <td align="right" valign="top">
62 <div id="signin"><?php echo Template('signin') ?></div>