1<?php
2/**
3 * DokuWiki ReadtheDokus Template
4 *
5 * @link     http://dokuwiki.org/template:readthedokus
6 * @author   Masaki Yasutake <my17560@gmail.com>
7 * @license  MIT
8 */
9
10global $conf, $ID, $INFO;
11
12if (!defined('DOKU_INC')) die();
13$showSidebar = page_findnearest($conf['sidebar']);
14?>
15<!DOCTYPE html>
16<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
17  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('tpl_parts/tpl_meta.html') ?>
26    <?php tpl_includeFile('meta.html') ?>
27    <?php tpl_includeFile('tpl_parts/tpl_extrafonts.html') ?>
28</head>
29<body id="dokuwiki__top" data-id="<?php echo $ID ?>" data-namespace="<?php echo $INFO['namespace'] ?>" data-useragent="<?php echo $_SERVER['HTTP_USER_AGENT'] ?>" data-contentlang="<?php echo $conf["lang"] ?>">
30<div id="dokuwiki__site" class="<?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?> <?php echo ( $showSidebar ? "showSidebar" : "" ); ?> <?php echo (tpl_getConf("sidebarposition") == "right" ? "rightSidebar" : "leftSidebar" ) ?>">
31		<!-- Header -->
32        <?php tpl_includeFile('tpl_parts/tpl_header.html') ?>
33
34        <div class="wrapper group">
35			<!-- Sidebar -->
36           	<?php tpl_includeFile('tpl_parts/tpl_sidebar.html') ?>
37
38			<!-- Content -->
39			<main id="dokuwiki__content">
40        		<?php tpl_includeFile('tpl_parts/tpl_mobileheader.html') ?>
41				<div class="group">
42            		<?php tpl_includeFile('tpl_parts/tpl_content.html') ?>
43				</div>
44			</main>
45        </div>
46
47		<!-- Footer -->
48        <?php tpl_includeFile('tpl_parts/tpl_footer.html') ?>
49    </div>
50
51	<!-- Utils -->
52    <div class="no" style="display:none"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
53	<div id="__media_query"></div>
54    <?php tpl_includeFile('util.html'); ?>
55</body>
56</html>
57