1<?php
2/**
3 * Khum1 DokuWiki Template 2020 (based on Zen, based on Default template)
4 *
5 * @link     http://dokuwiki.org/template
6 * @author   Zatalyz <zatalyz@liev.re>
7 * @author   Anika Henke <anika@selfthinker.org>
8 * @author   Clarence Lee <clarencedglee@gmail.com>
9 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
10 */
11
12if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
13header('X-UA-Compatible: IE=edge,chrome=1');
14
15$hasSidebar = page_findnearest($conf['sidebar']);
16$showSidebar = $hasSidebar && ($ACT=='show');
17?><!DOCTYPE html>
18<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
19<head>
20    <meta charset="utf-8" />
21    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
22    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
23    <?php tpl_metaheaders() ?>
24    <meta name="viewport" content="width=device-width,initial-scale=1" />
25    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
26    <?php tpl_includeFile('meta.html') ?>
27</head>
28
29<body>
30	<?php tpl_includeFile('header.php'); ?>
31
32    <div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php
33        echo ($showSidebar) ? 'showSidebar' : ''; ?> <?php echo ($hasSidebar) ? 'hasSidebar' : ''; ?>">
34
35        <!-- Jump to content (accessibility -->
36        <ul class="a11y skip">
37            <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content']; ?></a></li>
38        </ul>
39
40		<!-- ********** HEADER ********** -->
41		<header id="dokuwiki__header">
42
43			<!-- Menu spécial mobiles -->
44			<div class="mobileTools">
45				<?php echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools']); ?>
46				<?php tpl_searchform(); ?>
47				<!-- translation (only with Translation Plugin) -->
48				<?php
49				$translation = plugin_load('helper','translation');
50				if ($translation) echo $translation->showTranslations();
51				?>
52			</div>
53
54			<!-- logo, wiki title, tagline, breadcrumb -->
55			<div class="headings">
56				<h1><?php
57					// get logo either out of the template images folder or data/media folder
58					$logo = tpl_getMediaFile(array(':wiki:logo.svg', ':wiki:logo.png', ':logo.png', 'images/logo.svg', 'images/logo.png'), false);
59
60					// display logo and wiki title in a link to the home page
61					// Add <span>'.$conf['title'].'</span> after img to have Wiki Title display
62					tpl_link(
63						wl(),
64						'<img src="'.$logo.'" '.$logoSize[3].' alt="'.$conf['title'].'" /> ',
65						'accesskey="h" title="[H] '.$conf['title'].'"'
66					);
67				?></h1>
68				<?php if ($conf['tagline']): ?>
69					<p class="claim"><?php echo $conf['tagline']; ?></p>
70				<?php endif ?>
71			</div>
72		</header>
73
74		<hr class="a11y" />
75		<!-- /header -->
76
77
78		<div id="dokuwiki__site">
79			<!--<div class="pad group">-->
80        <div class="wrapper group">
81
82                <!-- ********** Sidebar ********** -->
83                <?php if($showSidebar): ?>
84                <nav id="dokuwiki__sidebar">
85					<div class="biseau_left_top nomobile"></div>
86					<h3 class="toggle"><span class="menu_mobile">
87					<?php
88						$kh_sidebar = tpl_getLang('kh_sidebar');
89						echo $kh_sidebar ;
90						//echo $lang['sidebar'] ;
91					?></span></h3>
92					<div class="pad sidebar include group">
93						<div class="content"><div class="group">
94							<?php tpl_flush() ?>
95							<?php tpl_include_page($conf['sidebar'], true, true) ?>
96						</div></div>
97					</div>
98					<div class="biseau_2_bottom nomobile"></div>
99                </nav>
100                <?php endif; ?>
101                <!-- /Sidebar -->
102
103
104
105            <!-- ********** Article ********** -->
106            <div id="dokuwiki__content"><div class="pad group">
107                <?php html_msgarea() ?>
108
109				<!-- ********** Tab ********** -->
110                <div class="tabblocks">
111                    <div class="nomobile">
112						<ul class="tab_ul">
113					<?php
114					foreach ( (new \dokuwiki\Menu\PageMenu())->getItems() as $item ) {
115						if ( preg_match('/^childrenpages_/', $item->getType()) ) {
116							if ( $item->is_active ) {
117								echo '<li class="current_page"><div class="toptab_current_page"></div>'.$item->asHtmlLink(false, true).'</li>';
118							} else {
119								echo '<li><div class="toptab"></div>'.$item->asHtmlLink(false, true).'</li>';
120							}
121						}
122					}
123					?>
124						</ul>
125
126					</div>
127
128                </div>
129
130                <div class="biseau_right_top"></div>
131				<div class="page group">
132
133
134                    <?php tpl_flush() ?>
135                    <?php tpl_includeFile('pageheader.html') ?>
136
137
138                    <!-- wikipage start -->
139					<?php tpl_toc(false) ?>
140					<article class="kharticle">
141                    <?php tpl_content(false) ?>
142					</article>
143                    <!-- wikipage stop -->
144                    <?php tpl_includeFile('pagefooter.html') ?>
145                </div>
146                <div class="biseau_2_bottom"></div>
147				<footer class="article_footer">
148					<div class="buttons">
149						<?php
150							tpl_license('button', true, false, false); // license button, no wrapper
151							$target = ($conf['target']['extern']) ? 'target="'.$conf['target']['extern'].'"' : '';
152						?>
153						<a href="https://dokuwiki.org/" title="Driven by DokuWiki" <?php echo $target?>><img
154							src="<?php echo tpl_basedir(); ?>images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" /></a>
155					</div>
156                <div class="docInfo"><?php tpl_pageinfo() ?></div>
157                </footer>
158
159                <?php tpl_flush() ?>
160            </div></div><!-- /article -->
161
162            <hr class="a11y" />
163
164			<!-- ********** Right menu (tools) ********** -->
165			<div class="navtoolwrap">
166			<nav class="nomobile navtool">
167				<div class="biseau_right_top nomobile"></div>
168				<div class="nomobile bartool"
169					<!-- Page Actions -->
170					<div class="dokuwiki__tools nomobile">
171						<!-- Don't include childrenpage here -->
172						<?php
173						foreach ( (new \dokuwiki\Menu\PageMenu())->getItems() as $item ) {
174							if ( ! preg_match('/^childrenpages_/', $item->getType()) ) {
175								echo '<li>'.$item->asHtmlLink(false, true).'</li>';
176							}
177						}
178 ?>
179					</div>
180
181					<hr class="nomobile">
182
183					<!-- usertools and sitetools -->
184					<div class="dokuwiki__tools nomobile">
185						<?php echo (new \dokuwiki\Menu\SiteMenu())->getListItems(); ?>
186						<hr class="nomobile">
187						<!-- Link interwiki of user -->
188						<?php if ($conf['useacl']): ?>
189						<ul><?php
190							// Afficher lien interwiki user
191							if (!empty($_SERVER['REMOTE_USER'])) {
192									echo '<li class="user">';
193									$loginname = $_SERVER["REMOTE_USER"];
194									$kh_userpage = tpl_getLang('kh_userpage');
195									echo "<img src=\"";
196									echo tpl_basedir();
197									echo "/images/perso.svg\" alt=\"icone\" ></img>";
198									echo "<span>$kh_userpage </span>";
199									echo (tpl_getConf("khum1_userpage")
200										? html_wikilink(tpl_getConf("khum1_userpage_ns").$loginname, hsc($loginname))
201											: hsc($loginname));
202									echo '</li>';
203									}
204						?></ul>
205						<?php endif ?>
206						<!-- UserMenu -->
207						<?php echo (new \dokuwiki\Menu\UserMenu())->getListItems(); ?>
208
209
210					</div>
211					<hr class="nomobile">
212
213					<!-- translation (only with Translation Plugin) -->
214					<?php
215						$translation = plugin_load('helper','translation');
216						if ($translation) {?>
217							<div class="kh_translate">
218						<img src="<?php echo tpl_basedir(); ?>/images/lang.svg" alt"icone"></img>
219						<?php
220							echo $translation->showTranslations();
221							echo "</div>" ;
222						}
223						?>
224
225					<!-- searchtool-->
226					<div class="searchtool nomobile">
227						<?php tpl_searchform(); ?>
228					</div>
229					<!-- You are here -->
230					<?php if($conf['youarehere']): ?>
231						<div class="youarehere nomobile">
232							<img src="<?php echo tpl_basedir(); ?>/images/youarehere.svg" alt="icone"></img>
233							<span><?php tpl_youarehere() ?></div></span>
234						<hr class="nomobile">
235					<?php endif ?>
236					<!-- Breadcrumbs -->
237					<?php if($conf['breadcrumbs']): ?>
238						<div class="trace nomobile"><img src="<?php echo tpl_basedir(); ?>/images/compass.svg" alt="icone"></img>
239							<span><?php tpl_breadcrumbs() ?></span>
240						</div>
241					<?php endif ?>
242				</div>
243				<div class="biseau_2_bottom nomobile"></div>
244			</nav>
245			<div class="to_top">
246					<a href="#dokuwiki__top" class="action top" accesskey="t" rel="nofollow" title="Haut de page [T]">
247						<img src="<?php echo tpl_basedir(); ?>/images/top.png" / title="Haut de page [T]"></img>
248					</a>
249			</div>
250			<div>
251
252        </div><!-- /wrapper -->
253        </div><!-- dokuwiki__site-->
254
255    </div><!-- /site -->
256
257    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
258    <div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?>
259	<?php tpl_includeFile('footer.php'); ?>
260</body>
261</html>
262