2 <!-- $Id: actionbar.tmpl,v 1.4 2004-06-28 16:10:28 rurban Exp $ -->
6 $Sep = $WikiTheme->getButtonSeparator();
8 if (!$page->get('locked') || $user->isAdmin())
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);
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")) ?>
51 <?php if ($user->isAdmin()) { ?>
53 <?=$Sep?><?= Button($page->get('locked') ? 'unlock' : 'lock')?>
56 <?=$Sep?><?= Button('remove') ?>
64 <a href="<?=WikiURL($revision,array('action'=>'diff'))?>" >
65 <?= $WikiTheme->getLastModifiedMessage($revision) ?></a>
68 <?=$Sep?><?= Button("PageHistory", _("PageHistory")) ?> <?=$Sep?>
70 <li> <?= Button("PageInfo", _("PageInfo")) ?> </li>
71 <?php if (defined('DEBUG') || $user->isAdmin()) { ?>
73 <?=$Sep?><?= Button("DebugInfo", _("DebugInfo")) ?> <!-- For debugging only, really -->
82 <?plugin-form TitleSearch formsize=20 ?>
85 <?plugin-form FullTextSearch formsize=20 ?>
88 <?php if (!empty($revision)) { ?>
89 <?= Button("LikePages", _("LikePages")) ?>
96 <?= Template('signin') ?>