1<?php
2/**
3 * DokuWiki Starter Template
4 *
5 * @link     http://dokuwiki.org/template:starter
6 * @author   Anika Henke <anika@selfthinker.org>
7 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
8 */
9
10if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
11@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
12header('X-UA-Compatible: IE=edge,chrome=1');
13
14$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) );
15$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
16?><!DOCTYPE html>
17<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
18  lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
19<head>
20    <meta charset="UTF-8" />
21    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
22    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
23    <?php tpl_metaheaders() ?>
24    <meta name="viewport" content="width=device-width,initial-scale=1" />
25    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
26    <?php tpl_includeFile('meta.html') ?>
27</head>
28
29<body>
30    <?php /* with these Conditional Comments you can better address IE issues in CSS files,
31             precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?>
32    <!--[if lte IE 8 ]><div id="IE8"><![endif]-->
33
34    <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
35    <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
36             should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
37    <div id="dokuwiki__site"><div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php
38        echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
39        <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
40        <?php tpl_includeFile('header.html') ?>
41
42        <!-- ********** HEADER ********** -->
43        <div id="dokuwiki__header"><div class="pad">
44
45            <div class="headings">
46                <h1><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1>
47                <?php /* how to insert logo instead (if no CSS image replacement technique is used):
48                        upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
49                        tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
50                <?php if ($conf['tagline']): ?>
51                    <p class="claim"><?php echo $conf['tagline'] ?></p>
52                <?php endif ?>
53
54                <ul class="a11y skip">
55                    <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
56                </ul>
57                <div class="clearer"></div>
58            </div>
59
60            <div class="tools">
61                <!-- USER TOOLS -->
62                <?php if ($conf['useacl'] && $showTools): ?>
63                    <div id="dokuwiki__usertools">
64                        <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3>
65                        <ul>
66                            <?php
67                                if (!empty($_SERVER['REMOTE_USER'])) {
68                                    echo '<li class="user">';
69                                    tpl_userinfo(); /* 'Logged in as ...' */
70                                    echo '</li>';
71                                }
72                            ?>
73                            <?php
74                            echo (new \dokuwiki\Menu\UserMenu())->getListItems('action ', false);
75                            ?>
76                        </ul>
77                    </div>
78                <?php endif ?>
79
80                <!-- SITE TOOLS -->
81                <div id="dokuwiki__sitetools">
82                    <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3>
83                    <?php tpl_searchform() ?>
84                    <div class="mobileTools">
85                        <?php echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools']); ?>
86                    </div>
87                    <ul>
88                        <?php //echo (new \dokuwiki\Menu\SiteMenu())->getListItems('action ', false); ?>
89                    </ul>
90                </div>
91
92            </div>
93            <div class="clearer"></div>
94
95            <!-- BREADCRUMBS -->
96            <?php if($conf['breadcrumbs']){ ?>
97                <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
98            <?php } ?>
99            <?php if($conf['youarehere']){ ?>
100                <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
101            <?php } ?>
102
103            <div class="clearer"></div>
104            <hr class="a11y" />
105        </div></div><!-- /header -->
106
107
108        <div class="wrapper">
109
110            <!-- ********** ASIDE ********** -->
111            <?php if ($showSidebar): ?>
112                <div id="dokuwiki__aside"><div class="pad aside include group">
113                    <?php tpl_includeFile('sidebarheader.html') ?>
114                    <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
115                    <?php tpl_includeFile('sidebarfooter.html') ?>
116                    <div class="clearer"></div>
117                </div></div><!-- /aside -->
118            <?php endif; ?>
119
120            <!-- ********** CONTENT ********** -->
121            <div id="dokuwiki__content"><div class="pad">
122                <?php tpl_flush() /* flush the output buffer */ ?>
123                <?php tpl_includeFile('pageheader.html') ?>
124
125                <div class="page">
126                    <!-- wikipage start -->
127                    <?php tpl_content() /* the main content */ ?>
128                    <!-- wikipage stop -->
129                    <div class="clearer"></div>
130                </div>
131
132                <?php tpl_flush() ?>
133                <?php tpl_includeFile('pagefooter.html') ?>
134            </div></div><!-- /content -->
135
136            <div class="clearer"></div>
137            <hr class="a11y" />
138
139            <!-- PAGE ACTIONS -->
140            <div id="dokuwiki__pagetools">
141                <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3>
142                <div class="tools">
143                    <ul>
144                        <?php echo (new \dokuwiki\Menu\PageMenu())->getListItems(); ?>
145                    </ul>
146                </div>
147            </div>
148        </div><!-- /wrapper -->
149
150        <!-- ********** FOOTER ********** -->
151        <div id="dokuwiki__footer"><div class="pad">
152<!--            <div class="doc">--><?php //tpl_pageinfo() /* 'Last modified' etc */ ?><!--</div>-->
153<!--            --><?php //tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
154
155                <div class="license">
156                    © 2019 紫郢青索
157                </div>
158        </div></div><!-- /footer -->
159
160        <?php tpl_includeFile('footer.html') ?>
161    </div></div><!-- /site -->
162
163    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
164    <!--[if lte IE 8 ]></div><![endif]-->
165</body>
166</html>
167