xref: /template/writr/detail.php (revision e1ff67ac21792382cff4cdfafdaf9437e8925fed)
1<?php
2/**
3 * DokuWiki Image Detail Page
4 *
5 * @author   Andreas Gohr <andi@splitbrain.org>
6 * @author   Anika Henke <anika@selfthinker.org>
7 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
8 */
9
10// must be run from within DokuWiki
11if (!defined('DOKU_INC')) die();
12@require_once(dirname(__FILE__).'/tpl_functions.php');
13header('X-UA-Compatible: IE=edge,chrome=1');
14
15?><!DOCTYPE html>
16<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
17 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
18<head>
19    <meta charset="UTF-8" />
20    <title>
21        <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?>
22        [<?php echo strip_tags($conf['title'])?>]
23    </title>
24    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" />
25    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css" />
26    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
27    <?php tpl_metaheaders()?>
28    <meta name="viewport" content="width=device-width,initial-scale=1" />
29    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
30    <?php tpl_includeFile('meta.html') ?>
31    <link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css' />
32    <style>
33        body {
34            font-family: <?= tpl_getConf('font') ?>;
35        }
36    </style>
37</head>
38
39<body class="<?php echo tpl_classes(); ?> detail-page">
40    <div id="dokuwiki__detail">
41        <?php html_msgarea() ?>
42
43        <?php if($ERROR): print $ERROR; ?>
44        <?php else: ?>
45
46            <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG))?></h1>
47
48            <div class="content">
49                <?php tpl_img(900, 700); ?>
50
51                <div class="img_detail">
52                    <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2>
53
54                    <?php tpl_img_meta(); ?>
55                    <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw')); ?>
56                </div>
57                <div class="clearer"></div>
58            </div><!-- /.content -->
59
60            <p class="back">
61                <?php tpl_action('mediaManager', 1) ?><br />
62                <?php tpl_action('img_backto', 1, 0, 0, '<span class="genericon genericon-leftarrow"></span>') ?>
63            </p>
64
65        <?php endif; ?>
66    </div>
67</body>
68</html>
69