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