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,viewport-fit=cover" />
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	<style>
29   	<?php tpl_includeFile('tpl_parts/tpl_extrastyles.html') ?>
30	</style>
31</head>
32<body id="dokuwiki__top" data-id="<?php echo $ID ?>" data-namespace="<?php echo $INFO['namespace'] ?>" data-useragent="<?php if (isset($_SERVER['HTTP_USER_AGENT'])) echo $_SERVER['HTTP_USER_AGENT'] ?>" data-contentlang="<?php echo $conf["lang"] ?>">
33<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" ) ?>">
34		<!-- Header -->
35        <?php tpl_includeFile('tpl_parts/tpl_header.html') ?>
36
37        <div class="wrapper group">
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
46			<!-- Sidebar -->
47           	<?php tpl_includeFile('tpl_parts/tpl_sidebar.html') ?>
48        </div>
49
50		<!-- Footer -->
51        <?php tpl_includeFile('tpl_parts/tpl_footer.html') ?>
52    </div>
53
54	<!-- Utils -->
55    <div class="no" style="display:none"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
56	<div id="__media_query"></div>
57    <?php tpl_includeFile('util.html'); ?>
58</body>
59</html>
60