1<?php
2/**
3 * Official Weltis Dokuwiki Template 2024
4 *
5 * @link     https://github.com/xkokko/weltisdokuwiki
6 * @author   Cosmo Cocconcelli <c.wiki@drw.ng>
7 * @license  MIT License (https://github.com/xkokko/weltisdokuwiki/blob/main/LICENSE)
8 */
9
10/* must be run from within DokuWiki */
11if (!defined('DOKU_INC')) die();
12header('X-UA-Compatible: IE=edge,chrome=1');
13
14?>
15
16<!DOCTYPE html>
17
18<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
19
20<head>
21	<meta charset="utf-8" />
22
23	<title> <?php echo strip_tags($conf['title'])?><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></title>
24	<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
25	<?php tpl_metaheaders() ?>
26	<meta name="viewport" content="width=device-width, initial-scale=1" />
27
28	<?php echo tpl_favicon(array('favicon', 'mobile')) ?>
29	<?php tpl_includeFile('meta.html') ?>
30</head>
31
32<body class="weltis">
33	<div id="weltis__site"><div id="dokuwiki__top">
34		<?php include('tpl_header.php') ?>
35
36		<!-- MAIN -->
37		<div id="weltis__main"><div class="wrapper group">
38			<!-- CONTENT -->
39			<div id="weltis__detail"><div class="content">
40				<?php html_msgarea() ?>
41
42				<?php if(!$ERROR): ?>
43					<div class="pageId"><span><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG)); ?></span></div>
44				<?php endif; ?>
45
46				<div class="page group" style="text-align: center">
47					<?php tpl_flush() ?>
48					<?php tpl_includeFile('pageheader.html') ?>
49
50					<!-- detail start -->
51					<?php if($ERROR): echo '<h1>'.$ERROR.'</h1>'; else: ?>
52
53					<?php if($REV) echo p_locale_xhtml('showrev');?>
54					<h1><?php echo nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h1>
55
56					<?php tpl_img(900,700); /* parameters: maximum width, maximum height (and more) */ ?>
57
58					<div class="img_detail">
59						<?php tpl_img_meta(); ?>
60
61						<dl>
62							<?php
63							echo '<dt>'.$lang['reference'].':</dt>';
64							$media_usage = ft_mediause($IMG,true);
65							if(count($media_usage) > 0){
66								foreach($media_usage as $path){
67									echo '<dd>'.html_wikilink($path).'</dd>';
68								}
69							}else{
70								echo '<dd>'.$lang['nothingfound'].'</dd>';
71							}
72							?>
73						</dl>
74						<p><?php echo $lang['media_acl_warning']; ?></p>
75					</div>
76
77					<?php endif; ?>
78					<!-- detail stop -->
79
80					<?php tpl_includeFile('pagefooter.html') ?>
81				</div>
82
83				<!--
84				<div class="docInfo"><?php tpl_pageinfo() ?></div>
85				-->
86
87				<?php tpl_flush() ?>
88			</div></div>
89
90			<!-- PAGE ACTIONS -->
91<!--			<?php if (!$ERROR): ?>
92				<div id="dokuwiki__pagetools">
93					<h3 class="a11y"><?php echo $lang['page_tools']; ?></h3>
94					<div class="tools">
95						<ul>
96							<?php
97								$data = array(
98									'view' => 'detail',
99									'items' => array(
100										'mediaManager' => tpl_action('mediaManager', true, 'li', true, '<span>', '</span>'),
101										'img_backto' =>   tpl_action('img_backto',   true, 'li', true, '<span>', '</span>'),
102									)
103								);
104
105								// the page tools can be amended through a custom plugin hook
106								$evt = new Doku_Event('TEMPLATE_PAGETOOLS_DISPLAY', $data);
107								if($evt->advise_before()) {
108									foreach($evt->data['items'] as $k => $html) echo $html;
109								}
110								$evt->advise_after();
111								unset($data);
112								unset($evt);
113							?>
114						</ul>
115					</div>
116				</div>
117			<?php endif; ?>
118-->		</div></div>
119
120		<?php include('tpl_footer.php') ?>
121	</div></div>
122
123</body>
124
125</html>
126