xref: /template/sprintdoc/main.php (revision f428fce4afddf3e928de2a785530ecdbfd79eaf2)
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                        <div class="search main-sidebar">
175                            <?php
176
177
178/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
179/* search form */
180/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
181                                include('tpl/main-sidebar-search.php');
182                            ?>
183                        </div><!-- .search -->
184                        <div class="sidebarheader main-sidebar">
185                            <?php
186
187
188/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
189/* Include Hook: sidebarheader.html */
190/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
191                            tpl_includeFile('sidebarheader.html')
192                            ?>
193                        </div><!-- .sidebarheader -->
194
195                        <div id="dokuwiki__aside">
196
197                            <?php
198                            echo Template::getInstance()->getInclude(
199                                'sidebarheader',
200                                '<div class="sidebarheader">',
201                                '<div class="clearer"></div></div>'
202                            );
203                            ?>
204
205                            <?php
206/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
207/* sidebar */
208/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
209                                include('tpl/main-sidebar-nav.php');
210                            ?>
211
212                            <?php
213                            echo Template::getInstance()->getInclude(
214                                'sidebarfooter',
215                                '<div class="sidebarfooter">',
216                                '<div class="clearer"></div></div>'
217                            );
218                            ?>
219                        </div><!-- .aside -->
220
221                    </div><!-- .col -->
222                </div><!-- .row -->
223            </div><!-- .container -->
224        </div><!-- .tools -->
225
226
227        <div class="top-header">
228            <div class="container">
229                <div class="row">
230                    <div class="col-xs-12">
231
232                        <?php
233
234
235/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
236/* User Tools and MagicMatcher Bar */
237/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
238                            include('tpl/nav-usertools-buttons.php');
239                            if($mm && $matcher !== ""){
240                                include('tpl/nav-magicmatcher.php');
241                            }
242
243/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
244/* Include Hook: header.html */
245/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
246                            tpl_includeFile('header.html');
247                        ?>
248
249                    </div><!-- .col -->
250                </div><!-- .row -->
251            </div><!-- .container -->
252        </div><!-- /top-header -->
253
254
255        <div class="content">
256            <div class="container">
257                <div class="row">
258                    <div class="col-xs-12">
259
260                        <?php tpl_flush(); /* flush the output buffer */
261
262
263/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
264/* Include Hook: pageheader.html */
265/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
266                            tpl_includeFile('pageheader.html')
267                        ?>
268
269                        <?php
270                         ?>
271
272                        <div class="breadcrumbs" data-do="<?php echo $ACT?>">
273
274                            <div class="togglelink page_main-content">
275                                <a href="#"><span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle')?></span></a>
276                            </div>
277
278                            <h6 class="sr-only" role="heading" aria-level="2"><?php echo  tpl_getLang('head_menu_status')  ?></h6>
279
280                            <?php
281
282/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
283/* page quality / page tasks */
284/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
285                                include('tpl/nav-page-quality-tasks.php');
286                            ?>
287
288                            <?php
289/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
290/* breadcrumb */
291/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
292                                include('tpl/nav-breadcrumb.php');
293                            ?>
294
295                            <h6 class="sr-only" role="heading" aria-level="2"><?php echo  $lang['page_tools']  ?></h6>
296
297                            <?php
298
299
300/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
301/* page tools */
302/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
303                                include('tpl/nav-page-tools.php');
304                            ?>
305
306                        </div>
307
308                        <div id="dokuwiki__content" class="page main-content">
309                            <div id="spr__meta-box">
310                                <h6 class="sr-only" role="heading" aria-level="2"><?php echo  tpl_getLang('head_meta_box')  ?></h6>
311
312                                <?php
313
314
315/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
316/* meta box */
317/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
318                                include('tpl/nav-meta-box.php'); ?>
319                            </div>
320
321
322                            <div class="msg-area"><?php html_msgarea();/*msg('Information.', 0);msg('Success', 1);msg('Notification', 2);msg('Fehler', -1);*/ ?></div>
323                            <?php
324
325
326/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
327/* wikipage start / main  content */
328/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
329                                tpl_content(false); /* the main content */
330                            ?>
331                            <div class="clearer"></div>
332                            <?php
333                            if($ACT == 'show') echo Template::getInstance()->getInclude(
334                                'footer',
335                                '<div class="wikipagefooter"><hr>',
336                                '<div class="clearer"></div></div>'
337                            );
338                            ?>
339                        </div><!-- .main-content -->
340
341
342                        <div class="page-footer">
343                            <?php
344
345
346/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
347/* Include Hook: pagefooter */
348/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
349                                tpl_includeFile('pagefooter.html');
350
351
352/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
353/* 'Last modified' etc */
354/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
355                                tpl_pageinfo()
356                            ?>
357                        </div>
358
359                    </div><!-- .col -->
360                </div><!-- .row -->
361            </div><!-- .container -->
362
363
364            <?php
365                tpl_flush()
366            ?>
367        </div><!-- /content -->
368
369
370        <div class="clearer"></div>
371
372    </div><!-- /wrapper -->
373
374
375
376<!-- ********** FOOTER ********** -->
377
378    <div id="dokuwiki__footer">
379        <div class="container">
380            <div class="row">
381                <div class="col-xs-12">
382
383                    <div class="main-footer">
384                        <p>
385                            <?php
386
387
388/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
389/* copyright */
390/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
391                            tpl_license($img = false, $imgonly = false, $return = false, $wrap = false);
392                            ?>
393                        </p>
394                    </div>
395
396                </div>
397            </div>
398        </div>
399    </div><!-- /footer -->
400
401
402    <?php tpl_includeFile('footer.html') ?>
403</div><!-- .dokuwiki__site -->
404
405<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
406
407</body>
408</html>
409