xref: /template/sprintdoc/main.php (revision 522fc138e1da23a5763dc94e8b0b67256f476501)
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 = page_findnearest($conf['sidebar']) && ($ACT=='show');
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?>
87<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'showSidebar' : ''; ?>">
88
89<div id="dokuwiki__site">
90    <?php
91
92
93/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
94/* template Include: tpl/nav-direct */
95/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
96    ?>
97    <?php include('tpl/nav-direct.php') ?>
98
99
100    <div class="page-wrapper <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
101        <?php
102
103
104/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
105/* Message AREA */
106/* FIXME: position of error + info messages. Does it have to be on top of the page? */
107/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
108            html_msgarea();
109
110
111/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
112/* Include Hook: header.html */
113/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
114            tpl_includeFile('header.html');
115        ?>
116
117        <div id="dokuwiki__header" class="header no-print">
118            <div class="container">
119                <div class="row">
120                    <div class="col-xs-12">
121                        <div class="claim main-sidebar">
122                            <?php if (tpl_getConf('logo') && file_exists(mediaFN(tpl_getConf('logo')))){
123
124
125/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
126/* Logo */
127/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
128/* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */
129                                include('tpl/main-sidebar-logo.php');
130                             } ?>
131                            <?php if ($conf['tagline']): ?>
132                                <p class="claim"><?php echo $conf['tagline'] ?></p>
133                            <?php endif ?>
134
135                        </div><!-- .headings -->
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        <?php if ($showSidebar): ?>
152
153
154        <div class="tools">
155            <div class="container">
156                <div class="row">
157                    <div class="col-xs-12">
158
159                        <div class="sidebarheader main-sidebar">
160                            <?php
161
162
163/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
164/* Include Hook: sidebarheader.html */
165/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
166                                tpl_includeFile('sidebarheader.html')
167                            ?>
168                        </div><!-- .sidebarheader -->
169
170                        <div class="search main-sidebar">
171                            <?php
172                                if (tpl_getConf('logo') && file_exists(mediaFN(tpl_getConf('logo')))){
173                                    if (tpl_getConf('logo_spacer') && file_exists(mediaFN(tpl_getConf('logo_spacer')))){
174                                        echo '<img width="5" height="5" src="'.ml(tpl_getConf('logo_spacer')).'" alt="" />';
175                                    } else{
176                                        echo '<img width="5" height="5" src="'.ml(tpl_getConf('logo')).'" alt="" />';
177                                    }
178                                }
179
180
181/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
182/* search form */
183/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
184                                include('tpl/main-sidebar-search.php');
185                            ?>
186                        </div><!-- .search -->
187
188                        <div id="dokuwiki__aside" class="menu main-sidebar">
189                            <?php
190
191
192/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
193/* main menu */
194/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
195                                include('tpl/nav-main.php');
196                            ?>
197                        </div><!-- .menu -->
198
199                        <div class="site-tools main-sidebar">
200                            <?php
201
202
203/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
204/* site tools */
205/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
206                                include('tpl/nav-sitetools.php');
207                            ?>
208                        </div><!-- .site-tools -->
209
210
211                        <div class="sidebarfooter main-sidebar">
212                            <?php
213
214
215/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
216/* Include Hook: sidebarfooter.html */
217/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
218                                tpl_includeFile('sidebarfooter.html')
219                            ?>
220                        </div><!-- .sidebarheader -->
221
222                    </div><!-- .col -->
223                </div><!-- .row -->
224            </div><!-- .container -->
225        </div><!-- .tools -->
226        <?php endif ?>
227
228
229        <div class="top-header">
230            <div class="container">
231                <div class="row">
232                    <div class="col-xs-12">
233
234                        <?php
235
236
237/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
238/* User Tools and MagicMatcher Bar */
239/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
240                            $mm = plugin_load('helper', 'magicmatcher_context');
241                            $navClass = "";
242                            if($mm){
243                                $matcher = $mm->getIssueContextBar();
244                                if($matcher !== ""){
245                                    $navClass = "has-bar";
246                                }
247                            }
248
249                            include('tpl/nav-usertools.php');
250                            if($mm && $matcher !== ""){
251                                include('tpl/nav-magicmatcher.php');
252                            }
253
254/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
255/* Include Hook: header.html */
256/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
257                            tpl_includeFile('header.html');
258                        ?>
259
260                    </div><!-- .col -->
261                </div><!-- .row -->
262            </div><!-- .container -->
263        </div><!-- /top-header -->
264
265
266        <div class="content">
267            <div class="container">
268                <div class="row">
269                    <div class="col-xs-12">
270
271                        <?php tpl_flush(); /* flush the output buffer */
272
273
274/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
275/* Include Hook: pageheader.html */
276/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
277                            tpl_includeFile('pageheader.html')
278                        ?>
279
280                        <div class="breadcrumbs">
281                            <h6 class="sr-only" role="heading" aria-level="2"><?php echo  tpl_getLang('head_menu_status')  ?></h6>
282
283                            <?php
284
285/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
286/* page quality / page tasks */
287/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
288                                include('tpl/nav-page-quality-tasks.php');
289                            ?>
290
291                            <?php
292/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
293/* breadcrumb */
294/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
295                                include('tpl/nav-breadcrumb.php');
296                            ?>
297
298                            <h6 class="sr-only" role="heading" aria-level="2"><?php echo  $lang['page_tools']  ?></h6>
299
300                            <?php
301
302
303/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
304/* page tools */
305/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
306                                include('tpl/nav-page-tools.php');
307                            ?>
308
309                        </div>
310
311                        <div id="dokuwiki__content" class="page main-content">
312
313                            <?php
314
315
316/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
317/* wikipage start / main  content */
318/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
319                                tpl_content(false); /* the main content */
320                            ?>
321
322                        </div><!-- .main-content -->
323
324
325                        <div class="page-footer">
326                            <?php
327                                tpl_includeFile('pagefooter.html');
328
329
330/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
331/* 'Last modified' etc */
332/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
333                                tpl_pageinfo()
334                            ?>
335                        </div>
336
337                    </div><!-- .col -->
338                </div><!-- .row -->
339            </div><!-- .container -->
340
341
342            <?php
343                tpl_flush()
344            ?>
345        </div><!-- /content -->
346
347
348        <div class="clearer"></div>
349
350    </div><!-- /wrapper -->
351
352
353
354<!-- ********** FOOTER ********** -->
355
356    <div id="dokuwiki__footer">
357        <div class="container">
358            <div class="row">
359                <div class="col-xs-12">
360
361                    <div class="main-footer">
362                        <p>
363                            <?php
364
365
366/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
367/* copyright */
368/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
369                                echo "var - fixme";
370                            ?>
371                        </p>
372                    </div>
373
374                </div>
375            </div>
376        </div>
377    </div><!-- /footer -->
378
379
380    <?php tpl_includeFile('footer.html') ?>
381</div><!-- .dokuwiki__site -->
382
383<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
384
385</body>
386</html>
387