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<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
19 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
20<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr">
21<head>
22  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
23  <title>
24     <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?> · <?php echo strip_tags($conf['title'])?>
25  </title>
26
27  <?php tpl_metaheaders()?>
28
29  <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" />
30</head>
31
32<body>
33<div class="dokuwiki" id="image__detail">
34  <?php html_msgarea()?>
35
36  <div class="page">
37    <?php if($ERROR){ print $ERROR; }else{ ?>
38
39    <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1>
40
41    <div class="img_big">
42      <?php tpl_img(900,700) ?>
43    </div>
44
45    <div class="img_detail">
46      <p class="img_caption">
47        <?php print nl2br(hsc(tpl_img_getTag(array('IPTC.Caption',
48                                               'EXIF.UserComment',
49                                               'EXIF.TIFFImageDescription',
50                                               'EXIF.TIFFUserComment')))); ?>
51      </p>
52
53      <p>&larr; <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p>
54
55      <dl class="img_tags">
56        <?php
57          $t = tpl_img_getTag('Date.EarliestTime');
58          if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.date($conf['dformat'],$t).'</dd>';
59
60          $t = tpl_img_getTag('File.Name');
61          if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>';
62
63          $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit'));
64          if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>';
65
66          $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright'));
67          if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>';
68
69          $t = tpl_img_getTag('File.Format');
70          if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>';
71
72          $t = tpl_img_getTag('File.NiceSize');
73          if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>';
74
75          $t = tpl_img_getTag('Simple.Camera');
76          if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>';
77
78          $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category'));
79          if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>';
80
81        ?>
82      </dl>
83      <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
84    </div>
85
86      <div class="clearer"></div>
87
88  <?php } ?>
89  </div>
90</div>
91</body>
92</html>
93
94