]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Sidebar/templates/body.tmpl
simplified Sidebar theme: table, not absolute css positioning
[SourceForge/phpwiki.git] / themes / Sidebar / templates / body.tmpl
1 <?php // -*-html-*-
2 rcs_id('$Id: body.tmpl,v 1.2 2004-04-01 15:57:20 rurban Exp $');
3 ?>
4 <body<?= $Theme->getMoreAttr('body') ?>>
5 <table class="sidebar" width="100%">
6   <tr>
7     <td valign="top"><table class="sidebar" width="160">
8       <tr>
9         <td 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"><?= _("Navigation") ?></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   printXml($box->format());
40
41   $box = new PluginSidebarBox("RecentChanges",array('limit'=>10)); 
42   printXml($box->format());
43
44   $box = new PluginSidebarBox("WhoIsOnline"); 
45   printXml($box->format());
46
47 ?>
48         </td>
49       </tr>
50     </table></td>
51     <td valign="top"><table class="sidebar" width="100%">
52       <tr>
53         <td valign="top">
54 <!-- Page title -->
55 <h1><?= $HEADER ?></h1>
56 <div class="toolbar">
57 <?= Template('actionbar') ?>
58 </div>
59 <?= $CONTENT ?>
60         </td>
61       </tr>
62     </table></td>
63   </tr>
64 </table>
65 <?= Template('bottom') ?>
66 </body>