1<?php
2/**
3 * DokuWiki LCARS Image Detail Template
4 *
5 *
6 * @link   http://dokuwiki.org/templates
7 * @author Paweł Knap <me@pawelknap.com>
8 */
9
10if (!defined('DOKU_INC')) die();
11
12?>
13<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
14 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
15<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr">
16<head>
17  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
18  <title>
19     <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?>
20    [<?php echo strip_tags($conf['title'])?>]
21  </title>
22
23  <?php tpl_metaheaders()?>
24
25  <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" />
26  <link rel="stylesheet" href="<?php echo DOKU_TPL?>detail.css"/>
27  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
28  <script type="text/javascript" src="<?php echo DOKU_TPL;?>js/functions.js"></script>
29  <?php if(tpl_getConf('fonts') == 1){?>
30  <script type="text/javascript" src="<?php echo DOKU_TPL;?>js/cufon-yui.js"></script>
31  <script type="text/javascript" src="<?php echo DOKU_TPL;?>js/LCARS_400.font.js"></script>
32  <script type="text/javascript">
33  	Cufon.replace("h1, h2, h3, h4, h5, h6");
34  </script>
35  <?php }?>
36</head>
37
38<body>
39<div class="dokuwiki">
40  <?php html_msgarea()?>
41
42  <div class="page">
43    <?php if($ERROR){ print $ERROR; }else{ ?>
44
45    <h1><span><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></span></h1>
46	<div class="lcars_detail">
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('simple.title'))); ?>
54      </p>
55
56      <p>&larr; <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p>
57
58      <dl class="img_tags">
59        <?php
60          $t = tpl_img_getTag('Date.EarliestTime');
61          if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.dformat($t).'</dd>';
62
63          $t = tpl_img_getTag('File.Name');
64          if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>';
65
66          $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit'));
67          if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>';
68
69          $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright'));
70          if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>';
71
72          $t = tpl_img_getTag('File.Format');
73          if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>';
74
75          $t = tpl_img_getTag('File.NiceSize');
76          if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>';
77
78          $t = tpl_img_getTag('Simple.Camera');
79          if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>';
80
81          $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category','xmp.dc:subject'));
82          if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>';
83
84        ?>
85      </dl>
86      <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
87    </div>
88	</div>
89  <?php } ?>
90  </div>
91</div>
92</body>
93</html>
94
95