<?php // -*-html-*-
rcs_id('$Id: sidebar.tmpl,v 1.2 2005/02/02 19:14:14 rurban Exp $');
?>
<div id="sidebar">
<?php
  /* Today's Blogs page for the current or admin user, if the subpage is defined. */
  $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Blogs");
  $dbi = $request->getDbh();
  // display flat calender dhtml under the clock
  if (!$dbi->isWikiPage($UserCalPageTitle)) {
    if (BLOG_EMPTY_DEFAULT_PREFIX)
      $UserCalPageTitle = _("Blogs");
    else
      $UserCalPageTitle = ADMIN_USER . SUBPAGE_SEPARATOR . _("Blogs");
  }
?>
<div class="box">
<div class="box-title"><?= WikiLink($UserCalPageTitle,'known',_("Calendar")) ?></div>
<div class="box-data">
    <?= Template('calendar') ?>
</div></div>
<?php
include_once("lib/WikiPlugin.php"); 
$box = new PluginSidebarBox("BlogArchives"); 
printXml($box->format());

$box = new RelatedLinksBox();
$body = $box->body;
if ($body->asString() != "")
    printXml($box->format());

$box = new PluginSidebarBox("RecentChanges"); 
printXml($box->format());

$box = new PluginSidebarBox("WhoIsOnline"); 
printXml($box->format());
/*
$box = new PluginSidebarBox("RssFeed",
                            array('url' => 'http://phpwiki.sourceforge.net/phpwiki/RecentChanges?format=rss',
                                  'title' => _("PhpWiki News"))); 
printXml($box->format());
*/
?>
<?php if (0 and defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?> 
&middot; <?= Button(array('action'=>'pdf'), "Pdf") ?>
<?php } ?>

<!-- The top navigation/search bar -->
<div class="toolbar"><?= Template('navbar') ?></div>

</div>
