]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/navbar.tmpl
fixed DumpHtmlToDir,
[SourceForge/phpwiki.git] / themes / default / templates / navbar.tmpl
1 <?php // -*-html-*-
2     rcs_id('$Id: navbar.tmpl,v 1.24 2004-02-22 23:20:34 rurban 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="hidden" name="nocache" value="purge" />
17       <input type="text"  name="s" size="12" maxlength="256"
18              title='<?=_("Quick Search")?>'
19              onmouseover="window.status='<?=_("Quick Search")?>'; return true;"
20              onmouseout="window.status=''; return true;" />
21     <?php if (!empty($revision)) { ?>
22      <?=$s?><?= Button("LikePages", _("LikePages")) ?>
23      <?=$s?><?= Button("BackLinks", _("BackLinks")) ?>
24     <?php } ?>
25     <?php if (!empty($user)) { ?>
26     <?php
27       /* Today's calendar page for the user, if the Calender subpage is defined. */
28       $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Calendar");
29       $dbi = $request->getDbh();
30       if ($dbi->isWikiPage($UserCalPageTitle)) {
31         $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time());
32         $UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
33         ?>
34      <?=$s?><?= WikiLink($UserCalPageTodayUrl, "button", _("Today")) ?>
35       <?php } ?>
36       <?php if (!empty($user) && $user->isAdmin()) { ?>
37      <?=$s?><?= WikiLink(_("PhpWikiAdministration"), "button", _("Admin")) ?>
38       <?php } ?>
39     <?php } ?></div>
40 </form>