1<?php
2/**
3 * DokuWiki Default Template 2012, fork 2017
4 *
5 * @link     http://dokuwiki.org/template
6 * @author   Anika Henke <anika@selfthinker.org>
7 * @author   Clarence Lee <clarencedglee@gmail.com>
8 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
9 */
10
11if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
12header('X-UA-Compatible: IE=edge,chrome=1');
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(array('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('tpl_header.php') ?>
33
34        <div class="wrapper group">
35
36            <?php if($showSidebar): ?>
37                <!-- ********** ASIDE ********** -->
38                <div id="dokuwiki__aside"><div class="pad aside include group">
39                    <h3 class="toggle"><?php echo $lang['sidebar'] ?></h3>
40                    <div class="content"><div class="group">
41                        <?php tpl_flush() ?>
42                        <?php tpl_includeFile('sidebarheader.html') ?>
43
44                        <?php tpl_include_page(tpl_getConf('topSidebar'), true, true) ?>
45                        <p><br/></p>
46                        <div id="accordion">
47                        <?php tpl_include_page($conf['sidebar'], true, true) ?>
48                        </div>
49                        <p><br/></p>
50                        <?php tpl_include_page(tpl_getConf('bottomSidebar'), true, true) ?>
51
52                        <?php tpl_includeFile('sidebarfooter.html') ?>
53                    </div></div>
54                </div></div><!-- /aside -->
55            <?php endif; ?>
56
57            <!-- ********** CONTENT ********** -->
58            <div id="dokuwiki__content"><div class="pad group">
59                <?php html_msgarea() ?>
60
61                <div class="pageId"><span><?php echo hsc($ID) ?></span></div>
62
63                <div class="page group">
64                    <?php tpl_flush() ?>
65                    <?php tpl_includeFile('pageheader.html') ?>
66                    <!-- wikipage start -->
67                    <?php tpl_content() ?>
68                    <!-- wikipage stop -->
69                    <?php tpl_includeFile('pagefooter.html') ?>
70                </div>
71
72                <div class="docInfo"><?php tpl_pageinfo() ?></div>
73
74                <?php tpl_flush() ?>
75            </div></div><!-- /content -->
76
77            <hr class="a11y" />
78
79            <!-- PAGE ACTIONS -->
80            <div id="dokuwiki__pagetools">
81                <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3>
82                <div class="tools">
83                    <ul>
84                        <?php echo (new \dokuwiki\Menu\PageMenu())->getListItems(); ?>
85                    </ul>
86                </div>
87            </div>
88        </div><!-- /wrapper -->
89
90        <?php include('tpl_footer.php') ?>
91    </div></div><!-- /site -->
92
93    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
94    <div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?>
95</body>
96</html>
97