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