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