8 if ((!$page->get('locked') || $user->isAdmin()) and $revision)
9 $EditB = Button("edit",
10 $revision->isCurrent() ? _("Edit this page") : _("Edit old revision"));
12 $EditB = Button("viewsource", _("View Source"));
13 // $EditB = fmt("%s of this page", $EditB);
14 if (empty($revision)) $revision = $page->getCurrentRevision(false);
18 <li><a class="wikilink" href="<?=WikiURL(HOME_PAGE)?>"><?= WIKI_NAME ?></a>
21 <?= WikiLink(_("HomePage"), "button") ?>
24 <?= WikiLink(_("RecentChanges"), "button") ?>
26 <?php if (!empty($user) && $user->isAdmin()) { ?>
28 <?=$SEP?><?= WikiLink(_("PhpWikiAdministration"), "button") ?>
31 <?php if (!empty($user)) { ?>
33 /* Today's calendar page for the user, if the Calender subpage is defined. */
34 $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Calendar");
35 $dbi = $request->getDbh();
36 if ($dbi->isWikiPage($UserCalPageTitle)) {
37 $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time());
40 <?=$SEP?><?= WikiLink($UserCalPageTodayTitle, "button", _("Today")) ?>
44 <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?>
45 <li><?=$SEP?><?= Button("pdf") ?></li>
51 <li><?= $EditB ?></li>
52 <?php if ($user->isAdmin() or mayAccessPage('change', $page->getName())) { ?>
53 <li><?=$SEP?><?= Button($page->get('locked') ? 'unlock' : 'lock')?></li>
54 <?php if (ENABLE_PAGEPERM) { ?>
55 <li><?=$SEP?><?= Button('chown') ?></li>
56 <li><?=$SEP?><?= Button('setacl') ?></li>
59 <?php if ($user->isAdmin() or mayAccessPage('remove', $page->getName())) { ?>
60 <li><?=$SEP?><?= Button('revert',_("Revert"), $revision->isCurrent() ? $page->GetRevisionBefore() : $revision) ?></li>
61 <li><?=$SEP?><?= Button('remove') ?></li>
68 <a href="<?=WikiURL($revision,array('action'=>'diff'))?>" >
69 <?= $WikiTheme->getLastModifiedMessage($revision) ?></a>
72 <?=$SEP?><?= Button("PageHistory", _("PageHistory")) ?><?=$SEP?>
74 <li> <?= Button("PageInfo", _("PageInfo")) ?> </li>
75 <?php if ((DEBUG and $request->getArg('action') == 'browse') || $user->isAdmin()) { ?>
77 <?=$SEP?><?= Button("DebugInfo", _("DebugInfo")) ?> <!-- For debugging only, really -->
78 <?=$SEP?><?= Button("PageDump", _("PageDump")) ?>
86 <?plugin-form TitleSearch formsize=20 ?>
89 <?plugin-form FullTextSearch formsize=20 ?>
92 <?php if ($revision) { ?>
93 <?= Button("LikePages", _("LikePages")) ?>
100 <?= Template('signin') ?>