1<?php
2/**
3 * DokuWiki Monobook Light Template
4 *
5 * This is the template you need to change for the overall look
6 * of DokuWiki.
7 *
8 * You should leave the doctype at the very top - It should
9 * always be the very first line of a document.
10 *
11 * @link   http://wiki.splitbrain.org/wiki:tpl:templates
12 * @author Andreas Gohr <andi@splitbrain.org>
13 * @author Michael Klier <chi@chimeric.de>
14 */
15
16// must be run from within DokuWiki
17if (!defined('DOKU_INC')) die();
18require_once(DOKU_TPLINC.'tpl_functions.php');
19
20?>
21<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
22 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
23<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
24 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
25<head>
26  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
27  <title>
28    <?php tpl_pagetitle()?>
29    [<?php echo strip_tags($conf['title'])?>]
30  </title>
31
32  <?php tpl_metaheaders()?>
33
34  <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" />
35
36  <?php /*old includehook*/ @include(dirname(__FILE__).'/meta.html')?>
37
38  <!-- change link borders dynamically -->
39  <style type="text/css">
40    <?php if($_REQUEST['do'] == 'show' || $_REQUEST['do'] == 'edit' ) { ?>
41    div.dokuwiki div#bar__top a.show,
42    div.dokuwiki div#bar__top a.source,
43    <?php } elseif ( $_REQUEST['do'] != '' ) { ?>
44    div.dokuwiki div#bar__top a.<?php echo $_REQUEST['do'];?>,
45    <?php } ?>
46	<?php if (ereg('^talk:', $ID)) { ?>
47    div.dokuwiki div#bar__top a.discussion
48    <?php } else {?>
49    div.dokuwiki div#bar__top a.article
50    <?php } ?>
51    {
52      border-color: #fabd23;
53      border-bottom: 1px solid #fff;
54      font-weight: bold;
55    }
56  </style>
57</head>
58
59<body>
60<?php /*old includehook*/ @include(dirname(__FILE__).'/topheader.html')?>
61<div class="dokuwiki">
62  <?php html_msgarea()?>
63
64  <div id="sidebar">
65    <?php tpl_logo()?>
66    <?php tpl_sidebar()?>
67  </div>
68
69  <div id="dokubook_container">
70
71    <div class="stylehead">
72
73      <div class="header">
74        <?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?>
75        <?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?>
76        <div class="logo">
77          <?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" accesskey="h" title="[ALT+H]"')?>
78        </div>
79      </div>
80
81      <div id="bar__top">
82		<?php //if (ereg('discussion$', $ID)) tpl_actionlink('article'); ?>
83		<?php ts_tpl_actionlink('article'); ?>
84		<?php ts_tpl_actionlink('discussion'); ?>
85        <?php tpl_actionlink('edit')?>
86        <?php tpl_actionlink('history')?>
87        <?php tpl_actionlink('subscribe')?>
88      </div>
89
90      <div class="clearer"></div>
91
92    </div>
93
94    <?php flush()?>
95
96    <div class="page">
97
98      <?php if($conf['breadcrumbs']){?>
99      <div class="breadcrumbs">
100        <?php tpl_breadcrumbs()?>
101      </div>
102      <?php }?>
103
104      <?php if($conf['youarehere'] && 0 ){?>
105      <div class="breadcrumbs">
106        <?php tpl_youarehere() ?>
107      </div>
108      <?php }?>
109
110      <!-- wikipage start -->
111      <?php tpl_content()?>
112      <!-- wikipage stop -->
113
114
115      <div class="meta">
116        <div class="doc">
117          <?php tpl_pageinfo()?>
118        </div>
119      </div>
120
121      <?php tpl_actionlink('top')?>
122
123    </div>
124
125    <?php flush()?>
126
127    <div class="clearer"></div>
128
129    <div class="stylefoot">
130      <?php /*old includehook*/ @include(dirname(__FILE__).'/pagefooter.html')?>
131    </div>
132
133  </div>
134
135<?php /*old includehook*/ @include(dirname(__FILE__).'/footer.html')?>
136</div>
137<div class="no"><?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug()?></div>
138</body>
139</html>
140