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