1<?php
2/**
3 * DokuWiki DokuCMS Template
4 *
5 * @link   http://wiki.splitbrain.org/wiki:tpl:templates
6 * @author Andreas Gohr <andi@splitbrain.org>
7 * @author Klaus Vormweg <klaus.vormweg@gmx.de>
8 */
9
10// must be run from within DokuWiki
11if (!defined('DOKU_INC')) die();
12
13// include custom template functions stolen from arctic template
14require_once(dirname(__FILE__).'/tpl_functions.php');
15
16echo '
17<!DOCTYPE html>
18<html lang="', $conf['lang'], '" dir="', $lang['direction'], '">
19<head>
20  <meta charset="utf-8" />
21  <title>',"\n";
22tpl_pagetitle();
23echo '[', strip_tags($conf['title']), ']
24  </title>
25  <meta name="viewport" content="width=device-width, initial-scale=1.0" />',"\n";
26tpl_metaheaders();
27echo tpl_favicon(array('favicon', 'mobile'));
28echo '
29<!--[if lt IE 7]>
30   <style type="text/css">
31      div.page { width: 55em !important; }
32   </style>
33<![endif]-->
34</head>
35
36<body>
37<div class="dokuwiki">',"\n";
38html_msgarea();
39echo '  <header class="stylehead">
40    <div class="header">
41      <div class="pagename">',"\n";
42tpl_link(wl(),$conf['title'],'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]"');
43echo '      </div>
44      <div class="clearer"></div>
45    </div>',"\n";
46if($conf['breadcrumbs']){
47  echo '    <div class="breadcrumbs">',"\n";
48  tpl_breadcrumbs();
49  echo '  </div>',"\n";
50}
51
52if($conf['youarehere']){
53  echo '    <div class="breadcrumbs">',"\n";
54  tpl_youarehere();
55  echo '    </div>',"\n";
56}
57echo '  </header>',"\n";
58tpl_flush();
59
60if($ACT != 'diff' and $ACT != 'edit' and $ACT != 'preview' and $ACT != 'admin' and
61   $ACT != 'login' and $ACT != 'logout' and $ACT != 'profile' and $ACT != 'revisions') {
62  echo '  <div class="wrap">
63     <nav class="sidebar">
64     <input type="checkbox" id="hamburger" class="hamburger" />
65     <label for="hamburger" class="hamburger" title="Menu">&#9776; <span class="vishelp">Menu</span></label>',"\n";
66  _tpl_sidebar();
67  echo '   </nav>
68     <div class="page">',"\n";
69  tpl_content();
70  echo '   </div>
71  </div>',"\n";
72} else {
73  echo '<div class="wrap" style="background-color: #fff;">
74     <div class="page" style="margin-left: 0; max-width: 78em;">',"\n";
75  tpl_content();
76  echo '   </div>
77  </div>',"\n";
78}
79tpl_flush();
80echo '  <footer class="stylefoot">',"\n";
81if($ACT != 'diff' and $ACT != 'edit' and $ACT != 'preview' and $ACT != 'admin'
82   and  $ACT != 'login' and $ACT != 'logout' and $ACT != 'profile' and $ACT != 'revisions') {
83  echo '     <div class="homelink">
84        <a href="http://wiki.splitbrain.org/wiki:dokuwiki" title="Driven by DokuWiki">',
85        '<img src="', DOKU_TPL, 'images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" /></a>
86        <a href="', DOKU_BASE, 'feed.php" title="Recent changes RSS feed">',
87        '<img src="', DOKU_TPL, 'images/button-rss.png" width="80" height="15" alt="Recent changes RSS feed" /></a>
88      </div>
89
90    <div class="meta">',"\n";
91  _tpl_pageinfo();
92  echo '  </div>',"\n";
93} else {
94	echo '
95    <div class="meta">
96    </div>',"\n";
97}
98echo '    <div class="bar" id="bar__bottom">
99       <div class="bar-left" id="bar__bottomleft">',"\n";
100tpl_button('admin');
101if($ACT != 'login' and $ACT != 'logout') {
102  tpl_button('login');
103  echo '&nbsp;';
104}
105if($_SERVER['REMOTE_USER']){
106  tpl_button('subscribe');
107	tpl_button('profile');
108	tpl_button('history');
109  tpl_button('revert');
110}
111if($conf['tpl']['dokucms']['showbacklinks']) {
112  tpl_button('backlink');
113  echo '&nbsp;';
114}
115echo '         &nbsp;
116       </div>
117       <div class="bar-right" id="bar__bottomright">',"\n";
118if(!$_SERVER['REMOTE_USER']){
119  tpl_searchform();
120  echo '&nbsp';
121  if($conf['tpl']['dokucms']['showmedia'] and $ACT != 'login' and $ACT != 'logout') {
122    tpl_button('media');
123  }
124} else {
125  if($ACT != 'login' and $ACT != 'logout'){
126    if($conf['tpl']['dokucms']['showsearch']) {
127      tpl_searchform();
128      echo '&nbsp';
129    }
130    tpl_button('media');
131  }
132}
133tpl_button('edit');
134echo '&nbsp;
135      </div>
136      <div class="clearer"></div>
137    </div>
138  </footer>',"\n";
139tpl_license(false);
140echo '
141</div>
142<div class="no">';
143/* provide DokuWiki housekeeping, required in all templates */
144tpl_indexerWebBug();
145echo '</div>
146</body>
147</html>',"\n";
148?>
149