1<?php
2/**
3 * DokuWiki Panorama Cake Template
4 * Based on the starter template
5 *
6 * @link     http://dokuwiki.org/template:panoramacake
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
30<!-- drawer.css -->
31<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/drawer/3.2.2/css/drawer.min.css">
32<!-- jquery & iScroll -->
33<script defer src="https://cdnjs.cloudflare.com/ajax/libs/iScroll/5.2.0/iscroll.min.js"></script>
34<!-- drawer.js -->
35<script defer src="https://cdnjs.cloudflare.com/ajax/libs/drawer/3.2.2/js/drawer.min.js"></script>
36<script defer type="text/javascript" src="<?php echo tpl_basedir();?>/mobileinputsize.js"></script>
37<script defer type="text/javascript" src="<?php echo tpl_basedir();?>/improvebreadcrumbs.js"></script>
38</head>
39
40<body class="drawer drawer--left">
41
42
43    <button type="button" class="drawer-toggle drawer-hamburger mobile">
44      <span class="sr-only">toggle navigation</span>
45      <span class="drawer-hamburger-icon"></span>
46    </button>
47    <nav class="drawer-nav" role="navigation">
48      <ul class="drawer-menu">
49        <!-- <li><a class="drawer-brand" href="#">MENU</a></li> -->
50
51    <div class="padhere">
52    <?php tpl_searchform() ?>
53
54    <!-- ********** ASIDE ********** -->
55    <?php if ($showSidebar): ?>
56    <div id="writtensidebarmobile">
57    <?php tpl_includeFile('sidebarheader.html') ?>
58    <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
59    <?php tpl_includeFile('sidebarfooter.html') ?>
60    <div class="clearer"></div>
61    </div><!-- /aside -->
62    <?php endif; ?>
63    </div>
64
65        <li class="mobile"><a class="drawer-brand" href="#">MAIN MENU</a></li>
66        <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3>
67            <?php tpl_toolsevent('sitetools', array(
68                'recent'    => tpl_action('recent', 1, 'li class=\'drawer-menu-item mobile\'', 1),
69                'media'     => tpl_action('media', 1, 'li class=\'drawer-menu-item mobile\'', 1),
70                'index'     => tpl_action('index', 1, 'li class=\'drawer-menu-item mobile\'', 1),
71            )); ?>
72
73         <!-- PAGE ACTIONS -->
74            <?php if ($showTools): ?>
75                <li><a class="drawer-brand" href="#">PAGE TOOLS</a></li>
76            <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
77                <?php tpl_toolsevent('pagetools', array(
78                    'edit'      => tpl_action('edit', 1, 'li class=\'drawer-menu-item\'', 1),
79                    'discussion'=> _tpl_action('discussion', 1, 'li class=\'drawer-menu-item\'', 1),
80                    'revisions' => tpl_action('revisions', 1, 'li class=\'drawer-menu-item\'', 1),
81                    'backlink'  => tpl_action('backlink', 1, 'li class=\'drawer-menu-item\'', 1),
82                    'subscribe' => tpl_action('subscribe', 1, 'li class=\'drawer-menu-item\'', 1),
83                    'revert'    => tpl_action('revert', 1, 'li class=\'drawer-menu-item\'', 1),
84                    'top'       => tpl_action('top', 1, 'li class=\'drawer-menu-item\'', 1),
85                )); ?>
86            <?php endif; ?>
87             <!-- USER TOOLS -->
88                <?php if ($conf['useacl'] && $showTools): ?>
89                    <li><a class="drawer-brand" href="#">USER TOOLS</a></li>
90                <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3>
91                    <?php
92                        if (!empty($_SERVER['REMOTE_USER'])) {
93                            echo '<li class="user">';
94                            tpl_userinfo(); /* 'Logged in as ...' */
95                            echo '</li>';
96                        }
97                    ?>
98                    <?php /* the optional second parameter of tpl_action() switches between a link and a button,
99                             e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */
100                    ?>
101                    <?php tpl_toolsevent('usertools', array(
102                        'admin'     => tpl_action('admin', 1, 'li class=\'drawer-menu-item\'', 1),
103                        'userpage'  => _tpl_action('userpage', 1, 'li class=\'drawer-menu-item\'', 1),
104                        'profile'   => tpl_action('profile', 1, 'li class=\'drawer-menu-item\'', 1),
105                        'register'  => tpl_action('register', 1, 'li class=\'drawer-menu-item\'', 1),
106                        'login'     => tpl_action('login', 1, 'li class=\'drawer-menu-item\'', 1),
107                    )); ?>
108                <?php endif ?>
109      </ul>
110
111
112    </nav>
113
114<?php tpl_includeFile('header.html') ?>
115<div id="dokuwiki__top" class="headerbar">
116  <div class="sitename"><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?>
117        <?php if ($conf['tagline']): ?>
118            <p class="claim"><?php echo $conf['tagline'] ?></p>
119        <?php endif ?>
120  </div>
121                <?php /* how to insert logo instead (if no CSS image replacement technique is used):
122                        upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
123                        tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
124
125 <ul class="a11y skip">
126                    <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
127                </ul>
128
129    <div class="ibfr">
130        <div id="navcontainer" class="desktop">
131        <ul id="navlist">
132        <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3>
133            <?php tpl_toolsevent('sitetools', array(
134                'recent'    => tpl_action('recent', 1, 'li ', 1),
135                'media'     => tpl_action('media', 1, 'li ', 1),
136                'index'     => tpl_action('index', 1, 'li ', 1),
137            )); ?>
138        </ul>
139        </div>
140    </div>
141</div>
142<div class="middlebar">
143  <div class="menublock">
144    <div class="menuhere">
145
146    <?php tpl_searchform() ?>
147
148     <!-- ********** ASIDE ********** -->
149    <?php if ($showSidebar): ?>
150    <div id="writtensidebar"><div class="pad aside include group">
151        <?php tpl_includeFile('sidebarheader.html') ?>
152        <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
153        <?php tpl_includeFile('sidebarfooter.html') ?>
154        <div class="clearer"></div>
155    </div></div><!-- /aside -->
156    <?php endif; ?>
157
158      <div id="ddblueblockmenu">
159        <div class="menutitle">Page Tools</div>
160          <ul>
161
162            <!-- PAGE ACTIONS -->
163            <?php if ($showTools): ?>
164            <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
165                <?php tpl_toolsevent('pagetools', array(
166                    'edit'      => tpl_action('edit', 1, 'li', 1),
167                    'discussion'=> _tpl_action('discussion', 1, 'li', 1),
168                    'revisions' => tpl_action('revisions', 1, 'li', 1),
169                    'backlink'  => tpl_action('backlink', 1, 'li', 1),
170                    'subscribe' => tpl_action('subscribe', 1, 'li', 1),
171                    'revert'    => tpl_action('revert', 1, 'li', 1),
172                    'top'       => tpl_action('top', 1, 'li', 1),
173                )); ?>
174            <?php endif; ?>
175
176          </ul>
177        <div class="menutitle">User Tools</div>
178          <ul>
179             <div class="tools">
180                <!-- USER TOOLS -->
181                <?php if ($conf['useacl'] && $showTools): ?>
182                <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3>
183                    <?php
184                        if (!empty($_SERVER['REMOTE_USER'])) {
185                            echo '<p class="user">';
186                            tpl_userinfo(); /* 'Logged in as ...' */
187                            echo '</p>';
188                        }
189                    ?>
190                    <?php /* the optional second parameter of tpl_action() switches between a link and a button,
191                             e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */
192                    ?>
193                    <?php tpl_toolsevent('usertools', array(
194                        'admin'     => tpl_action('admin', 1, 'li', 1),
195                        'userpage'  => _tpl_action('userpage', 1, 'li', 1),
196                        'profile'   => tpl_action('profile', 1, 'li', 1),
197                        'register'  => tpl_action('register', 1, 'li', 1),
198                        'login'     => tpl_action('login', 1, 'li', 1),
199                    )); ?>
200                <?php endif ?>
201          </ul>
202      </div>
203    </div>
204  </div>
205  <div class="contentblock">
206   <!--  <div class="breadcrumbshere"><ul class="breadcrumb">
207    <li><a href="#">Home</a></li>
208    <li><a href="#">Category 1</a></li>
209    <li><a href="#">Subcategory</a></li>
210    </ul></div> -->
211
212    <!-- BREADCRUMBS -->
213    <div class="breadcrumbshere"><ul class="breadcrumb">
214    <?php if($conf['breadcrumbs']){ ?>
215        <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
216    <?php } ?>
217    <?php if($conf['youarehere']){ ?>
218        <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
219    <?php } ?>
220    </ul></div>
221
222
223    <!-- ********** CONTENT ********** -->
224     <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
225
226
227    <div id="dokuwiki__content"><div class="thumbshere site <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
228        <?php tpl_flush() /* flush the output buffer */ ?>
229        <?php tpl_includeFile('pageheader.html') ?>
230
231        <div class="page">
232            <!-- wikipage start -->
233            <?php tpl_content() /* the main content */ ?>
234            <!-- wikipage stop -->
235            <div class="clearer"></div>
236        </div>
237
238        <?php tpl_flush() ?>
239        <?php tpl_includeFile('pagefooter.html') ?>
240    </div></div><!-- /content -->
241    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
242
243
244  </div>
245</div>
246<div class="footerbar"><div style="float: right; margin: 0px 1em;">
247    <a href="http://desbest.com" target="_blank">Panorama theme by desbest</a></div>
248    <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
249    <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
250</div>
251<?php tpl_includeFile('footer.html') ?>
252</div> <!-- close .push -->
253
254    <?php /* with these Conditional Comments you can better address IE issues in CSS files,
255             precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?>
256    <!--[if lte IE 8 ]><div id="IE8"><![endif]-->
257
258    <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
259    <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
260             should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
261</body>
262</html>
263