6 if ((!$page->get('locked') || $user->isAdmin()) and $revision)
7 $EditB = Button("edit",
8 $revision->isCurrent() ? _("Edit this page") : _("Edit old revision"));
10 $EditB = Button("viewsource", _("View Source"));
11 // $EditB = fmt("%s of this page", $EditB);
12 if (empty($revision)) $revision = $page->getCurrentRevision(false);
16 <li><a class="wikilink" href="<?=WikiURL(HOME_PAGE)?>"><?= WIKI_NAME ?></a>
19 <?= WikiLink(_("HomePage"), "button") ?>
22 <?= WikiLink(_("RecentChanges"), "button") ?>
24 <?php if (!empty($user) && $user->isAdmin()) { ?>
26 <?=$SEP?><?= WikiLink(_("PhpWikiAdministration"), "button") ?>
29 <?php if (!empty($user)) { ?>
31 /* Today's calendar page for the user, if the Calender subpage is defined. */
32 $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Calendar");
33 $dbi = $request->getDbh();
34 if ($dbi->isWikiPage($UserCalPageTitle)) {
35 $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time());
38 <?=$SEP?><?= WikiLink($UserCalPageTodayTitle, "button", _("Today")) ?>
42 <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?>
43 <li><?=$SEP?><?= Button("pdf") ?></li>
49 <li><?= $EditB ?></li>
50 <?php if ($user->isAdmin() or mayAccessPage('change', $page->getName())) { ?>
51 <li><?=$SEP?><?= Button($page->get('locked') ? 'unlock' : 'lock')?></li>
52 <?php if (ENABLE_PAGEPERM) { ?>
53 <li><?=$SEP?><?= Button('chown') ?></li>
54 <li><?=$SEP?><?= Button('setacl') ?></li>
57 <?php if ($user->isAdmin() or mayAccessPage('remove', $page->getName())) { ?>
58 <li><?=$SEP?><?= Button('revert',_("Revert"), $revision->isCurrent() ? $page->GetRevisionBefore() : $revision) ?></li>
59 <li><?=$SEP?><?= Button('remove') ?></li>
66 <a href="<?=WikiURL($revision,array('action'=>'diff'))?>" >
67 <?= $WikiTheme->getLastModifiedMessage($revision) ?></a>
70 <?=$SEP?><?= Button("PageHistory", _("PageHistory")) ?><?=$SEP?>
72 <li> <?= Button("PageInfo", _("PageInfo")) ?> </li>
73 <?php if ((DEBUG and $request->getArg('action') == 'browse') || $user->isAdmin()) { ?>
75 <?=$SEP?><?= Button("DebugInfo", _("DebugInfo")) ?> <!-- For debugging only, really -->
76 <?=$SEP?><?= Button("PageDump", _("PageDump")) ?>
84 <?plugin-form TitleSearch formsize=20 ?>
87 <?plugin-form FullTextSearch formsize=20 ?>
90 <?php if ($revision) { ?>
91 <?= Button("LikePages", _("LikePages")) ?>
98 <?= Template('signin') ?>