]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/navbar.tmpl
Bugfix: reverting this file to CVS Revision 1.18, since the localized
[SourceForge/phpwiki.git] / themes / default / templates / navbar.tmpl
1 <?php // -*-html-*-
2     rcs_id('$Id: navbar.tmpl,v 1.21 2003-11-25 21:58:33 carstenklapp Exp $');
3
4     $s = $Theme->getButtonSeparator();
5 ?>
6 <!-- The top navigation/search bar -->
7 <form action="<?= WikiURL(_("TitleSearch"))?>" target="_top"
8       method="get" accept-charset="<?=CHARSET?>">
9   <div id="navbuttons">
10    <?= WikiLink(_("RecentChanges"), "button") ?>
11    <?=$s?><?= WikiLink(_("FindPage"), "button") ?>
12    <?=$s?><input type="hidden" name="auto_redirect" value="1" />
13       <?php if (! USE_PATH_INFO) { ?>
14       <input type="hidden" name="pagename" value="<?=_("TitleSearch")?>" />
15       <?php } ?>
16       <input type="text"  name="s" size="12" maxlength="256"
17              title='<?=_("Quick Search")?>'
18              onmouseover="window.status='<?=_("Quick Search")?>'; return true;"
19              onmouseout="window.status=''; return true;" />
20     <?php if (!empty($revision)) { ?>
21      <?=$s?><?= Button("LikePages", _("LikePages")) ?>
22      <?=$s?><?= Button("BackLinks", _("BackLinks")) ?>
23     <?php } ?>
24     <?php if (!empty($user)) { ?>
25     <?php
26       /* Today's calendar page for the user, if the Calender subpage is defined. */
27       $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Calendar");
28       $dbi = $request->getDbh();
29       if ($dbi->isWikiPage($UserCalPageTitle)) {
30         $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time());
31         $UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
32         ?>
33      <?=$s?><?= WikiLink($UserCalPageTodayUrl, "button", _("Today")) ?>
34       <?php } ?>
35       <?php if (!empty($user) && $user->isAdmin()) { ?>
36      <?=$s?><?= WikiLink(_("PhpWikiAdministration"), "button", _("Admin")) ?>
37       <?php } ?>
38     <?php } ?></div>
39 </form>