xref: /template/sprintdoc/main.php (revision d0b97fa27feef295dde5d9a9c850932aa7b3769d)
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 */
13@require_once(dirname(__FILE__).'/tpl_functions.php');  /* include hook for template functions */
14header('X-UA-Compatible: IE=edge,chrome=1');
15
16$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) );
17$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
18
19
20/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
21/* conditional comments for IE8 / IE9 browser detection if needed */
22/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
23?>
24<!--[if lt IE 9]> <html class="no-js lt-ie10 lt-ie9" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>"> <![endif]-->
25<!--[if IE 9]> <html class="no-js lt-ie10 ie-9" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>"> <![endif]-->
26<!--[if gt IE 9]><!--> <html class="edge no-js" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>"> <!--<![endif]-->
27<head>
28
29<?php
30
31
32/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
33/* meta and link relations */
34/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
35?>
36<meta charset="utf-8" />
37<meta name="viewport" content="width=device-width, initial-scale=1.0" />
38<?php tpl_metaheaders() ?>
39<?php
40
41
42/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
43/* conditional comments for HTML5 / media queries support in IE8 */
44/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
45?>
46<!--[if lt IE 9]>
47    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
48    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
49<![endif]-->
50
51<?php
52
53
54/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
55/* page title */
56/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
57?>
58<title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
59
60<script type="text/javascript">(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
61
62<?php
63
64
65/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
66/* favicons */
67/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
68?>
69<?php
70    echo tpl_favicon(array('favicon')); /* DokuWiki: favicon.ico  */
71    include('tpl/favicon_tiles.php');
72?>
73<?php
74
75
76/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
77/* Include Hook: meta.html */
78/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
79?>
80<?php tpl_includeFile('meta.html') ?>
81</head>
82<?php
83
84
85/* #dokuwiki__top used as anchor for "back to top" button/link links */
86?>
87<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?>">
88
89    <div id="dokuwiki__site">
90        <?php
91
92
93/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
94/* template Include: tpl/nav-direct */
95/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
96        ?>
97        <?php include('tpl/nav-direct.php') ?>
98
99
100        <div class="page-wrapper <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
101            <?php
102
103
104/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
105/* Message AREA */
106/* FIXME: position of error + info messages. Does it have to be on top of the page? */
107/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
108            html_msgarea();
109
110
111/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
112/* Include Hook: header.html */
113/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
114            tpl_includeFile('header.html');
115            ?>
116
117            <div id="dokuwiki__header" class="header no-print">
118                <div class="container">
119                    <div class="row">
120                        <div class="col-xs-12">
121                            <div class="headings main-sidebar">
122
123                                <?php if (tpl_getConf('logo') && file_exists(mediaFN(tpl_getConf('logo')))){
124
125
126/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
127/* Logo */
128/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
129/* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */
130                                    include('tpl/main-sidebar-logo.php');
131                                 } ?>
132                                <?php if ($conf['tagline']): ?>
133                                    <p class="claim"><?php echo $conf['tagline'] ?></p>
134                                <?php endif ?>
135                            </div><!-- .headings -->
136                        </div><!-- .col -->
137                    </div><!-- .row -->
138                </div><!-- .container -->
139            </div><!-- .header -->
140            <?php
141
142
143/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
144/* Headline Menu AREA */
145/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
146            ?>
147            <div class="sr-only nav-area-head">
148                <h5 class="sr-only" role="heading" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5>
149            </div><!-- .nav-area-head -->
150
151            <?php if ($showSidebar): ?>
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                            </div><!-- .sidebarheader -->
166
167                            <div class="search main-sidebar">
168                            <?php
169
170
171/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
172/* Searchform */
173/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
174                                include('tpl/main-sidebar-search.php');
175                            ?>
176                            </div><!-- .search -->
177
178                            <div id="dokuwiki__aside" class="menu main-sidebar">
179                                <?php
180
181
182/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
183/* main menu */
184/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
185                                include('tpl/nav-main.php');
186                                ?>
187                            </div><!-- .search -->
188
189                            <div class="site-tools main-sidebar">
190                                <?php
191
192
193/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
194/* Sitetools */
195/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
196                                include('tpl/nav-sitetools.php');
197                                ?>
198                            </div><!-- .site-tools -->
199
200
201                            <div class="sidebarfooter main-sidebar">
202                                <?php
203
204
205/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
206/* Include Hook: sidebarfooter.html */
207/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
208                                tpl_includeFile('sidebarfooter.html')
209                                ?>
210                            </div><!-- .sidebarheader -->
211
212                        </div><!-- .col -->
213                    </div><!-- .row -->
214                </div><!-- .container -->
215            </div><!-- .tools -->
216            <?php endif ?>
217
218
219        <div class="top-header">
220            <div class="container">
221                <div class="row">
222                    <div class="col-xs-12">
223
224                        <?php
225
226
227/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
228/* MagicMatcher */
229/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
230                        include('tpl/nav-magicmatcher.php');
231
232
233/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
234/* User Tools */
235/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
236                        include('tpl/nav-usertools.php');
237
238
239/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
240/* Include Hook: header.html */
241/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
242                        tpl_includeFile('header.html');
243                        ?>
244
245                    </div><!-- .col -->
246                </div><!-- .row -->
247            </div><!-- .container -->
248        </div><!-- /top-header -->
249
250
251        <div class="wrapper">
252
253
254
255            <!-- ********** CONTENT ********** -->
256            <div id="dokuwiki__content"><div class="pad">
257                <?php tpl_flush() /* flush the output buffer */ ?>
258                <?php tpl_includeFile('pageheader.html') ?>
259
260                <div class="page">
261                    <!-- wikipage start -->
262                    <?php tpl_content() /* the main content */ ?>
263                    <!-- wikipage stop -->
264                    <div class="clearer"></div>
265                </div>
266
267                <?php tpl_flush() ?>
268                <?php tpl_includeFile('pagefooter.html') ?>
269            </div></div><!-- /content -->
270
271            <div class="clearer"></div>
272            <hr class="a11y" />
273
274            <!-- PAGE ACTIONS -->
275            <?php if ($showTools): ?>
276                <div id="dokuwiki__pagetools">
277                    <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
278                    <ul>
279                        <?php tpl_toolsevent('pagetools', array(
280                            'edit'      => tpl_action('edit', 1, 'li', 1),
281                            'discussion'=> _tpl_action('discussion', 1, 'li', 1),
282                            'revisions' => tpl_action('revisions', 1, 'li', 1),
283                            'backlink'  => tpl_action('backlink', 1, 'li', 1),
284                            'subscribe' => tpl_action('subscribe', 1, 'li', 1),
285                            'revert'    => tpl_action('revert', 1, 'li', 1),
286                            'top'       => tpl_action('top', 1, 'li', 1),
287                        )); ?>
288                    </ul>
289                </div>
290            <?php endif; ?>
291        </div><!-- /wrapper -->
292
293        <!-- ********** FOOTER ********** -->
294        <div id="dokuwiki__footer"><div class="pad">
295            <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
296            <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
297        </div></div><!-- /footer -->
298
299        <?php tpl_includeFile('footer.html') ?>
300    </div><!-- .dokuwiki__site -->
301
302    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
303
304</body>
305</html>
306