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