]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Sidebar/templates/body.tmpl
add working dynamic hyperwiki sidebar box (hyperapplet not yet),
[SourceForge/phpwiki.git] / themes / Sidebar / templates / body.tmpl
1 <?php // -*-html-*-
2 rcs_id('$Id: body.tmpl,v 1.8 2004-12-17 16:12:07 rurban Exp $');
3 ?>
4 <body<?= $WikiTheme->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 } ?>
33 <div id="clock">
34 <? // include($WikiTheme->_findFile("hyperapplet.php")); ?>
35 <? include($WikiTheme->_findFile("hyperwiki.php")); ?>
36 <? // include($WikiTheme->_findFile("clock.php")); ?>
37 </div>
38 <?php 
39 $box = new RelatedLinksBox();
40 $body = $box->body;
41 if ($body->asString() != "")
42     printXml($box->format());
43
44 $box = new PluginSidebarBox("RecentChanges",array('limit'=>10)); 
45 printXml($box->format());
46
47 $box = new PluginSidebarBox("WhoIsOnline"); 
48 printXml($box->format());
49 /*
50 $box = new PluginSidebarBox("RssFeed",
51                             array('url' => 'http://phpwiki.sourceforge.net/phpwiki/RecentChanges?format=rss',
52                                   'title' => _("PhpWiki News"))); 
53 printXml($box->format());
54 */
55 ?>
56         </td>
57       </tr>
58     </table></td>
59     <td align="left" valign="top"><table align="left" width="100%">
60       <tr>
61         <td align="left" valign="top">
62 <!-- Page title -->
63 <h1><?= $HEADER ?></h1>
64 <div class="toolbar">
65 <?= Template('actionbar') ?>
66 </div>
67 <?= $CONTENT ?>
68         </td>
69       </tr>
70     </table></td>
71   </tr>
72 </table>
73 <?= Template('bottom') ?>
74 </body>