forked from my17560/dokuwiki-template-readthedokus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.php
56 lines (50 loc) · 2.25 KB
/
main.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* DokuWiki ReadtheDokus Template
*
* @link http://dokuwiki.org/template:readthedokus
* @author Masaki Yasutake <[email protected]>
* @license MIT
*/
global $conf, $ID, $INFO;
if (!defined('DOKU_INC')) die();
$showSidebar = page_findnearest($conf['sidebar']);
?>
<!DOCTYPE html>
<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">
<head>
<meta charset="UTF-8" />
<title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
<?php tpl_metaheaders() ?>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<?php echo tpl_favicon(array('favicon', 'mobile')) ?>
<?php tpl_includeFile('tpl_parts/tpl_meta.html') ?>
<?php tpl_includeFile('meta.html') ?>
<?php tpl_includeFile('tpl_parts/tpl_extrafonts.html') ?>
</head>
<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"] ?>">
<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" ) ?>">
<!-- Header -->
<?php tpl_includeFile('tpl_parts/tpl_header.html') ?>
<div class="wrapper group">
<!-- Sidebar -->
<?php tpl_includeFile('tpl_parts/tpl_sidebar.html') ?>
<!-- Content -->
<main id="dokuwiki__content">
<?php tpl_includeFile('tpl_parts/tpl_mobileheader.html') ?>
<div class="group">
<?php tpl_includeFile('tpl_parts/tpl_content.html') ?>
</div>
</main>
</div>
<!-- Footer -->
<?php tpl_includeFile('tpl_parts/tpl_footer.html') ?>
</div>
<!-- Utils -->
<div class="no" style="display:none"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
<div id="__media_query"></div>
<?php tpl_includeFile('util.html'); ?>
</body>
</html>