]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/wikilens/templates/navbar.tmpl
Allow bold, italics or underlined for numbers
[SourceForge/phpwiki.git] / themes / wikilens / templates / navbar.tmpl
1 <?php
2   $NSEP = HTML::br();
3 ?>
4 <!-- The left navigation/search bar -->
5 <div id="navbuttons">
6 <?php if (ENABLE_DISCUSSION_LINK) { ?>
7 <?php // This requires Talk: map to end in "/Discussion"
8   if (!string_ends_with($page->getName(), SUBPAGE_SEPARATOR._("Discussion"))) { ?>
9     <?php echo $NSEP?><?php echo WikiLink(new WikiPagename('Talk:'.$page->getName(), $page->getName()), 
10                'button', _("Discussion")) ?>
11   <?php } else { ?>
12     <?php echo $NSEP?><?php echo Button(array(),_("Article"),$page->getName()) ?>
13   <?php } ?>
14   <?php echo $NSEP?>
15 <?php } ?>
16 <?php echo WikiLink(_("RecentChanges"), "button") ?>
17 <?php echo $NSEP?><?php echo Template('search', 
18                       array('SEARCH_BEFORE' => HTML::Button(_("FindPage"))))
19 ?><?php if (!empty($revision)) { ?>
20 <?php echo $NSEP?><?php echo $WikiTheme->makeLinkButton($revision,_("LikePages"),_("LikePages")) 
21 ?><?php echo $NSEP?><?php echo $WikiTheme->makeLinkButton($revision,_("BackLinks"),_("BackLinks"))
22 ?><?php echo $NSEP?><?php echo WikiLink(_("UserPreferences"), 'button',_("Preferences")) ?><?php
23     /* Today's calendar page for the user, if the Calender subpage is defined. */
24     $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Calendar");
25     $dbi = $request->getDbh();
26     if ($dbi->isWikiPage($UserCalPageTitle)) {
27         $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time());
28         //$UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
29 ?><?php echo $NSEP?><?php echo WikiLink($UserCalPageTodayTitle, "button", _("Today")) ?>
30 <?php }} ?><?php if (!empty($user) && $user->isAdmin()) { ?>
31 <?php echo $NSEP?><?php echo WikiLink(_("PhpWikiAdministration"), "button", _("Admin")) ?>
32 <?php } ?>
33 <?php if (DEBUG & 2) {
34         if (isset($links)) {
35             $p = $links->next();
36             $s = $p->_pagename;
37             while ($p = $links->next()) { $s .= ', ' . $p->_pagename; }
38             echo asXML(HTML::strong("PageLinks: "),$s ? HTML::em($s) : HTML::em('<none>'));
39         }
40 } ?>
41 </div>