]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/navbar.tmpl
</option> syntax fix in pulldown window
[SourceForge/phpwiki.git] / themes / default / templates / navbar.tmpl
1 <?php // -*-php-*-
2     rcs_id('$Id: navbar.tmpl,v 1.34 2004-11-25 17:05:48 rurban Exp $');
3
4     $s = $WikiTheme->getButtonSeparator();
5 ?>
6 <!-- The top navigation/search bar -->
7 <form action="<?= WikiURL(
8 _("TitleSearch"))?>" target="_top"
9       method="get" accept-charset="<?=CHARSET?>">
10 <div id="navbuttons">
11 <?= WikiLink(_("RecentChanges"), "button") ?><?=$s?><?= WikiLink(_("FindPage"), "button") ?>
12 <?=HTML::raw('&nbsp;')?><input type="hidden" name="auto_redirect" value="1" />
13 <?php if (! USE_PATH_INFO) { ?>
14 <input type="hidden" name="pagename" value="<?=
15 _("TitleSearch")?>" />
16 <?php } ?>
17 <input type="hidden" name="nocache" value="1" />
18 <input type="text"  name="s" size="12" maxlength="256"
19        title='<?=
20 _("Quick Search")?>'
21        onmouseover="window.status='<?=
22 _("Quick Search")?>'; return true;"
23        onmouseout="window.status=''; return true;" />
24 <?php if (!empty($revision)) { ?>
25 <?=$s?><?= $WikiTheme->makeLinkButton($revision,_("LikePages"),_("LikePages")) ?><?=$s?><?= $WikiTheme->makeLinkButton($revision,_("BackLinks"),_("BackLinks")) ?><?php
26   $links = $page->getPageLinks();
27   if ($links->count() > 1) { ?><?=$s?><?= $WikiTheme->makeLinkButton($revision,_("RelatedChanges"),_("RelatedChanges")) ?><?php } ?>
28 <?php } ?>
29 <?php if (!empty($user) && $user->isSignedIn()) { ?>
30 <?=$s?><?= WikiLink(_("UserPreferences"), 'button',_("Preferences")) ?>
31 <?php } ?>
32 <?php if (!empty($user)) { ?>
33 <?php
34       /* Today's calendar page for the user, if the Calender subpage is defined. */
35       $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Calendar");
36       $dbi = $request->getDbh();
37       if ($dbi->isWikiPage($UserCalPageTitle)) {
38         $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time());
39         //$UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
40         ?>
41 <?=$s?><?= WikiLink($UserCalPageTodayTitle, "button", _("Today")) ?>
42 <?php } ?>
43 <?php } ?>
44 <?php if (!empty($user) && $user->isAdmin()) { ?>
45 <?=$s?><?= WikiLink(_("PhpWikiAdministration"), "button", _("Admin")) ?>
46 <?php } ?></div>
47 </form>
48 <?php if (DEBUG & 2) {
49         if (isset($links)) {
50             $s = '';
51             while ($p = $links->next()) { $s .= $p->_pagename.', '; }
52             echo asXML(HTML::strong("PageLinks: "),$s ? HTML::em($s) : HTML::em('<none>'));
53         }
54 } ?>