xref: /template/sprintdoc/main.php (revision 356926483713441baed6510228ffd9c70506e8bf)
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                            <div id="meta-box">
331                                <h6 class="sr-only" role="heading" aria-level="2"><?php echo  tpl_getLang('head_meta_box')  ?></h6>
332
333                                <?php
334
335
336/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
337/* meta box */
338/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
339                                include('tpl/nav-meta-box.php'); ?>
340                            </div>
341
342
343                            <?php
344
345
346/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
347/* wikipage start / main  content */
348/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
349                                tpl_content(false); /* the main content */
350                            ?>
351
352                        </div><!-- .main-content -->
353
354
355                        <div class="page-footer">
356                            <?php
357                                tpl_includeFile('pagefooter.html');
358
359
360/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
361/* 'Last modified' etc */
362/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
363                                tpl_pageinfo()
364                            ?>
365                        </div>
366
367                    </div><!-- .col -->
368                </div><!-- .row -->
369            </div><!-- .container -->
370
371
372            <?php
373                tpl_flush()
374            ?>
375        </div><!-- /content -->
376
377
378        <div class="clearer"></div>
379
380    </div><!-- /wrapper -->
381
382
383
384<!-- ********** FOOTER ********** -->
385
386    <div id="dokuwiki__footer">
387        <div class="container">
388            <div class="row">
389                <div class="col-xs-12">
390
391                    <div class="main-footer">
392                        <p>
393                            <?php
394
395
396/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
397/* copyright */
398/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
399                                echo "&copy; ".tpl_getConf('copyright');
400                            ?>
401                        </p>
402                    </div>
403
404                </div>
405            </div>
406        </div>
407    </div><!-- /footer -->
408
409
410    <?php tpl_includeFile('footer.html') ?>
411</div><!-- .dokuwiki__site -->
412
413<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
414
415</body>
416</html>
417