1<?php
2/**
3 * DokuWiki Image Detail Page
4 *
5 * @author Andreas Gohr <andi@splitbrain.org>
6 * @author Anika Henke <anika@selfthinker.org>
7 */
8
9// must be run from within DokuWiki
10if (!defined('DOKU_INC')) die();
11
12?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
13 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
14<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
15 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>">
16<head>
17    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
18    <title>
19        <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?>
20        [<?php echo strip_tags($conf['title'])?>]
21    </title>
22    <?php tpl_metaheaders()?>
23    <link rel="shortcut icon" href="<?php echo ml('favicon.ico') ?>" />
24</head>
25
26<body>
27    <!--[if IE 6 ]><div id="IE6"><![endif]--><!--[if IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
28    <div id="dokuwiki__detail" class="dokuwiki">
29        <?php html_msgarea() ?>
30
31        <?php if($ERROR){ print $ERROR; }else{ ?>
32
33            <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1>
34
35            <div class="content">
36                <?php tpl_img(900,700) ?>
37
38                <div class="img_detail">
39                    <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2>
40
41                    <dl>
42                        <?php
43                            $t = tpl_img_getTag('Date.EarliestTime');
44                            if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.dformat($t).'</dd>';
45
46                            $t = tpl_img_getTag('File.Name');
47                            if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>';
48
49                            $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit'));
50                            if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>';
51
52                            $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright'));
53                            if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>';
54
55                            $t = tpl_img_getTag('File.Format');
56                            if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>';
57
58                            $t = tpl_img_getTag('File.NiceSize');
59                            if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>';
60
61                            $t = tpl_img_getTag('Simple.Camera');
62                            if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>';
63
64                            $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category','xmp.dc:subject'));
65                            if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>';
66
67                        ?>
68                    </dl>
69                    <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
70                </div>
71                <div class="clearer"></div>
72            </div><!-- /.content -->
73
74            <p class="back">&larr; <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p>
75
76        <?php } ?>
77    </div>
78    <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]-->
79</body>
80</html>
81
82