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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
<?php
/**
* Ad Hominem Template
*
* @link https://ad.hominem.info/
* @author Sascha Leib <sascha@leib.be>
* @author Anika Henke <anika@selfthinker.org>
* @author Clarence Lee <clarencedglee@gmail.com>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
require_once('my_template.php');
$hasSidebar = page_findnearest($conf['sidebar']);
$showSidebar = $hasSidebar && ($ACT=='show');
// get the language information:
$htmlLang = ' lang="' . $conf['lang'] . ( $lang['direction'] != 'ltr' ? '" dir="'. $lang['direction'] : '') . '"';
?><!DOCTYPE html>
<html<?php echo $htmlLang ?>>
<head>
<meta charset="UTF-8" />
<title><?php tpl_pagetitle() ?> – <?php echo str_replace(' ', ' ', strip_tags($conf['title'])) ?></title>
<?php my_metaheaders() ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<?php my_favicons() ?>
<?php tpl_includeFile('meta.html') ?>
</head>
<body class="site <?php echo trim(tpl_classes()) . (tpl_getConf('darkmode') == 'allow' ? ' darkmode' : '') . (tpl_getConf('printstyle') !== 'basic' ? ' print-' . tpl_getConf('printstyle') : ''); ?>" data-pageid="<?php echo $ID; ?>">
<div id="skip-link">
<a href="#main-content"><?php echo $lang['skip_to_content']; ?></a>
</div>
<div id="header-layout">
<header>
<div id="siteLogo">
<?php my_sitelogo(); ?>
<h2 class="title"><?php tpl_link( my_homelink(), htmlentities($conf['title']), ''); ?></h2>
<p class="claim"><?php echo $conf['tagline']; ?></p>
</div>
<div id="globalTools">
<div id="gUserTools">
<h3 class="sronly"><?php echo $lang['user_tools']; ?></h3>
<ul>
<?php my_userinfo(str_repeat(chr(9),6)); ?>
</ul>
</div>
</div>
<div id="phSearch">
<?php include('tpl_searchform.php'); ?>
</div>
<div id="phTools">
<?php my_langmenu(str_repeat(chr(9),4), 'tb'); ?>
</div>
<div id="phInclude"><?php tpl_includeFile('header.html') ?></div>
</header>
</div>
<div id="main-layout">
<div id="sidebar" class="toggle <?php
echo ( $showSidebar ? 'auto' : 'hide' ); ?>">
<button type="button" class="tg_button" title="<?php echo $lang['sidebar'] ?>"><span><?php echo $lang['sidebar'] ?></span></button>
<div class="tg_content">
<nav id="sbNavigation">
<!-- - - - - - - - - SIDEBAR CONTENT - - - - - - - -->
<?php
tpl_flush();
tpl_includeFile('sidebarheader.html');
tpl_include_page($conf['sidebar'], true, true);
tpl_includeFile('sidebarfooter.html');
?>
<!-- - - - - - - - - END OF SIDEBAR CONTENT - - - - - - - -->
</nav>
<?php my_langmenu(str_repeat(chr(9),4), 'sb'); ?>
<div id="sbBreadcrumbs">
<?php if($conf['breadcrumbs']) { my_breadcrumbs(str_repeat(chr(9),5)); } ?>
</div>
</div>
</div>
<main id="dokuwiki__top">
<header>
<?php my_toc(str_repeat(chr(9),4));
tpl_flush();
tpl_includeFile('pageheader.html');
if($conf['youarehere']) { my_youarehere(str_repeat(chr(9),4)); }
?> </header>
<article id="main-content">
<!-- - - - - - - - - ARTICLE CONTENT - - - - - - - --><?php tpl_content(false) ?>
<!-- - - - - - - - - END OF ARTICLE - - - - - - - -->
</article>
<footer>
<?php my_lastchange(str_repeat(chr(9),4)); ?>
<?php tpl_includeFile('pagefooter.html'); ?>
</footer>
</main>
</div>
<div id="footer-layout">
<footer>
<div id="ftPlaceholder" class="ftSection"></div>
<div id="ftInclude" class="ftSection">
<?php tpl_includeFile('footer.html'); ?>
</div>
<div id="ftSiteTools" class="ftSection">
<h4><?php echo $lang['site_tools']; ?></h4>
<ul>
<?php echo (new \dokuwiki\Menu\SiteMenu())->getListItems('action ', false); ?>
</ul>
</div>
<div id="ftPageTools" class="ftSection">
<h4><?php echo $lang['page_tools']; ?></h4>
<ul>
<?php echo (new \dokuwiki\Menu\PageMenu())->getListItems('', false); ?>
</ul>
</div>
<?php include('tpl_footer.php'); ?>
</footer>
</div>
<?php my_cookiebanner("\t"); ?>
<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
<div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?>
</body>
</html>
|