1<?php
2/**
3 * DokuWiki Jessica Template
4 * Based on the starter template
5 *
6 * @link     http://dokuwiki.org/template:jessica
7 * @author   desbest <afaninthehouse@gmail.com>
8 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
9 */
10
11if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
12@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
13header('X-UA-Compatible: IE=edge,chrome=1');
14
15$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) );
16$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
17?><!DOCTYPE html>
18<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
19  lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
20<head>
21    <meta charset="UTF-8" />
22    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
23    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
24    <?php tpl_metaheaders() ?>
25    <meta name="viewport" content="width=device-width,initial-scale=1" />
26    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
27    <?php tpl_includeFile('meta.html') ?>
28
29    <!-- drawer.css (see style.ini) -->
30    <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/drawer/3.2.2/css/drawer.min.css"> -->
31    <!-- jquery & iScroll -->
32    <script src="https://cdnjs.cloudflare.com/ajax/libs/iScroll/5.2.0/iscroll.min.js"></script>
33    <!-- drawer.js -->
34    <script src="https://cdnjs.cloudflare.com/ajax/libs/drawer/3.2.2/js/drawer.min.js"></script>
35    <script>
36    jQuery(document).ready(function() {
37      jQuery('.drawer').drawer();
38    });
39    </script>
40
41</head>
42
43<!-- <body> -->
44<body class="drawer drawer--left">
45
46    <div class="loading" id="loading">Loading more results</div>
47<div id="dokuwiki__top" class="wrapper site <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"><div class="container"><div class="contenthere">
48
49<?php tpl_includeFile('header.html') ?>
50<div class="header">
51<h1><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1>
52<?php if ($conf['tagline']): ?>
53    <p class="claim"><?php echo $conf['tagline'] ?></p>
54<?php endif ?>
55
56<ul class="a11y skip">
57    <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
58</ul>
59</div>
60
61<?php /* how to insert logo instead (if no CSS image replacement technique is used):
62    upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
63    tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
64
65<button type="button" class="drawer-toggle drawer-hamburger mobile">
66      <span class="sr-only">toggle navigation</span>
67      <span class="drawer-hamburger-icon"></span>
68    </button>
69    <nav class="drawer-nav" role="navigation">
70
71    <!-- ********** ASIDE ********** -->
72    <?php if ($showSidebar): ?>
73        <div id="mobilewrittensidebar">
74            <?php tpl_includeFile('sidebarheader.html') ?>
75            <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
76            <?php tpl_includeFile('sidebarfooter.html') ?>
77            <div class="clearer"></div>
78        </div><!-- /aside -->
79    <?php endif; ?>
80
81      <ul class="drawer-menu">
82        <li><span class="drawer-brand" href="#">Site Tools</span></li>
83        <?php tpl_toolsevent('sitetools', array(
84        'recent'    => tpl_action('recent', 1, 'li', 1),
85        'media'     => tpl_action('media', 1, 'li', 1),
86        'index'     => tpl_action('index', 1, 'li', 1),
87    )); ?>
88
89         <!-- PAGE ACTIONS -->
90        <?php if ($showTools): ?>
91        <li><span class="drawer-brand" href="#">Page Tools</span></li>
92        <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
93            <?php tpl_toolsevent('pagetools', array(
94                'edit'      => tpl_action('edit', 1, 'li', 1),
95                'discussion'=> _tpl_action('discussion', 1, 'li', 1),
96                'revisions' => tpl_action('revisions', 1, 'li', 1),
97                'backlink'  => tpl_action('backlink', 1, 'li', 1),
98                'subscribe' => tpl_action('subscribe', 1, 'li', 1),
99                'revert'    => tpl_action('revert', 1, 'li', 1),
100                'top'       => tpl_action('top', 1, 'li', 1),
101            )); ?>
102        <?php endif; ?>
103        <!-- USER TOOLS -->
104        <?php if ($conf['useacl'] && $showTools): ?>
105            <li><span class="drawer-brand" href="#">User Tools</span></li>
106            <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3>
107                <?php
108                    if (!empty($_SERVER['REMOTE_USER'])) {
109                        echo '<li class="user">';
110                        tpl_userinfo(); /* 'Logged in as ...' */
111                        echo '</li>';
112                    }
113                ?>
114                <?php /* the optional second parameter of tpl_action() switches between a link and a button,
115                         e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */
116                ?>
117                <?php tpl_toolsevent('usertools', array(
118                    'admin'     => tpl_action('admin', 1, 'li', 1),
119                    'userpage'  => _tpl_action('userpage', 1, 'li', 1),
120                    'profile'   => tpl_action('profile', 1, 'li', 1),
121                    'register'  => tpl_action('register', 1, 'li', 1),
122                    'login'     => tpl_action('login', 1, 'li', 1),
123                )); ?>
124        <?php endif ?>
125
126      </ul>
127    </nav>
128
129<div class="allcolumns">
130
131
132<div class="largeside">
133<?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
134
135<!-- BREADCRUMBS -->
136<?php if($conf['breadcrumbs']){ ?>
137    <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
138<?php } ?>
139<?php if($conf['youarehere']){ ?>
140    <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
141<?php } ?>
142
143 <!-- ********** CONTENT ********** -->
144<div id="dokuwiki__content">
145    <?php tpl_flush() /* flush the output buffer */ ?>
146    <?php tpl_includeFile('pageheader.html') ?>
147
148    <div class="page">
149        <!-- wikipage start -->
150        <?php tpl_content() /* the main content */ ?>
151        <!-- wikipage stop -->
152        <div class="clearer"></div>
153    </div>
154
155    <?php tpl_flush() ?>
156    <?php tpl_includeFile('pagefooter.html') ?>
157</div><!-- /content -->
158
159<br>
160<!-- <br><font class="shoulderline">Newest Products</font> -->
161<div style="clear"></div>
162</div> <!-- .largeside -->
163
164<div id="navcontainer">
165
166<!-- <h1>Search</h1> -->
167<?php tpl_searchform() ?>
168
169<ul class="navlist">
170<!-- SITE TOOLS -->
171<h3 class="a11y"><?php echo $lang['site_tools'] ?></h3>
172
173    <?php tpl_toolsevent('sitetools', array(
174        'recent'    => tpl_action('recent', 1, 'li', 1),
175        'media'     => tpl_action('media', 1, 'li', 1),
176        'index'     => tpl_action('index', 1, 'li', 1),
177    )); ?>
178</ul>
179
180
181 <!-- PAGE ACTIONS -->
182<?php if ($showTools): ?>
183<h1>Page Tools</h1>
184<h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
185<ul class="navlist">
186    <?php tpl_toolsevent('pagetools', array(
187        'edit'      => tpl_action('edit', 1, 'li', 1),
188        'discussion'=> _tpl_action('discussion', 1, 'li', 1),
189        'revisions' => tpl_action('revisions', 1, 'li', 1),
190        'backlink'  => tpl_action('backlink', 1, 'li', 1),
191        'subscribe' => tpl_action('subscribe', 1, 'li', 1),
192        'revert'    => tpl_action('revert', 1, 'li', 1),
193        'top'       => tpl_action('top', 1, 'li', 1),
194    )); ?>
195</ul>
196<?php endif; ?>
197
198 <!-- USER TOOLS -->
199<?php if ($conf['useacl'] && $showTools): ?>
200    <h1>User Tools</h1>
201    <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3>
202    <ul class="navlist">
203        <?php
204            if (!empty($_SERVER['REMOTE_USER'])) {
205                echo '<li class="user">';
206                tpl_userinfo(); /* 'Logged in as ...' */
207                echo '</li>';
208            }
209        ?>
210        <?php /* the optional second parameter of tpl_action() switches between a link and a button,
211                 e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */
212        ?>
213        <?php tpl_toolsevent('usertools', array(
214            'admin'     => tpl_action('admin', 1, 'li', 1),
215            'userpage'  => _tpl_action('userpage', 1, 'li', 1),
216            'profile'   => tpl_action('profile', 1, 'li', 1),
217            'register'  => tpl_action('register', 1, 'li', 1),
218            'login'     => tpl_action('login', 1, 'li', 1),
219        )); ?>
220    </ul>
221<?php endif ?>
222
223 <!-- ********** ASIDE ********** -->
224<?php if ($showSidebar): ?>
225    <div id="writtensidebar">
226        <?php tpl_includeFile('sidebarheader.html') ?>
227        <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
228        <?php tpl_includeFile('sidebarfooter.html') ?>
229        <div class="clearer"></div>
230    </div><!-- /aside -->
231<?php endif; ?>
232
233</div>
234
235</div> <!-- .allcolumns -->
236
237<p>This theme is made by <a href="http://desbest.com" target="_blank">desbest</a> and <a href="http://jessicarussellflint.co.uk" target="_blank">Jessica Russell Flint</a></p>
238<div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
239<?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
240<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
241</div></div></div>
242<?php tpl_includeFile('footer.html') ?>
243
244
245<!-- <hr> -->
246    <?php /* with these Conditional Comments you can better address IE issues in CSS files,
247             precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?>
248    <!--[if lte IE 8 ]><div id="IE8"><![endif]-->
249
250    <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
251    <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
252             should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
253
254
255    <!--[if lte IE 8 ]></div><![endif]-->
256</body>
257</html>
258