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