1<?php
2/**
3 * DokuWiki Image Detail Template
4 *
5 * This is the template for displaying image details
6 *
7 * You should leave the doctype at the very top - It should
8 * always be the very first line of a document.
9 *
10 * @link   http://wiki.splitbrain.org/wiki:tpl:templates
11 * @author Andreas Gohr <andi@splitbrain.org>
12 */
13
14// must be run from within DokuWiki
15if (!defined('DOKU_INC')) die();
16
17?>
18<?php
19/**
20<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
21 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
22<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr">
23 */
24?>
25<!DOCTYPE html>
26<html lang="<?php echo $conf['lang']?>" dir="ltr">
27<head>
28  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
29  <title>
30     <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?> · <?php echo strip_tags($conf['title'])?>
31  </title>
32
33  <?php tpl_metaheaders()?>
34
35  <link rel="shortcut icon" href="<?php echo tpl_basedir()?>images/favicon.ico" />
36</head>
37
38<body>
39<div class="dokuwiki" id="image__detail">
40  <?php html_msgarea()?>
41
42  <div class="page">
43    <?php if($ERROR){ print $ERROR; }else{ ?>
44
45    <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1>
46
47    <div class="img_big">
48      <?php tpl_img(900,700) ?>
49    </div>
50
51    <div class="img_detail">
52      <p class="img_caption">
53        <?php print nl2br(hsc(tpl_img_getTag(array('IPTC.Caption',
54                                               'EXIF.UserComment',
55                                               'EXIF.TIFFImageDescription',
56                                               'EXIF.TIFFUserComment')))); ?>
57      </p>
58
59      <p>&larr; <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p>
60
61      <dl class="img_tags">
62        <?php
63          $t = tpl_img_getTag('Date.EarliestTime');
64          if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.date($conf['dformat'],$t).'</dd>';
65
66          $t = tpl_img_getTag('File.Name');
67          if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>';
68
69          $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit'));
70          if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>';
71
72          $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright'));
73          if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>';
74
75          $t = tpl_img_getTag('File.Format');
76          if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>';
77
78          $t = tpl_img_getTag('File.NiceSize');
79          if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>';
80
81          $t = tpl_img_getTag('Simple.Camera');
82          if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>';
83
84          $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category'));
85          if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>';
86
87        ?>
88      </dl>
89      <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
90    </div>
91
92      <div class="clearer"></div>
93
94  <?php } ?>
95  </div>
96</div>
97</body>
98</html>
99
100