2 rcs_id('$Id: navbar.tmpl,v 1.35 2005-02-02 19:01:40 rurban Exp $');
4 $s = $WikiTheme->getButtonSeparator();
6 <!-- The top navigation/search bar -->
7 <form action="<?= WikiURL(
8 _("TitleSearch"))?>" target="_top"
9 method="get" accept-charset="<?=CHARSET?>">
11 <?php if (!string_ends_with($page->getName(), _("Discussion"))) { ?>
12 <?= Button(array('action'=>$dbh->isWikiPage('Talk:'.$page->getName()) ? 'browse' : 'create',
13 'template'=>_("TemplateTalk")),
14 _("Discussion"), 'Talk:'.$page->getName()) ?>
15 <?=$s?><?php } ?><?= WikiLink(_("RecentChanges"), "button") ?><?=$s?>
16 <?= WikiLink(_("FindPage"), "button") ?>
17 <?=HTML::raw(' ')?><input type="hidden" name="auto_redirect" value="1" />
18 <?php if (! USE_PATH_INFO) { ?>
19 <input type="hidden" name="pagename" value="<?=
20 _("TitleSearch")?>" />
22 <input type="hidden" name="nocache" value="1" />
23 <input type="text" name="s" size="12" maxlength="256"
26 onmouseover="window.status='<?=
27 _("Quick Search")?>'; return true;"
28 onmouseout="window.status=''; return true;" />
29 <?php if (!empty($revision)) { ?>
30 <?=$s?><?= $WikiTheme->makeLinkButton($revision,_("LikePages"),_("LikePages")) ?><?=$s?><?= $WikiTheme->makeLinkButton($revision,_("BackLinks"),_("BackLinks")) ?><?php
31 $links = $page->getPageLinks();
32 if ($links->count() > 1) { ?><?=$s?><?= $WikiTheme->makeLinkButton($revision,_("RelatedChanges"),_("RelatedChanges")) ?><?php } ?>
34 <?php if (!empty($user) && $user->isSignedIn()) { ?>
35 <?=$s?><?= WikiLink(_("UserPreferences"), 'button',_("Preferences")) ?>
37 <?php if (!empty($user)) { ?>
39 /* Today's calendar page for the user, if the Calender subpage is defined. */
40 $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Calendar");
41 $dbi = $request->getDbh();
42 if ($dbi->isWikiPage($UserCalPageTitle)) {
43 $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time());
44 //$UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
46 <?=$s?><?= WikiLink($UserCalPageTodayTitle, "button", _("Today")) ?>
49 <?php if (!empty($user) && $user->isAdmin()) { ?>
50 <?=$s?><?= WikiLink(_("PhpWikiAdministration"), "button", _("Admin")) ?>
53 <?php if (DEBUG & 2) {
56 while ($p = $links->next()) { $s .= $p->_pagename.', '; }
57 echo asXML(HTML::strong("PageLinks: "),$s ? HTML::em($s) : HTML::em('<none>'));