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://dokuwiki.org/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  <meta name="viewport" content="width=device-width" />
24  <title>
25     <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?>
26    [<?php echo strip_tags($conf['title'])?>]
27  </title>
28
29  <?php tpl_metaheaders()?>
30
31  <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" />
32</head>
33
34<body>
35<div class="dokuwiki">
36  <?php html_msgarea()?>
37
38  <div class="page">
39    <?php if($ERROR){ print $ERROR; }else{ ?>
40
41    <h1 class="h1_img_detail"><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1>
42
43    <div class="img_big">
44      <?php tpl_img(900,700) ?>
45    </div>
46
47    <div class="img_detail">
48      <p class="img_caption">
49        <?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?>
50      </p>
51
52      <p>&larr; <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p>
53
54      <dl class="img_tags">
55        <?php
56          $t = tpl_img_getTag('Date.EarliestTime');
57          if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.dformat($t).'</dd>';
58
59          $t = tpl_img_getTag('File.Name');
60          if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>';
61
62          $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit'));
63          if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>';
64
65          $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright'));
66          if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>';
67
68          $t = tpl_img_getTag('File.Format');
69          if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>';
70
71          $t = tpl_img_getTag('File.NiceSize');
72          if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>';
73
74          $t = tpl_img_getTag('Simple.Camera');
75          if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>';
76
77          $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category','xmp.dc:subject'));
78          if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>';
79
80        ?>
81      </dl>
82      <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
83    </div>
84
85  <?php } ?>
86  </div>
87</div>
88</body>
89</html>
90
91