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