3 if (!$page->get('locked') || $user->isAdmin() and $revision)
4 $EditB = Button("edit",
5 $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"));
7 $EditB = Button("viewsource", _("View Source"));
8 if (empty($revision)) $revision = $page->getCurrentRevision(false);
11 <?php if (isBrowserIE()) { ?>
12 <div class="ie-actionbuttons">
14 <div id="actionbuttons">
17 <?php if ($user->isAdmin() or mayAccessPage('change',$page->getName())) { ?>
18 <?=$SEP?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
19 <?php if (ENABLE_PAGEPERM) { ?>
20 <?=$SEP?><?= Button('chown') ?>
21 <?=$SEP?><?= Button('setacl') ?>
23 <?php if ($user->isAdmin() or mayAccessPage('remove',$page->getName())) { ?>
24 <?=$SEP?><?= Button('remove') ?>
26 <?=$SEP?><?= Button("PageHistory", _("PageHistory")) ?>
27 <?=$SEP?><?= Button("diff") ?>
28 <?=$SEP?><?= Button("PageInfo", _("PageInfo")) ?>
29 <?php if ((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 $purgeb = Button(array('nocache' => 'purge'),
34 _("PurgeHtmlCache"), $page->getName());
35 $purgeb->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
37 <?=$SEP?><?= $purgeb ?>
38 <!-- End debugging buttons -->
40 <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?>
41 <?=$SEP?><?= Button("pdf") ?>