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