]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Crao/templates/navbar.tmpl
renamed global $Theme to $WikiTheme (gforge nameclash)
[SourceForge/phpwiki.git] / themes / Crao / templates / navbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: navbar.tmpl,v 1.3 2004-06-18 08:40:39 rurban Exp $ -->
3 <?php
4
5 $s = $WikiTheme->getButtonSeparator();
6
7 global $HIDE_TOOLBARS;
8 if (!$HIDE_TOOLBARS) {
9
10 ?>
11 <!-- The top navigation/search bar -->
12 <form action="<?= WikiURL(_("TitleSearch"))?>" target="_top"
13       method="get" accept-charset="<?=CHARSET?>">
14 <input type="hidden" name="auto_redirect" value="1" />
15 <?php if (! USE_PATH_INFO) { ?>
16   <input type="hidden" name="pagename" value="<?=_("TitleSearch")?>" />
17 <?php } ?>
18 <div id="navbuttons">
19 <table width="100%" cellpadding="0" cellspacing="0" border="0">
20 <tr valign="middle"><td align="left">
21 <?= WikiLink(_("RecentChanges"), "button") ?>
22 <?php if (!empty($revision)) { ?>
23 <?=$s?><?= Button("RelatedChanges", _("RelatedChanges")) ?>
24 <?=$s?><?= Button("LikePages", _("LikePages")) ?>
25 <?=$s?><?= Button("BackLinks", _("BackLinks")) ?>
26 <?php } ?>
27 </td>
28 <td align="right">
29    <div id="search">
30     <?php if (!empty($user) && $user->isSignedIn()) { ?>
31      <?= WikiLink(_("UserPreferences"),'button',_("Preferences")) ?>
32 <?php } ?>
33 <?php if (!empty($user)) { ?>
34 <?php
35       /* Today's calendar page for the user, if the Calender subpage is defined. */
36       $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Calendar");
37       $dbi = $request->getDbh();
38       if ($dbi->isWikiPage($UserCalPageTitle)) {
39         $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time());
40         //$UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
41 ?>
42 <?=$s?><?= WikiLink($UserCalPageTodayTitle, "button", _("Today")) ?>
43 <?php } ?>
44 <?php if (!empty($user) && $user->isAdmin()) { ?>
45 <?=$s?><?= WikiLink(_("PhpWikiAdministration"), "button", _("Admin")) ?>
46 <?php } ?>
47 <?php } ?>
48 <?=$s?><?= WikiLink(_("FindPage"), "button") ?><input type="text"  name="s" size="12" maxlength="256" title='<?=_("Quick Search")?>' onmouseover="window.status='<?=_("Quick Search")?>'; return true;" onmouseout="window.status=''; return true;" /></div></td></tr></table>
49 </div>
50 </form>
51 <?php } ?>