2 rcs_id('$Id: navbar.tmpl,v 1.43 2007-01-21 23:11:16 rurban Exp $');
4 <!-- The top navigation/search bar -->
6 <?php if (ENABLE_DISCUSSION_LINK) { ?>
7 <?php // This requires Talk: map to end in "/Discussion"
8 if (!string_ends_with($page->getName(), _("Discussion"))) { ?>
9 <?=$SEP?><?= WikiLink(new WikiPagename('Talk:'.$page->getName(), $page->getName()),
10 'button', _("Discussion")) ?>
12 <?=$SEP?><?= Button(array(),_("Article"),$page->getName()) ?>
16 <?= WikiLink(_("RecentChanges"), "button") ?>
17 <?=$SEP?><?= Template('search',
18 array('SEARCH_BEFORE' => HTML::Button(_("FindPage"))))
19 ?><?php if (!empty($revision)) { ?>
20 <?=$SEP?><?= $WikiTheme->makeLinkButton($revision,_("LikePages"),_("LikePages"))
21 ?><?=$SEP?><?= $WikiTheme->makeLinkButton($revision,_("BackLinks"),_("BackLinks"))
22 ?><?php /* RelatedChanges disabled
23 $links = $page->getPageLinks();
24 if ($links->count() > 1) { ?><?=$SEP?><?= $WikiTheme->makeLinkButton($revision,_("RelatedChanges"),_("RelatedChanges")) ?><?php } */ ?>
26 <?php if (!empty($user) && $user->isSignedIn()) { ?>
27 <?=$SEP?><?= WikiLink(_("UserPreferences"), 'button',_("Preferences")) ?>
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());
36 //$UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
38 <?=$SEP?><?= WikiLink($UserCalPageTodayTitle, "button", _("Today")) ?>
41 <?php if (!empty($user) && $user->isAdmin()) { ?>
42 <?=$SEP?><?= WikiLink(_("PhpWikiAdministration"), "button", _("Admin")) ?>
45 <?php if (DEBUG & 2) {
49 while ($p = $links->next()) { $s .= ', ' . $p->_pagename; }
50 echo asXML(HTML::strong("PageLinks: "),$s ? HTML::em($s) : HTML::em('<none>'));