xref: /template/sprintdoc/main.php (revision 3f9d4d521a72b62d0221fbfcca6527aa70c2bd8e)
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        <div id="dokuwiki__header" class="header no-print">
88            <div class="container">
89                <div class="row">
90                    <div class="col-xs-12">
91                        <div class="claim main-sidebar">
92                            <div class="menu-togglelink mobile-only">
93                                <a href="#">
94                                    <span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle'); ?></span>
95                                </a>
96                            </div>
97
98                            <?php if (tpl_getConf('logo') && file_exists(mediaFN(tpl_getConf('logo')))){
99
100
101/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
102/* Logo */
103/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
104/* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */
105                                include('tpl/main-sidebar-logo.php');
106                             } ?>
107                            <div class="main-title">
108                                <?php if ($conf['title']):
109
110/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
111/* Wiki Title Mobile */
112/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
113                                    <p class="title mobile-only"><?php echo $conf['title'] ?></p>
114                                <?php endif ?>
115                            </div><!-- .main-title -->
116                        </div><!-- .headings -->
117                    </div><!-- .col -->
118
119                    <div class="col-xs-12">
120                        <div class="main-title desktop-only">
121                            <?php if ($conf['title']):
122
123/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
124/* Wiki Title Desktop */
125/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
126                                <p class="title"><?php echo $conf['title'] ?></p>
127                            <?php endif ?>
128                            <?php if ($conf['tagline']):
129
130/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
131/* Wiki Tagline Desktop */
132/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
133                                <p class="claim"><?php echo $conf['tagline'] ?></p>
134                            <?php endif ?>
135                        </div><!-- .main-title -->
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
152        <div class="tools">
153            <div class="container">
154                <div class="row">
155                    <div class="col-xs-12">
156
157                        <div class="sidebarheader main-sidebar">
158                            <?php
159
160
161/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
162/* Include Hook: sidebarheader.html */
163/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
164                                tpl_includeFile('sidebarheader.html')
165                            ?>
166                        </div><!-- .sidebarheader -->
167
168                        <div class="search main-sidebar">
169                            <?php
170
171
172/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
173/* search form */
174/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
175                                include('tpl/main-sidebar-search.php');
176                            ?>
177                        </div><!-- .search -->
178
179                        <div id="dokuwiki__aside">
180                            <?php
181/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
182/* sidebar */
183/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
184                                include('tpl/main-sidebar-nav.php');
185                            ?>
186                        </div><!-- .aside -->
187
188                    </div><!-- .col -->
189                </div><!-- .row -->
190            </div><!-- .container -->
191        </div><!-- .tools -->
192
193
194        <div class="top-header">
195            <div class="container">
196                <div class="row">
197                    <div class="col-xs-12">
198
199                        <?php
200
201
202/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
203/* User Tools and MagicMatcher Bar */
204/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
205                            /** @var \helper_plugin_magicmatcher_context $mm */
206                            $mm = plugin_load('helper', 'magicmatcher_context');
207                            $navClass = "";
208                            if($mm){
209                                $matcher = $mm->getIssueContextBar();
210                                if($matcher !== ""){
211                                    $navClass = "has-bar";
212                                }
213                            }
214
215                            include('tpl/nav-usertools-buttons.php');
216                            if($mm && $matcher !== ""){
217                                include('tpl/nav-magicmatcher.php');
218                            }
219
220/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
221/* Include Hook: header.html */
222/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
223                            tpl_includeFile('header.html');
224                        ?>
225
226                    </div><!-- .col -->
227                </div><!-- .row -->
228            </div><!-- .container -->
229        </div><!-- /top-header -->
230
231
232        <div class="content">
233            <div class="container">
234                <div class="row">
235                    <div class="col-xs-12">
236
237                        <?php tpl_flush(); /* flush the output buffer */
238
239
240/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
241/* Include Hook: pageheader.html */
242/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
243                            tpl_includeFile('pageheader.html')
244                        ?>
245
246                        <?php
247                         ?>
248
249                        <div class="breadcrumbs" data-do="<?php echo $ACT?>">
250
251                            <div class="togglelink page_main-content">
252                                <a href="#"><span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle')?></span></a>
253                            </div>
254
255                            <h6 class="sr-only" role="heading" aria-level="2"><?php echo  tpl_getLang('head_menu_status')  ?></h6>
256
257                            <?php
258
259/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
260/* page quality / page tasks */
261/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
262                                include('tpl/nav-page-attributes.php');
263                            ?>
264
265                            <?php
266/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
267/* breadcrumb */
268/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
269                                include('tpl/nav-breadcrumb.php');
270                            ?>
271
272                            <h6 class="sr-only" role="heading" aria-level="2"><?php echo  $lang['page_tools']  ?></h6>
273
274                            <?php
275
276
277/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
278/* page tools */
279/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
280                                include('tpl/nav-page-tools.php');
281                            ?>
282
283                        </div>
284
285                        <div id="dokuwiki__content" class="page main-content">
286                            <div id="spr__meta-box">
287                                <h6 class="sr-only" role="heading" aria-level="2"><?php echo  tpl_getLang('head_meta_box')  ?></h6>
288
289                                <?php
290
291
292/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
293/* meta box */
294/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
295                                include('tpl/nav-meta-box.php'); ?>
296                            </div>
297
298                            <div class="qc-output"></div>
299
300                            <div class="msg-area"><?php html_msgarea();/*msg('Information.', 0);msg('Success', 1);msg('Notification', 2);msg('Fehler', -1);*/ ?></div>
301                            <?php
302
303
304/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
305/* wikipage start / main  content */
306/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
307                                tpl_content(false); /* the main content */
308                            ?>
309                            <div class="clearer"></div>
310                            <?php
311                            if($ACT == 'show') echo Template::getInstance()->getInclude(
312                                'footer',
313                                '<div class="wikipagefooter"><hr>',
314                                '<div class="clearer"></div></div>'
315                            );
316                            ?>
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