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