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 SXS Image Detail Template -- based on the Roundbox template
6 *
7 * @link   http://wiki.splitbrain.org/wiki:tpl:roundbox
8 * @author Chris Arndt <chris@chrisarndt.de>
9 * (changes by Mike Boyle)
10 */
11?>
12<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr">
13<head>
14  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
15  <title>
16     <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?>
17    [<?php echo hsc($conf['title'])?>]
18  </title>
19
20  <?php tpl_metaheaders()?>
21
22  <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" />
23</head>
24
25<body>
26<div class="dokuwiki">
27  <?php html_msgarea()?>
28
29  <div class="page">
30    <?php if($ERROR){ print $ERROR; }else{ ?>
31
32    <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1>
33
34    <div class="img_big">
35      <?php tpl_img(900,700) ?>
36    </div>
37
38    <div class="img_detail">
39      <p class="img_caption">
40        <?php print nl2br(hsc(tpl_img_getTag(array('IPTC.Caption',
41                                               'EXIF.UserComment',
42                                               'EXIF.TIFFImageDescription',
43                                               'EXIF.TIFFUserComment')))); ?>
44      </p>
45
46      <p>&larr; <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p>
47
48      <dl class="img_tags">
49        <?php
50          $t = tpl_img_getTag('Date.EarliestTime');
51          if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.date($conf['dformat'],$t).'</dd>';
52
53          $t = tpl_img_getTag('File.Name');
54          if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>';
55
56          $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit'));
57          if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>';
58
59          $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright'));
60          if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>';
61
62          $t = tpl_img_getTag('File.Format');
63          if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>';
64
65          $t = tpl_img_getTag('File.NiceSize');
66          if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>';
67
68          $t = tpl_img_getTag('Simple.Camera');
69          if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>';
70
71          $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category'));
72          if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>';
73
74        ?>
75      </dl>
76      <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
77    </div>
78
79  <?php } ?>
80  </div>
81</div>
82</body>
83</html>
84
85