]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Sidebar/templates/body.tmpl
remove redundant wrong templates, fix IE errors by removing printf, improve Sidebar...
[SourceForge/phpwiki.git] / themes / Sidebar / templates / body.tmpl
1 <?php // -*-html-*-
2 rcs_id('$Id: body.tmpl,v 1.9 2005-02-04 13:25:07 rurban Exp $');
3 ?>
4 <body<?= $WikiTheme->getMoreAttr('body') ?>>
5 <table width="100%">
6   <tr>
7     <td class="sidebar" align="left" valign="top">
8 <div class="box">
9 <?= Template('top') ?>
10 </div>
11 <?php
12 global $HIDE_TOOLBARS;
13 if (!$HIDE_TOOLBARS) {
14 ?>
15 <div class="box"><div class="box-title"><?= _("Navigation") ?></div>
16 <div class="box-data">
17   <?= Template('navbar') ?>
18 </div></div>
19 <?php }
20   /* Today's calendar page for the user, if the Calender subpage is defined. */
21   $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Calendar");
22   $dbi = $request->getDbh();
23   // display flat calender dhtml under the clock
24   if ($dbi->isWikiPage($UserCalPageTitle)) { ?>
25 <div class="box">
26 <div class="box-title"><?= WikiLink($UserCalPageTitle,'known',_("Calendar")) ?></div>
27 <div class="box-data">
28     <?= Template('calendar') ?>
29 </div></div>
30 <?php } ?>
31 <div id="clock">
32 <? // include($WikiTheme->_findFile("hyperapplet.php")); ?>
33 <? // include($WikiTheme->_findFile("hyperwiki.php")); ?>
34 <? // include($WikiTheme->_findFile("clock.php")); ?>
35 </div>
36 <?php 
37 $box = new RelatedLinksBox();
38 $body = $box->body;
39 if ($body->asString() != "")
40     printXml($box->format());
41
42 $box = new PluginSidebarBox("RecentChanges",array('limit'=>10)); 
43 printXml($box->format());
44
45 $box = new PluginSidebarBox("WhoIsOnline"); 
46 printXml($box->format());
47 /*
48 $box = new PluginSidebarBox("RssFeed",
49                             array('url' => 'http://phpwiki.sourceforge.net/phpwiki/RecentChanges?format=rss',
50                                   'title' => _("PhpWiki News"))); 
51 printXml($box->format());
52 */
53 ?>
54     </td>
55     <td class="main" align="left" valign="top" width="100%">
56 <!-- Page title -->
57 <h1><?= $HEADER ?></h1>
58 <div class="toolbar">
59 <?= Template('actionbar') ?>
60 </div>
61 <?= $CONTENT ?>
62     </td>
63   </tr>
64 </table>
65 <?= Template('bottom') ?>
66 </body>