xref: /template/sprintdoc/main.php (revision dc4330a7e722be0d7ef7ae069029ae0fddcaa82f)
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        <div id="dokuwiki__header" class="header no-print">
88            <div class="container">
89                <div class="row">
90                    <div class="col-xs-12">
91                        <div class="claim main-sidebar">
92                            <div class="menu-togglelink mobile-only">
93                                <a href="#">
94                                    <span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle'); ?></span>
95                                </a>
96                            </div>
97
98                            <?php if (tpl_getConf('logo') && file_exists(mediaFN(tpl_getConf('logo')))){
99
100
101/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
102/* Logo */
103/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
104/* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */
105                                include('tpl/main-sidebar-logo.php');
106                             } ?>
107                            <div class="main-title">
108                                <?php if ($conf['title']):
109
110/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
111/* Wiki Title Mobile */
112/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
113                                    <p class="title mobile-only"><?php echo $conf['title'] ?></p>
114                                <?php endif ?>
115                            </div><!-- .main-title -->
116                        </div><!-- .headings -->
117                    </div><!-- .col -->
118
119                    <div class="col-xs-12">
120                        <div class="main-title desktop-only">
121                            <?php if ($conf['title']):
122
123/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
124/* Wiki Title Desktop */
125/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
126                                <p class="title"><?php echo $conf['title'] ?></p>
127                            <?php endif ?>
128                            <?php if ($conf['tagline']):
129
130/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
131/* Wiki Tagline Desktop */
132/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
133                                <p class="claim"><?php echo $conf['tagline'] ?></p>
134                            <?php endif ?>
135                        </div><!-- .main-title -->
136                    </div><!-- .col -->
137                </div><!-- .row -->
138            </div><!-- .container -->
139        </div><!-- .header -->
140        <?php
141
142
143/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
144/* headline menu area (Accessibility ) */
145/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
146        ?>
147
148        <div class="sr-only nav-area-head">
149            <h5 class="sr-only" role="heading" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5>
150        </div><!-- .nav-area-head -->
151
152        <div class="tools">
153            <div class="container">
154                <div class="row">
155                    <div class="col-xs-12">
156                        <div class="search main-sidebar">
157                            <?php
158
159
160/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
161/* search form */
162/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
163                                include('tpl/main-sidebar-search.php');
164                            ?>
165                        </div><!-- .search -->
166                        <div class="sidebarheader main-sidebar">
167                            <?php
168
169
170/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
171/* Include Hook: sidebarheader.html */
172/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
173                            tpl_includeFile('sidebarheader.html')
174                            ?>
175                        </div><!-- .sidebarheader -->
176
177                        <div id="dokuwiki__aside">
178
179                            <?php
180                            echo Template::getInstance()->getInclude(
181                                'sidebarheader',
182                                '<div class="sidebarheader">',
183                                '<div class="clearer"></div></div>'
184                            );
185                            ?>
186
187                            <?php
188/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
189/* sidebar */
190/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
191                                include('tpl/main-sidebar-nav.php');
192                            ?>
193
194                            <?php
195                            echo Template::getInstance()->getInclude(
196                                'sidebarfooter',
197                                '<div class="sidebarfooter">',
198                                '<div class="clearer"></div></div>'
199                            );
200                            ?>
201                        </div><!-- .aside -->
202
203                    </div><!-- .col -->
204                </div><!-- .row -->
205            </div><!-- .container -->
206        </div><!-- .tools -->
207
208
209        <div class="top-header">
210            <div class="container">
211                <div class="row">
212                    <div class="col-xs-12">
213
214                        <?php
215
216
217/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
218/* User Tools and MagicMatcher Bar */
219/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
220                            /** @var \helper_plugin_magicmatcher_context $mm */
221                            $mm = plugin_load('helper', 'magicmatcher_context');
222                            $navClass = "";
223                            if($mm){
224                                $matcher = $mm->getIssueContextBar();
225                                if($matcher !== ""){
226                                    $navClass = "has-bar";
227                                }
228                            }
229
230                            include('tpl/nav-usertools-buttons.php');
231                            if($mm && $matcher !== ""){
232                                include('tpl/nav-magicmatcher.php');
233                            }
234
235/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
236/* Include Hook: header.html */
237/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
238                            tpl_includeFile('header.html');
239                        ?>
240
241                    </div><!-- .col -->
242                </div><!-- .row -->
243            </div><!-- .container -->
244        </div><!-- /top-header -->
245
246
247        <div class="content">
248            <div class="container">
249                <div class="row">
250                    <div class="col-xs-12">
251
252                        <?php tpl_flush(); /* flush the output buffer */
253
254
255/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
256/* Include Hook: pageheader.html */
257/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
258                            tpl_includeFile('pageheader.html')
259                        ?>
260
261                        <?php
262                         ?>
263
264                        <div class="breadcrumbs" data-do="<?php echo $ACT?>">
265
266                            <div class="togglelink page_main-content">
267                                <a href="#"><span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle')?></span></a>
268                            </div>
269
270                            <h6 class="sr-only" role="heading" aria-level="2"><?php echo  tpl_getLang('head_menu_status')  ?></h6>
271
272                            <?php
273
274/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
275/* page quality / page tasks */
276/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
277                                include('tpl/nav-page-quality-tasks.php');
278                            ?>
279
280                            <?php
281/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
282/* breadcrumb */
283/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
284                                include('tpl/nav-breadcrumb.php');
285                            ?>
286
287                            <h6 class="sr-only" role="heading" aria-level="2"><?php echo  $lang['page_tools']  ?></h6>
288
289                            <?php
290
291
292/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
293/* page tools */
294/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
295                                include('tpl/nav-page-tools.php');
296                            ?>
297
298                        </div>
299
300                        <div id="dokuwiki__content" class="page main-content">
301                            <div id="spr__meta-box">
302                                <h6 class="sr-only" role="heading" aria-level="2"><?php echo  tpl_getLang('head_meta_box')  ?></h6>
303
304                                <?php
305
306
307/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
308/* meta box */
309/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
310                                include('tpl/nav-meta-box.php'); ?>
311                            </div>
312
313
314                            <div class="msg-area"><?php html_msgarea();/*msg('Information.', 0);msg('Success', 1);msg('Notification', 2);msg('Fehler', -1);*/ ?></div>
315                            <?php
316
317
318/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
319/* wikipage start / main  content */
320/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
321                                tpl_content(false); /* the main content */
322                            ?>
323                            <div class="clearer"></div>
324                            <?php
325                            if($ACT == 'show') echo Template::getInstance()->getInclude(
326                                'footer',
327                                '<div class="wikipagefooter"><hr>',
328                                '<div class="clearer"></div></div>'
329                            );
330                            ?>
331                        </div><!-- .main-content -->
332
333
334                        <div class="page-footer">
335                            <?php
336
337
338/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
339/* Include Hook: pagefooter */
340/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
341                                tpl_includeFile('pagefooter.html');
342
343
344/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
345/* 'Last modified' etc */
346/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
347                                tpl_pageinfo()
348                            ?>
349                        </div>
350
351                    </div><!-- .col -->
352                </div><!-- .row -->
353            </div><!-- .container -->
354
355
356            <?php
357                tpl_flush()
358            ?>
359        </div><!-- /content -->
360
361
362        <div class="clearer"></div>
363
364    </div><!-- /wrapper -->
365
366
367
368<!-- ********** FOOTER ********** -->
369
370    <div id="dokuwiki__footer">
371        <div class="container">
372            <div class="row">
373                <div class="col-xs-12">
374
375                    <div class="main-footer">
376                        <p>
377                            <?php
378
379
380/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
381/* copyright */
382/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
383                            tpl_license($img = false, $imgonly = false, $return = false, $wrap = false);
384                            ?>
385                        </p>
386                    </div>
387
388                </div>
389            </div>
390        </div>
391    </div><!-- /footer -->
392
393
394    <?php tpl_includeFile('footer.html') ?>
395</div><!-- .dokuwiki__site -->
396
397<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
398
399</body>
400</html>
401