1<?php
2/**
3 * DokuWiki Twenty Fifteen Template
4 *
5 * @link     https://github.com/lainme/dokuwiki-theme-twentyfifteen
6 * @author   Anika Henke <anika@selfthinker.org> (upstream)
7 * @author   Clarence Lee <clarencedglee@gmail.com> (upstream)
8 * @author   WordPress.org & Automattic.com (upstream)
9 * @author   lainme <lainme993@gmail.com>
10 * @license  GPLv2 (http://www.gnu.org/licenses/gpl.html)
11 */
12
13if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
14header('X-UA-Compatible: IE=edge,chrome=1');
15?>
16<!DOCTYPE html>
17<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
18<head>
19    <meta charset="UTF-8"/>
20    <meta name="viewport" content="width=device-width,initial-scale=1" />
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    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inconsolata:n,b|Noto+Sans:n,b,i,bi|Noto+Serif:n,b,i,bi" type="text/css" media="all"/>
24    <?php tpl_metaheaders() ?>
25    <?php tpl_includeFile('meta.html') ?>
26    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
27</head>
28<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?>">
29<div class="site">
30    <div class="sidebar">
31        <header class="site-header">
32            <div class="site-branding">
33                <?php
34                    $logoSize = array();
35                    $logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png'), false, $logoSize);
36                    tpl_link(wl(), '<img src="'.$logo.'" '.$logoSize[3].' alt="" />', 'class="site-logo" accesskey="h" title="[H]"');
37                ?>
38                <h1 class="site-title">
39                    <a href="<?php echo wl(); ?>" rel="home" accesskey="h" title="[H]"><?php echo $conf['title']; ?></a>
40                </h1>
41                <?php if ($conf['tagline']): ?><p class="site-description"><?php echo $conf['tagline'] ?></p><?php endif ?>
42                <button class="secondary-toggle">Menu</button>
43            </div>
44        </header>
45        <div class="secondary">
46            <div class="widget-area">
47                <aside class="widget">
48                    <?php tpl_searchform() ?>
49                </aside>
50                <?php if ($conf['sidebar']): ?>
51                <aside class="widget">
52                    <?php tpl_include_page($conf['sidebar'], 1, 1) ?>
53                </aside>
54                <?php endif ?>
55                <aside class="widget">
56                    <h2><?php echo $lang['site_tools'] ?></h3>
57                    <ul><?php echo (new \dokuwiki\Menu\SiteMenu())->getListItems('', false); ?></ul>
58                </aside>
59                <aside class="widget">
60                    <h2><?php echo $lang['page_tools'] ?></h3>
61                    <ul><?php echo (new \dokuwiki\Menu\PageMenu())->getListItems('', false); ?></ul>
62                </aside>
63                <?php if ($conf['useacl']): ?>
64                <aside class="widget">
65                    <h2><?php echo $lang['user_tools'] ?></h3>
66                    <ul><?php echo (new \dokuwiki\Menu\UserMenu())->getListItems('', false); ?></ul>
67                    <?php if (!empty($_SERVER['REMOTE_USER'])) {
68                        echo '<p>';
69                        tpl_userinfo();
70                        echo '</p>';
71                        }
72                    ?>
73                </aside>
74                <?php endif ?>
75                <aside class="widget">
76                    <?php tpl_license('button') ?>
77                </aside>
78            </div>
79	</div>
80    </div>
81    <div class="site-content">
82        <main class="site-main">
83            <?php if($conf['breadcrumbs'] || $conf['youarehere']){ ?>
84            <article class="entry entry-navigation">
85                <div class="entry-content">
86                    <?php if($conf['breadcrumbs']){ ?>
87                    <div><?php tpl_breadcrumbs() ?></div>
88                    <?php } ?>
89                    <?php if($conf['youarehere']){ ?>
90                    <div><?php tpl_youarehere() ?></div>
91                    <?php } ?>
92                </div>
93            </article>
94            <?php } ?>
95            <article id="twentyfifteen__entry" class="entry">
96                <div id="twentyfifteen__entry-content" class="entry-content">
97                    <?php tpl_flush() ?>
98                    <?php html_msgarea() ?>
99                    <!-- wikipage start -->
100                    <?php tpl_content() ?>
101                    <!-- wikipage stop -->
102                    <?php tpl_flush() ?>
103                </div>
104            </article>
105        </main>
106    </div>
107    <footer class="site-footer">
108        <div class="site-info"><?php tpl_pageinfo() ?></div>
109    </footer>
110    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
111</div>
112</body>
113</html>
114