<?php // -*-html-*-
    rcs_id('$Id: navbar.tmpl,v 1.5 2004/11/15 16:04:35 rurban Exp $');

    $s = $WikiTheme->getButtonSeparator();
?>
<!-- The top navigation/search bar -->
<form action="<?= WikiURL(_("TitleSearch"))?>" target="_top"
      method="get" accept-charset="<?=CHARSET?>">
  <div id="navbuttons">
   <?= WikiLink(_("RecentChanges"), "button") ?>
   <?=$s?><?= WikiLink(_("FindPage"), "button") ?> :
   <input type="hidden" name="auto_redirect" value="1" />
      <?php if (! USE_PATH_INFO) { ?>
      <input type="hidden" name="pagename" value="<?=
_("TitleSearch")?>" />
      <?php } ?>
      <input type="hidden" name="nocache" value="purge" />
      <input type="text"  name="s" size="20" maxlength="256"
             title='<?=_("Quick Search")?>'
             onmouseover="window.status='<?=
_("Quick Search")?>'; return true;"
             onmouseout="window.status=''; return true;" />
    <?php if (!empty($revision)) { ?>
     <?=$s?><?= Button("LikePages", _("LikePages")) ?>
     <?=$s?><?= Button("BackLinks", _("BackLinks")) ?>
    <?php } ?>
    <?php if (!empty($user)) { ?>
     <?=$s?>
<?php
$loader = new WikiPluginLoader();
printXML($loader->expandPI("<"."?plugin RateIt ?".">", $request, $dbi->_markup));
?>
    <?php
      /* Today's calendar page for the user, if the Calender subpage is defined. */
      $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Calendar");
      $dbi = $request->getDbh();
      if ($dbi->isWikiPage($UserCalPageTitle)) {
        $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time());
        ?>
     <?=$s?><?= WikiLink($UserCalPageTodayTitle, "button", _("Today")) ?>
      <?php } ?>
      <?php if (!empty($user) && $user->isAdmin()) { ?>
     <?=$s?><?= WikiLink(_("PhpWikiAdministration"), "button", _("Admin")) ?>
      <?php } ?>
    <?php } ?></div>
    <hr>
      <!-- <''?plugin IncludePage page="LeftbarContent" quiet="true" ?''> -->

</form>