xref: /template/sprintdoc/main.php (revision e3c29805134ea3dd3b1cfc3dba4183c74c3aa630)
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<!--[if lt IE 9]> <html class="no-js lt-ie10 lt-ie9" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>"> <![endif]-->
21<!--[if IE 9]> <html class="no-js lt-ie10 ie-9" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>"> <![endif]-->
22<!--[if gt IE 9]><!--> <html class="edge no-js" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>"> <!--<![endif]-->
23<head>
24
25<?php
26
27
28/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
29/* meta and link relations */
30/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
31?>
32<meta charset="utf-8" />
33<meta name="viewport" content="width=device-width, initial-scale=1.0" />
34<?php tpl_metaheaders() ?>
35<?php
36
37
38/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
39/* IE8 support HTML5 / media queries */
40/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
41?>
42<!--[if lt IE 9]><script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script><script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script><![endif]-->
43
44<?php
45
46
47/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
48/* page title */
49/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
50?>
51<title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
52
53<script type="text/javascript">(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
54
55<?php
56
57
58/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
59/* favicons */
60/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
61?>
62<?php echo tpl_favicon(array('favicon')) ?> <?php /* DokuWiki: favicon.ico  */ ?>
63
64<link rel="apple-touch-icon" sizes="57x57" href="<?php echo tpl_getMediaFile(array(':wiki:apple-touch-icon-57x57.png', 'images/fav/apple-touch-icon-57x57.png')); ?>">
65<link rel="apple-touch-icon" sizes="60x60" href="<?php echo tpl_getMediaFile(array(':wiki:apple-touch-icon-60x60.png', 'images/fav/apple-touch-icon-60x60.png')); ?>">
66<link rel="apple-touch-icon" sizes="72x72" href="<?php echo tpl_getMediaFile(array(':wiki:apple-touch-icon-72x72.png', 'images/fav/apple-touch-icon-72x72.png')); ?>">
67<link rel="apple-touch-icon" sizes="76x76" href="<?php echo tpl_getMediaFile(array(':wiki:apple-touch-icon-76x76.png', 'images/fav/apple-touch-icon-76x76.png')); ?>">
68<link rel="apple-touch-icon" sizes="114x114" href="<?php echo tpl_getMediaFile(array(':wiki:apple-touch-icon-114x114.png', 'images/fav/apple-touch-icon-114x114.png')); ?>">
69<link rel="apple-touch-icon" sizes="120x120" href="<?php echo tpl_getMediaFile(array(':wiki:apple-touch-icon-120x120.png', 'images/fav/apple-touch-icon-120x120.png')); ?>">
70<link rel="apple-touch-icon" sizes="144x144" href="<?php echo tpl_getMediaFile(array(':wiki:apple-touch-icon-144x144.png', 'images/fav/apple-touch-icon-144x144.png')); ?>">
71<link rel="apple-touch-icon" sizes="152x152" href="<?php echo tpl_getMediaFile(array(':wiki:apple-touch-icon-152x152.png', 'images/fav/apple-touch-icon-152x152.png')); ?>">
72<link rel="apple-touch-icon" sizes="180x180" href="<?php echo tpl_getMediaFile(array(':wiki:apple-touch-icon-180x180.png', 'images/fav/apple-touch-icon-180x180.png')); ?>">
73
74<link rel="icon" type="image/png" href="<?php echo tpl_getMediaFile(array(':wiki:favicon-32x32.png', 'images/fav/favicon-32x32.png')); ?>" sizes="32x32">
75<link rel="icon" type="image/png" href="<?php echo tpl_getMediaFile(array(':wiki:favicon-96x96.png', 'images/fav/favicon-96x96.png')); ?>" sizes="96x96">
76<link rel="icon" type="image/png" href="<?php echo tpl_getMediaFile(array(':wiki:android-chrome-192x192.png', 'images/fav/android-chrome-192x192.png')); ?>" sizes="192x192">
77
78<meta name="msapplication-square70x70logo" content="<?php echo tpl_getMediaFile(array(':wiki:smalltile.png', 'images/fav/smalltile.png')); ?>" />
79<meta name="msapplication-square150x150logo" content="<?php echo tpl_getMediaFile(array(':wiki:mediumtile.png', 'images/fav/mediumtile.png')); ?>" />
80<meta name="msapplication-wide310x150logo" content="<?php echo tpl_getMediaFile(array(':wiki:widetile.png', 'images/fav/widetile.png')); ?>" />
81<meta name="msapplication-square310x310logo" content="<?php echo tpl_getMediaFile(array(':wiki:largetile.png', 'images/fav/largetile.png')); ?>" />
82<?php
83
84
85/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
86/* Include Hook: meta.html */
87/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
88?>
89<?php tpl_includeFile('meta.html') ?>
90</head>
91<?php /* #dokuwiki__top used as anchor for "back to top" button/link links */ ?>
92<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?>">
93
94
95    <div id="dokuwiki__site">
96        <?php
97
98
99/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
100/* nav-direct */
101/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
102        ?>
103
104        <div id="dokuwiki_direct" class="nav-direct no-print">
105            <div class="container">
106                <div class="row">
107                    <div class="col-xs-12">
108
109                        <p>
110                            <span class="sr-out"><?php echo tpl_getLang('direct_prefix'); ?>: </span>
111                            <span class="skip">
112                                <a href="#content"><?php echo tpl_getLang('direct_content_main'); ?></a><span class="sr-out"> /</span>
113                                <a href="#nav-main"><?php echo tpl_getLang('direct_menu_main');  ?></a>
114                            </span>
115                        </p>
116
117                    </div><!-- .col -->
118                </div><!-- .row -->
119            </div><!-- .container -->
120        </div><!-- .nav-direct -->
121
122
123        <div class="page-wrapper <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
124            <?php
125
126
127/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
128/* Message AREA */
129/* FIXME: position of error + info messages. Does it have to be on top of the page? */
130/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
131            html_msgarea();
132
133
134/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
135/* Include Hook: header.html */
136/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
137            tpl_includeFile('header.html');
138
139
140/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
141/* MagicMatcher */
142/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
143            ?>
144
145            <div id="dokuwiki_magic-matcher" class="magic-matcher no-print">
146                <div class="container">
147                </div><!-- .container -->
148            </div><!-- .magic-matcher -->
149            <?php
150
151
152/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
153/* Header */
154/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
155            ?>
156
157            <div id="dokuwiki__header" class="header no-print">
158                <div class="container">
159                </div><!-- .container -->
160
161            <div class="headings">
162                <h1><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1>
163                <?php /* how to insert logo instead (if no CSS image replacement technique is used):
164                        upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
165                        tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
166                <?php if ($conf['tagline']): ?>
167                    <p class="claim"><?php echo $conf['tagline'] ?></p>
168                <?php endif ?>
169
170                <ul class="a11y skip">
171                    <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
172                </ul>
173                <div class="clearer"></div>
174            </div>
175
176            <div class="tools">
177                <!-- USER TOOLS -->
178                <?php if ($conf['useacl'] && $showTools): ?>
179                    <div id="dokuwiki__usertools">
180                        <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3>
181                        <ul>
182                            <?php
183                                if (!empty($_SERVER['REMOTE_USER'])) {
184                                    echo '<li class="user">';
185                                    tpl_userinfo(); /* 'Logged in as ...' */
186                                    echo '</li>';
187                                }
188                            ?>
189                            <?php /* the optional second parameter of tpl_action() switches between a link and a button,
190                                     e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */
191                            ?>
192                            <?php tpl_toolsevent('usertools', array(
193                                'admin'     => tpl_action('admin', 1, 'li', 1),
194                                'userpage'  => _tpl_action('userpage', 1, 'li', 1),
195                                'profile'   => tpl_action('profile', 1, 'li', 1),
196                                'register'  => tpl_action('register', 1, 'li', 1),
197                                'login'     => tpl_action('login', 1, 'li', 1),
198                            )); ?>
199                        </ul>
200                    </div>
201                <?php endif ?>
202
203                <!-- SITE TOOLS -->
204                <div id="dokuwiki__sitetools">
205                    <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3>
206                    <?php tpl_searchform() ?>
207                    <ul>
208                        <?php tpl_toolsevent('sitetools', array(
209                            'recent'    => tpl_action('recent', 1, 'li', 1),
210                            'media'     => tpl_action('media', 1, 'li', 1),
211                            'index'     => tpl_action('index', 1, 'li', 1),
212                        )); ?>
213                    </ul>
214                </div>
215
216            </div>
217            <div class="clearer"></div>
218
219            <!-- BREADCRUMBS -->
220            <?php if($conf['breadcrumbs']){ ?>
221                <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
222            <?php } ?>
223            <?php if($conf['youarehere']){ ?>
224                <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
225            <?php } ?>
226
227            <div class="clearer"></div>
228            <hr class="a11y" />
229        </div></div><!-- /header -->
230
231
232        <div class="wrapper">
233
234            <!-- ********** ASIDE ********** -->
235            <?php if ($showSidebar): ?>
236                <div id="dokuwiki__aside"><div class="pad aside include group">
237                    <?php tpl_includeFile('sidebarheader.html') ?>
238                    <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
239                    <?php tpl_includeFile('sidebarfooter.html') ?>
240                    <div class="clearer"></div>
241                </div></div><!-- /aside -->
242            <?php endif; ?>
243
244            <!-- ********** CONTENT ********** -->
245            <div id="dokuwiki__content"><div class="pad">
246                <?php tpl_flush() /* flush the output buffer */ ?>
247                <?php tpl_includeFile('pageheader.html') ?>
248
249                <div class="page">
250                    <!-- wikipage start -->
251                    <?php tpl_content() /* the main content */ ?>
252                    <!-- wikipage stop -->
253                    <div class="clearer"></div>
254                </div>
255
256                <?php tpl_flush() ?>
257                <?php tpl_includeFile('pagefooter.html') ?>
258            </div></div><!-- /content -->
259
260            <div class="clearer"></div>
261            <hr class="a11y" />
262
263            <!-- PAGE ACTIONS -->
264            <?php if ($showTools): ?>
265                <div id="dokuwiki__pagetools">
266                    <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
267                    <ul>
268                        <?php tpl_toolsevent('pagetools', array(
269                            'edit'      => tpl_action('edit', 1, 'li', 1),
270                            'discussion'=> _tpl_action('discussion', 1, 'li', 1),
271                            'revisions' => tpl_action('revisions', 1, 'li', 1),
272                            'backlink'  => tpl_action('backlink', 1, 'li', 1),
273                            'subscribe' => tpl_action('subscribe', 1, 'li', 1),
274                            'revert'    => tpl_action('revert', 1, 'li', 1),
275                            'top'       => tpl_action('top', 1, 'li', 1),
276                        )); ?>
277                    </ul>
278                </div>
279            <?php endif; ?>
280        </div><!-- /wrapper -->
281
282        <!-- ********** FOOTER ********** -->
283        <div id="dokuwiki__footer"><div class="pad">
284            <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
285            <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
286        </div></div><!-- /footer -->
287
288        <?php tpl_includeFile('footer.html') ?>
289    </div><!-- .dokuwiki__site -->
290
291    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
292
293</body>
294</html>
295