1<?php
2/**
3 * DokuWiki Default Template
4 *
5 * This is the template you need to change for the overall look
6 * of DokuWiki.
7 *
8 * @link   http://wiki.splitbrain.org/wiki:tpl:templates
9 * @author Andreas Gohr <andi@splitbrain.org>
10 * @author Esther Brunner <wikidesign@gmail.com>
11 * spacedok template adapted froom minima by
12 * @author Tony Baldwin <tonybaldwin@gmx.com>
13 * live sample at http://tonybaldwin.me/hax
14 */
15
16// must be run from within DokuWiki
17if (!defined('DOKU_INC')) die();
18
19// include functions that provide sidebar and tabs functionality
20@require_once(dirname(__FILE__).'/functions.php');
21spacedok_checkColor();
22
23?>
24<?php
25/**
26<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
27 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
28<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
29 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
30 */
31?>
32<!DOCTYPE html>
33<html lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
34<head>
35  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
36  <meta http-equiv="x-ua-compatible" content="IE=8">
37  <title>
38    <?php spacedok_nstitle(); tpl_pagetitle()?> · <?php echo strip_tags($conf['title'])?>
39  </title>
40
41  <?php tpl_metaheaders()?>
42
43  <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" />
44
45  <?php /*old includehook*/ @include(dirname(__FILE__).'/meta.html')?>
46</head>
47
48<body>
49<?php /*old includehook*/ @include(dirname(__FILE__).'/topheader.html')?>
50<div class="dokuwiki" id="<?php spacedok_classID()?>">
51  <?php html_msgarea()?>
52
53  <div class="header">
54    <div class="logo">
55      <?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]"')?>
56    </div>
57  </div>
58
59  <?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?>
60
61  <div class="main">
62
63    <?php if($conf['breadcrumbs']){?>
64    <div class="breadcrumbs">
65      <?php tpl_breadcrumbs()?>
66    </div>
67    <?php }?>
68
69    <?php if($conf['youarehere']){?>
70    <div class="breadcrumbs">
71      <?php tpl_youarehere()?>
72    </div>
73    <?php }?>
74
75    <?php flush()?>
76
77    <?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?>
78
79    <?php spacedok_tabs()?>
80
81  </div>
82  <div class="main">
83
84    <div class="page">
85
86      <!-- wikipage start -->
87      <?php tpl_content()?>
88      <!-- wikipage stop -->
89
90      <?php if ($INFO['exists'] && ($ACT == 'show') && $INFO['perm']
91        && tpl_getConf('showpageinfo')){?>
92      <div class="meta">
93        <?php tpl_pageinfo()?>
94      </div>
95      <?php }?>
96
97      <?php /*old includehook*/ @include(dirname(__FILE__).'/pagefooter.html')?>
98
99      <?php if ($INFO['editable']){?>
100      <div class="bar">
101      <?php
102        tpl_button('edit').' '.tpl_button('history').' '.
103        tpl_button('backlink').' '.tpl_button('subscription').' '.
104        tpl_button('revert')
105      ?>
106      </div>
107      <?php }?>
108    </div><!-- page -->
109
110    <div class="sidebar">
111      <p><strong><a href="http://tonybaldwin.me">tonybaldwin.me</a></strong></p>
112      <?php spacedok_sidebar()?>
113      <hr />
114      <?php if (tpl_getConf('showsiteactions')){?>
115        <ul>
116          <li><div class="li"><?php tpl_actionlink('index')?></div></li>
117          <li><div class="li"><?php tpl_actionlink('recent')?></div></li>
118        </ul>
119      <?php }?>
120      <div class="search"><?php tpl_searchform()?></div>
121      <?php if (tpl_getConf('showuseractions')){?>
122        <hr />
123        <ul>
124          <li><div class="li"><?php tpl_actionlink('login')?>
125          <?php if ($_SERVER['REMOTE_USER']){?>
126            <?php echo $INFO['userinfo']['name']?>
127            </div></li>
128          <?php }?>
129          <?php if (tpl_get_action('profile')) { ?>
130            <li><div class="li">
131            <?php tpl_actionlink('profile')?>
132            </div></li>
133          <?php }?>
134          <?php if ($INFO['perm'] == 255){?>
135            <li><div class="li"><?php tpl_actionlink('admin')?></div></li>
136          <?php }?>
137        </ul>
138      <?php }?>
139    </div><!-- sidebar -->
140
141  </div><!-- main -->
142
143<?php
144//  <div class="clearer"></div>
145?>
146
147  <?php flush()?>
148<!--
149  <div class="footer">
150    <div class="edgeleft"><div class="borderbottom">&nbsp;</div></div>
151    <div class="edgeright"><div class="borderbottom">&nbsp;</div></div>
152  </div><!-- footer -->
153--!>
154
155</div>
156<?php /*old includehook*/ @include(dirname(__FILE__).'/footer.html')?>
157
158<div class="no"><?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug()?></div>
159</body>
160</html>
161