]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/wikilens/templates/navbar.tmpl
sample theme needed for RateIt
[SourceForge/phpwiki.git] / themes / wikilens / templates / navbar.tmpl
1 <?php // -*-html-*-
2     rcs_id('$Id: navbar.tmpl,v 1.1 2004-03-30 02:40:07 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      <?=$s?>
27 <?php 
28 $loader = new WikiPluginLoader();
29 printXML($loader->expandPI("<"."?plugin RateIt ?".">",$request,$dbi->_markup));
30 ?>
31     <?php
32       /* Today's calendar page for the user, if the Calender subpage is defined. */
33       $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Calendar");
34       $dbi = $request->getDbh();
35       if ($dbi->isWikiPage($UserCalPageTitle)) {
36         $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time());
37         $UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
38         ?>
39      <?=$s?><?= WikiLink($UserCalPageTodayUrl, "button", _("Today")) ?>
40       <?php } ?>
41       <?php if (!empty($user) && $user->isAdmin()) { ?>
42      <?=$s?><?= WikiLink(_("PhpWikiAdministration"), "button", _("Admin")) ?>
43       <?php } ?>
44     <?php } ?></div>
45 </form>