xref: /template/sprintdoc/main.php (revision 2e7555ebeb04309ce4f0a31e32a3987e65f3a8a9)
1<!DOCTYPE html>
2<?php
3
4/**
5 * DokuWiki sprintDoc Template
6 *
7 * @link     FIXME
8 * @author   Jana Deutschlaender <deutschlaender@cosmocode.de>
9 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
10 */
11
12use dokuwiki\template\sprintdoc\Template;
13
14if (!defined('DOKU_INC')) die();                        /* must be run from within DokuWiki */
15header('X-UA-Compatible: IE=edge,chrome=1');
16
17$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) );
18$showSidebar =  true; /*  */
19?>
20<html class="edge no-js" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>">
21<head>
22<?php
23/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
24/* meta and link relations */
25/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
26?>
27<meta charset="utf-8" />
28<meta name="viewport" content="width=device-width, initial-scale=1.0" />
29<?php tpl_metaheaders() ?>
30<?php
31
32
33/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
34/* page title */
35/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
36?>
37<title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
38
39<script type="text/javascript">(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
40
41<?php
42
43
44/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
45/* favicons */
46/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
47?>
48<?php
49    include('tpl/favicon_tiles.php');
50?>
51<?php
52
53
54/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
55/* Include Hook: meta.html */
56/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
57?>
58<?php tpl_includeFile('meta.html') ?>
59</head>
60<?php
61
62
63/* #dokuwiki__top used as anchor for "back to top" button/link links */
64$classWideContent = ($ACT === "show") ? "": "wide-content ";
65?>
66<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> <?php echo ($ACT) ? 'do-'.$ACT : 'do-none'; ?> <?php echo $classWideContent; ?><?php echo ($showSidebar) ? 'showSidebar' : ''; ?>">
67
68<div id="dokuwiki__site">
69    <?php
70
71
72/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
73/* template Include: tpl/nav-direct */
74/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
75    ?>
76    <?php include('tpl/nav-direct.php') ?>
77
78
79    <div class="page-wrapper <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
80        <?php
81/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
82/* Include Hook: header.html */
83/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
84            tpl_includeFile('header.html');
85
86/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
87/* User Tools and MagicMatcher Bar */
88/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
89
90            /** @var \helper_plugin_magicmatcher_context $mm */
91            $mm = plugin_load('helper', 'magicmatcher_context');
92            $headerClass = ""; /* for additionial class in #dokuwiki__header */
93            $navClass = "";    /* for additionial class in #dokuwiki__usertools (header.html) */
94
95            if($mm){
96                $matcher = $mm->getIssueContextBar();
97                if($matcher !== ""){
98                    $headerClass = "has-magicmatcher";
99                    $navClass = "has-bar";
100                }
101            }
102        ?>
103
104        <div id="dokuwiki__header" class="header <?php echo $headerClass; ?> no-print">
105            <div class="container">
106                <div class="row">
107                    <div class="col-xs-12">
108                        <div class="claim main-sidebar">
109                            <div class="menu-togglelink mobile-only">
110                                <a href="#">
111                                    <span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle'); ?></span>
112                                </a>
113                            </div>
114
115                            <?php if (tpl_getConf('logo') && file_exists(mediaFN(tpl_getConf('logo')))){
116
117
118/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
119/* Logo */
120/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
121/* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */
122                                include('tpl/main-sidebar-logo.php');
123                             } ?>
124                            <div class="main-title">
125                                <?php if ($conf['title']):
126
127/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
128/* Wiki Title Mobile */
129/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
130                                    <p class="title mobile-only"><?php echo $conf['title'] ?></p>
131                                <?php endif ?>
132                            </div><!-- .main-title -->
133                        </div><!-- .headings -->
134                    </div><!-- .col -->
135
136
137                    <div class="col-xs-12">
138                        <div class="main-title desktop-only">
139                            <?php if ($conf['title']):
140
141/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
142/* Wiki Title Desktop */
143/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
144                                <p class="title"><?php echo $conf['title'] ?></p>
145                            <?php endif ?>
146                            <?php if ($conf['tagline']):
147
148/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
149/* Wiki Tagline Desktop */
150/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
151                                <p class="claim"><?php echo $conf['tagline'] ?></p>
152                            <?php endif ?>
153                        </div><!-- .main-title -->
154                    </div><!-- .col -->
155                </div><!-- .row -->
156            </div><!-- .container -->
157        </div><!-- .header -->
158        <?php
159
160
161/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
162/* headline menu area (Accessibility ) */
163/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
164        ?>
165
166        <div class="sr-only nav-area-head">
167            <h5 class="sr-only" role="heading" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5>
168        </div><!-- .nav-area-head -->
169
170        <div class="tools">
171            <div class="container">
172                <div class="row">
173                    <div class="col-xs-12">
174
175                        <div class="sidebarheader main-sidebar">
176                            <?php
177
178
179/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
180/* Include Hook: sidebarheader.html */
181/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
182                                tpl_includeFile('sidebarheader.html')
183                            ?>
184                        </div><!-- .sidebarheader -->
185
186                        <div class="search main-sidebar">
187                            <?php
188
189
190/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
191/* search form */
192/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
193                                include('tpl/main-sidebar-search.php');
194                            ?>
195                        </div><!-- .search -->
196
197                        <div id="dokuwiki__aside">
198
199                            <?php
200                            echo Template::getInstance()->getInclude(
201                                'sidebarheader',
202                                '<div class="sidebarheader">',
203                                '<div class="clearer"></div></div>'
204                            );
205                            ?>
206
207                            <?php
208/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
209/* sidebar */
210/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
211                                include('tpl/main-sidebar-nav.php');
212                            ?>
213
214                            <?php
215                            echo Template::getInstance()->getInclude(
216                                'sidebarfooter',
217                                '<div class="sidebarfooter">',
218                                '<div class="clearer"></div></div>'
219                            );
220                            ?>
221                        </div><!-- .aside -->
222
223                    </div><!-- .col -->
224                </div><!-- .row -->
225            </div><!-- .container -->
226        </div><!-- .tools -->
227
228
229        <div class="top-header">
230            <div class="container">
231                <div class="row">
232                    <div class="col-xs-12">
233
234                        <?php
235
236
237/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
238/* User Tools and MagicMatcher Bar */
239/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
240                            include('tpl/nav-usertools-buttons.php');
241                            if($mm && $matcher !== ""){
242                                include('tpl/nav-magicmatcher.php');
243                            }
244
245/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
246/* Include Hook: header.html */
247/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
248                            tpl_includeFile('header.html');
249                        ?>
250
251                    </div><!-- .col -->
252                </div><!-- .row -->
253            </div><!-- .container -->
254        </div><!-- /top-header -->
255
256
257        <div class="content">
258            <div class="container">
259                <div class="row">
260                    <div class="col-xs-12">
261
262                        <?php tpl_flush(); /* flush the output buffer */
263
264
265/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
266/* Include Hook: pageheader.html */
267/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
268                            tpl_includeFile('pageheader.html')
269                        ?>
270
271                        <?php
272                         ?>
273
274                        <div class="breadcrumbs" data-do="<?php echo $ACT?>">
275
276                            <div class="togglelink page_main-content">
277                                <a href="#"><span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle')?></span></a>
278                            </div>
279
280                            <h6 class="sr-only" role="heading" aria-level="2"><?php echo  tpl_getLang('head_menu_status')  ?></h6>
281
282                            <?php
283
284/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
285/* page quality / page tasks */
286/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
287                                include('tpl/nav-page-quality-tasks.php');
288                            ?>
289
290                            <?php
291/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
292/* breadcrumb */
293/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
294                                include('tpl/nav-breadcrumb.php');
295                            ?>
296
297                            <h6 class="sr-only" role="heading" aria-level="2"><?php echo  $lang['page_tools']  ?></h6>
298
299                            <?php
300
301
302/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
303/* page tools */
304/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
305                                include('tpl/nav-page-tools.php');
306                            ?>
307
308                        </div>
309
310                        <div id="dokuwiki__content" class="page main-content">
311                            <div id="spr__meta-box">
312                                <h6 class="sr-only" role="heading" aria-level="2"><?php echo  tpl_getLang('head_meta_box')  ?></h6>
313
314                                <?php
315
316
317/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
318/* meta box */
319/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
320                                include('tpl/nav-meta-box.php'); ?>
321                            </div>
322
323
324                            <div class="msg-area"><?php html_msgarea();/*msg('Information.', 0);msg('Success', 1);msg('Notification', 2);msg('Fehler', -1);*/ ?></div>
325                            <?php
326
327
328/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
329/* wikipage start / main  content */
330/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
331                                tpl_content(false); /* the main content */
332                            ?>
333                            <div class="clearer"></div>
334                            <?php
335                            if($ACT == 'show') echo Template::getInstance()->getInclude(
336                                'footer',
337                                '<div class="wikipagefooter"><hr>',
338                                '<div class="clearer"></div></div>'
339                            );
340                            ?>
341                        </div><!-- .main-content -->
342
343
344                        <div class="page-footer">
345                            <?php
346
347
348/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
349/* Include Hook: pagefooter */
350/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
351                                tpl_includeFile('pagefooter.html');
352
353
354/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
355/* 'Last modified' etc */
356/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
357                                tpl_pageinfo()
358                            ?>
359                        </div>
360
361                    </div><!-- .col -->
362                </div><!-- .row -->
363            </div><!-- .container -->
364
365
366            <?php
367                tpl_flush()
368            ?>
369        </div><!-- /content -->
370
371
372        <div class="clearer"></div>
373
374    </div><!-- /wrapper -->
375
376
377
378<!-- ********** FOOTER ********** -->
379
380    <div id="dokuwiki__footer">
381        <div class="container">
382            <div class="row">
383                <div class="col-xs-12">
384
385                    <div class="main-footer">
386                        <p>
387                            <?php
388
389
390/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
391/* copyright */
392/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
393                            tpl_license($img = false, $imgonly = false, $return = false, $wrap = false);
394                            ?>
395                        </p>
396                    </div>
397
398                </div>
399            </div>
400        </div>
401    </div><!-- /footer -->
402
403
404    <?php tpl_includeFile('footer.html') ?>
405</div><!-- .dokuwiki__site -->
406
407<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
408
409</body>
410</html>
411