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