1<?php
2/**
3 * DokuWiki Sidebar Template
4 * This template is the Dokuwiki Default Template with
5 * a configurable sidebar facility.
6 *
7 * @link   http://wiki.jalakai.co.uk/dokuwiki
8 * @link   http://dokuwiki.org/template/sidebar
9 * @author Christopher Smith <chris@jalakai.co.uk>
10 * @date   2009-01-27
11 *
12 * Default template by ...
13 *
14 * @link   http://dokuwiki.org/templates
15 * @author Andreas Gohr <andi@splitbrain.org>
16 */
17
18// must be run from within DokuWiki
19if (!defined('DOKU_INC')) die();
20
21// include functions that provide sidebar functionality
22@require_once(dirname(__FILE__).'/tplfn_sidebar.php');
23?>
24<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
25 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
26<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
27 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
28<head>
29  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
30  <title>
31    <?php tpl_pagetitle()?>
32    [<?php echo strip_tags($conf['title'])?>]
33  </title>
34
35  <?php tpl_metaheaders()?>
36
37  <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" />
38
39  <?php /*old includehook*/ @include(dirname(__FILE__).'/meta.html')?>
40</head>
41
42<body<?php if (tpl_getConf('enable')) echo " class='$sidebar_class'"; ?>>
43<?php /*old includehook*/ @include(dirname(__FILE__).'/topheader.html')?>
44<div class="dokuwiki">
45  <?php html_msgarea()?>
46
47  <div class="stylehead">
48
49    <div class="header">
50      <div class="pagename">
51        [[<?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true),'title="'.$lang['btn_backlink'].'"')?>]]
52      </div>
53      <div class="logo">
54        <?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[H]"')?>
55      </div>
56
57      <div class="clearer"></div>
58    </div>
59
60    <?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?>
61
62    <div class="bar" id="bar__top">
63      <div class="bar-left" id="bar__topleft">
64        <?php tpl_button('edit')?>
65        <?php tpl_button('history')?>
66      </div>
67
68      <div class="bar-right" id="bar__topright">
69        <?php tpl_button('recent')?>
70        <?php tpl_searchform()?>&nbsp;
71      </div>
72
73      <div class="clearer"></div>
74    </div>
75
76    <?php if($conf['breadcrumbs']){?>
77    <div class="breadcrumbs">
78      <?php tpl_breadcrumbs()?>
79      <?php //tpl_youarehere() //(some people prefer this)?>
80    </div>
81    <?php }?>
82
83    <?php if($conf['youarehere']){?>
84    <div class="breadcrumbs">
85      <?php tpl_youarehere() ?>
86    </div>
87    <?php }?>
88
89  </div>
90  <?php flush()?>
91
92  <?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?>
93
94  <div class="page">
95    <!-- wikipage start -->
96    <?php tpl_content()?>
97    <!-- wikipage stop -->
98  </div>
99<?php if (tpl_getConf('enable')) { ?>
100  <div id="sidebar">
101<?php /*    <div id="sidebartop">hide <?php tpl_sidebar_editbtn(); ?></div> */ ?>
102    <div id="sidebar_content">
103      <?php tpl_sidebar_content(); ?>
104    </div>
105  </div>
106<?php } ?>
107
108  <div class="clearer">&nbsp;</div>
109
110  <?php flush()?>
111
112  <div class="stylefoot">
113
114    <div class="meta">
115      <div class="user">
116        <?php tpl_userinfo()?>
117      </div>
118      <div class="doc">
119        <?php tpl_pageinfo()?>
120      </div>
121    </div>
122
123   <?php /*old includehook*/ @include(dirname(__FILE__).'/pagefooter.html')?>
124
125    <div class="bar" id="bar__bottom">
126      <div class="bar-left" id="bar__bottomleft">
127        <?php tpl_button('edit')?>
128        <?php tpl_button('history')?>
129      </div>
130      <div class="bar-right" id="bar__bottomright">
131        <?php tpl_button('subscribe')?>
132        <?php tpl_button('subscribens')?>
133        <?php tpl_button('admin')?>
134        <?php tpl_button('profile')?>
135        <?php tpl_button('login')?>
136        <?php tpl_button('index')?>
137        <?php tpl_button('top')?>&nbsp;
138      </div>
139      <div class="clearer"></div>
140    </div>
141
142  </div>
143
144  <?php tpl_license(false);?>
145
146</div>
147<?php /*old includehook*/ @include(dirname(__FILE__).'/footer.html')?>
148
149<div class="no"><?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug()?></div>
150</body>
151</html>
152