1<?php
2
3/**
4 * DokuWiki Default Template 2012
5 *
6 * @link     http://dokuwiki.org/template
7 * @author   Anika Henke <anika@selfthinker.org>
8 * @author   Clarence Lee <clarencedglee@gmail.com>
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
14$hasSidebar = page_findnearest($conf['sidebar']);
15$showSidebar = $hasSidebar && ($ACT == 'show');
16?><!DOCTYPE html>
17<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
18<head>
19    <meta charset="utf-8" />
20    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
21    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
22    <?php tpl_metaheaders() ?>
23    <meta name="viewport" content="width=device-width,initial-scale=1" />
24    <?php echo tpl_favicon(['favicon', 'mobile']) ?>
25    <?php tpl_includeFile('meta.html') ?>
26</head>
27
28<body>
29    <div id="dokuwiki__site"><div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php
30        echo ($showSidebar) ? 'showSidebar' : ''; ?> <?php echo ($hasSidebar) ? 'hasSidebar' : ''; ?>">
31
32        <?php include(__DIR__ . '/tpl_header.php') ?>
33
34        <div class="wrapper group">
35
36            <?php if ($showSidebar) : ?>
37                <!-- ********** ASIDE ********** -->
38                <nav id="dokuwiki__aside" aria-label="<?php echo $lang['sidebar']
39                ?>"><div class="pad aside include group">
40                    <h3 class="toggle"><?php echo $lang['sidebar'] ?></h3>
41                    <div class="content"><div class="group">
42                        <?php tpl_flush() ?>
43                        <?php tpl_includeFile('sidebarheader.html') ?>
44                        <?php tpl_include_page($conf['sidebar'], true, true) ?>
45                        <?php tpl_includeFile('sidebarfooter.html') ?>
46                    </div></div>
47                </div></nav><!-- /aside -->
48            <?php endif; ?>
49
50            <!-- ********** CONTENT ********** -->
51            <main id="dokuwiki__content"><div class="pad group">
52                <?php html_msgarea() ?>
53
54                <div class="pageId"><span><?php echo hsc($ID) ?></span></div>
55
56                <div class="page group">
57                    <?php tpl_flush() ?>
58                    <?php tpl_includeFile('pageheader.html') ?>
59                    <!-- wikipage start -->
60                    <?php tpl_content() ?>
61                    <!-- wikipage stop -->
62                    <?php tpl_includeFile('pagefooter.html') ?>
63                </div>
64
65                <div class="docInfo"><?php tpl_pageinfo() ?></div>
66
67                <?php tpl_flush() ?>
68
69                <hr class="a11y" />
70            </div></main><!-- /content -->
71
72            <!-- PAGE ACTIONS -->
73            <nav id="dokuwiki__pagetools" aria-labelledby="dokuwiki__pagetools__heading">
74                <h3 class="a11y" id="dokuwiki__pagetools__heading"><?php echo $lang['page_tools']; ?></h3>
75                <div class="tools">
76                    <ul>
77                        <?php echo (new \dokuwiki\Menu\PageMenu())->getListItems(); ?>
78                    </ul>
79                </div>
80            </nav>
81        </div><!-- /wrapper -->
82
83        <?php include(__DIR__ . '/tpl_footer.php') ?>
84    </div></div><!-- /site -->
85
86    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
87    <div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?>
88</body>
89</html>
90