]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/blog/templates/sidebar.tmpl
new blog theme: Kubrick
[SourceForge/phpwiki.git] / themes / blog / templates / sidebar.tmpl
1 <?php // -*-html-*-
2 rcs_id('$Id: sidebar.tmpl,v 1.1 2004-12-14 21:30:37 rurban Exp $');
3 ?>
4 <div id="sidebar">
5 <?php
6   /* Today's Blogs page for the current or admin user, if the subpage is defined. */
7   $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Blogs");
8   $dbi = $request->getDbh();
9   // display flat calender dhtml under the clock
10   if (!$dbi->isWikiPage($UserCalPageTitle)) {
11     if (BLOG_EMPTY_DEFAULT_PREFIX)
12       $UserCalPageTitle = _("Blogs");
13     else
14       $UserCalPageTitle = ADMIN_USER . SUBPAGE_SEPARATOR . _("Blogs");
15   }
16 ?>
17 <div class="box">
18 <div class="box-title"><?= WikiLink($UserCalPageTitle,'known',_("Calendar")) ?></div>
19 <div class="box-data">
20     <?= Template('calendar') ?>
21 </div></div>
22 <?php
23 include_once("lib/WikiPlugin.php"); 
24 $box = new PluginSidebarBox("BlogArchives"); 
25 printXml($box->format());
26
27 $box = new RelatedLinksBox();
28 $body = $box->body;
29 if ($body->asString() != "")
30     printXml($box->format());
31
32 $box = new PluginSidebarBox("RecentChanges",array('limit'=>10)); 
33 printXml($box->format());
34
35 $box = new PluginSidebarBox("WhoIsOnline"); 
36 printXml($box->format());
37 /*
38 $box = new PluginSidebarBox("RssFeed",
39                             array('url' => 'http://phpwiki.sourceforge.net/phpwiki/RecentChanges?format=rss',
40                                   'title' => _("PhpWiki News"))); 
41 printXml($box->format());
42 */
43 ?>
44
45 <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?> 
46 &middot; <?= Button(array('action'=>'pdf'), "Pdf") ?>
47 <?php } ?>
48
49 <!-- The top navigation/search bar -->
50 <div class="toolbar"><?= Template('navbar') ?></div>
51
52 </div>