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