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