xref: /template/readthedokus/main.php (revision 7c9d2d73c4d38d89e9b0ee86a4068ffb6012ad14)
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
10if (!defined('DOKU_INC')) die();
11$showSidebar = page_findnearest($conf['sidebar']);
12?>
13
14<!DOCTYPE html>
15<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
16  lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
17<head>
18    <meta charset="UTF-8" />
19    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
20    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
21    <?php tpl_metaheaders() ?>
22    <meta name="viewport" content="width=device-width,initial-scale=1" />
23    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
24    <?php tpl_includeFile('tpl_parts/tpl_meta.html') ?>
25    <?php tpl_includeFile('meta.html') ?>
26</head>
27<body id="dokuwiki__top">
28    <div id="dokuwiki__site" class="<?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?> <?php echo ( $showSidebar ? "showSidebar" : "" ); ?>">
29		<!-- Header -->
30        <?php tpl_includeFile('tpl_parts/tpl_header.html') ?>
31
32        <div class="wrapper group">
33			<!-- Sidebar -->
34           	<?php tpl_includeFile('tpl_parts/tpl_sidebar.html') ?>
35
36			<!-- Content -->
37			<main id="dokuwiki__content">
38        		<?php tpl_includeFile('tpl_parts/tpl_mobile-header.html') ?>
39				<div class="group">
40            		<?php tpl_includeFile('tpl_parts/tpl_content.html') ?>
41				</div>
42			</main>
43        </div>
44
45		<!-- Footer -->
46        <?php tpl_includeFile('tpl_parts/tpl_footer.html') ?>
47    </div>
48
49	<!-- Utils -->
50    <div class="no" style="display:none"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
51	<div id="__media_query"></div>
52</body>
53</html>
54