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'); /* include hook for template functions */
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    <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    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
28    <?php tpl_includeFile('meta.html') ?>
29</head>
30
31<body>
32    <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
33    <div id="dokuwiki__detail" class="<?php echo tpl_classes(); ?>">
34        <?php html_msgarea() ?>
35
36        <?php if($ERROR): print $ERROR; ?>
37        <?php else: ?>
38
39            <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG))?></h1>
40
41            <div class="content">
42                <?php tpl_img(900, 700); /* the image; parameters: maximum width, maximum height (and more) */ ?>
43
44                <div class="img_detail">
45                    <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2>
46
47                    <?php tpl_img_meta(); ?>
48                    <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw')); ?>
49                </div>
50                <div class="clearer"></div>
51            </div><!-- /.content -->
52
53            <p class="back">
54                <?php tpl_action('mediaManager', 1) ?><br />
55                &larr; <?php tpl_action('img_backto', 1) ?>
56            </p>
57
58        <?php endif; ?>
59    </div>
60    <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]-->
61</body>
62</html>
63