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