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