xref: /template/sprintdoc/main.php (revision eea3ecee976001526da94d92068277efc9b51f5f)
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                            <div class="main-title">
103                                <?php if ($conf['title']):
104
105/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
106/* Wiki Title Mobile */
107/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
108                                    <p class="title mobile-only">MO <?php echo $conf['title'] ?></p>
109                                <?php endif ?>
110                            </div><!-- .main-title -->
111                        </div><!-- .headings -->
112                    </div><!-- .col -->
113
114                    <div class="col-xs-12">
115                        <div class="main-title desktop-only">
116                            <?php if ($conf['title']):
117
118/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
119/* Wiki Title Desktop */
120/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
121                                <p class="title">DO <?php echo $conf['title'] ?></p>
122                            <?php endif ?>
123                            <?php if ($conf['tagline']):
124
125/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
126/* Wiki Tagline Desktop */
127/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
128                                <p class="claim">DO <?php echo $conf['tagline'] ?></p>
129                            <?php endif ?>
130                        </div><!-- .main-title -->
131                    </div><!-- .col -->
132                </div><!-- .row -->
133            </div><!-- .container -->
134        </div><!-- .header -->
135        <?php
136
137
138/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
139/* headline menu area (Accessibility ) */
140/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
141        ?>
142
143        <div class="sr-only nav-area-head">
144            <h5 class="sr-only" role="heading" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5>
145        </div><!-- .nav-area-head -->
146
147        <div class="tools">
148            <div class="container">
149                <div class="row">
150                    <div class="col-xs-12">
151
152                        <div class="sidebarheader main-sidebar">
153                            <?php
154
155
156/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
157/* Include Hook: sidebarheader.html */
158/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
159                                tpl_includeFile('sidebarheader.html')
160                            ?>
161                        </div><!-- .sidebarheader -->
162
163                        <div class="search main-sidebar">
164                            <?php
165
166
167/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
168/* search form */
169/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
170                                include('tpl/main-sidebar-search.php');
171                            ?>
172                        </div><!-- .search -->
173
174                        <div id="dokuwiki__aside">
175                            <?php
176/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
177/* sidebar */
178/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
179                                include('tpl/main-sidebar-nav.php');
180                            ?>
181                        </div><!-- .aside -->
182
183                    </div><!-- .col -->
184                </div><!-- .row -->
185            </div><!-- .container -->
186        </div><!-- .tools -->
187
188
189        <div class="top-header">
190            <div class="container">
191                <div class="row">
192                    <div class="col-xs-12">
193
194                        <?php
195
196
197/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
198/* User Tools and MagicMatcher Bar */
199/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
200                            /** @var \helper_plugin_magicmatcher_context $mm */
201                            $mm = plugin_load('helper', 'magicmatcher_context');
202                            $navClass = "";
203                            if($mm){
204                                $matcher = $mm->getIssueContextBar();
205                                if($matcher !== ""){
206                                    $navClass = "has-bar";
207                                }
208                            }
209
210                            include('tpl/nav-usertools-buttons.php');
211                            if($mm && $matcher !== ""){
212                                include('tpl/nav-magicmatcher.php');
213                            }
214
215/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
216/* Include Hook: header.html */
217/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
218                            tpl_includeFile('header.html');
219                        ?>
220
221                    </div><!-- .col -->
222                </div><!-- .row -->
223            </div><!-- .container -->
224        </div><!-- /top-header -->
225
226
227        <div class="content">
228            <div class="container">
229                <div class="row">
230                    <div class="col-xs-12">
231
232                        <?php tpl_flush(); /* flush the output buffer */
233
234
235/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
236/* Include Hook: pageheader.html */
237/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
238                            tpl_includeFile('pageheader.html')
239                        ?>
240
241                        <?php
242                         ?>
243
244                        <div class="breadcrumbs" data-do="<?php echo $ACT?>">
245
246                            <div class="togglelink page_main-content">
247                                <a href="#"><span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle')?></span></a>
248                            </div>
249
250                            <h6 class="sr-only" role="heading" aria-level="2"><?php echo  tpl_getLang('head_menu_status')  ?></h6>
251
252                            <?php
253
254/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
255/* page quality / page tasks */
256/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
257                                include('tpl/nav-page-quality-tasks.php');
258                            ?>
259
260                            <?php
261/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
262/* breadcrumb */
263/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
264                                include('tpl/nav-breadcrumb.php');
265                            ?>
266
267                            <h6 class="sr-only" role="heading" aria-level="2"><?php echo  $lang['page_tools']  ?></h6>
268
269                            <?php
270
271
272/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
273/* page tools */
274/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
275                                include('tpl/nav-page-tools.php');
276                            ?>
277
278                        </div>
279
280                        <div id="dokuwiki__content" class="page main-content">
281                            <div id="spr__meta-box">
282                                <h6 class="sr-only" role="heading" aria-level="2"><?php echo  tpl_getLang('head_meta_box')  ?></h6>
283
284                                <?php
285
286
287/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
288/* meta box */
289/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
290                                include('tpl/nav-meta-box.php'); ?>
291                            </div>
292
293
294                            <div class="msg-area"><?php html_msgarea();/*msg('Information.', 0);msg('Success', 1);msg('Notification', 2);msg('Fehler', -1);*/ ?></div>
295                            <?php
296
297
298/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
299/* wikipage start / main  content */
300/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
301                                tpl_content(false); /* the main content */
302                            ?>
303                            <div class="clearer"></div>
304                            <?php if($showFooter):
305
306
307/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
308/* Page Include Hook: pagefooter.txt */
309/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
310                                ?>
311                                <div class="wikipagefooter">
312                                    <hr>
313                                    <?php tpl_include_page('pagefooter', true, true) ?>
314                                    <div class="clearer"></div>
315                                </div>
316                            <?php endif; ?>
317                        </div><!-- .main-content -->
318
319
320                        <div class="page-footer">
321                            <?php
322
323
324/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
325/* Include Hook: pagefooter */
326/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
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                            tpl_license($img = false, $imgonly = false, $return = false, $wrap = false);
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