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