1<?php
2/*
3Wikimagination Template for DokuWiki - image detail layout.
4
5http://www.wikimagination.org/
6
72012-09-19 Felix Pleşoianu <felix@plesoianu.ro>
8*/
9
10if (!defined('DOKU_INC')) die(); // must be run from within DokuWiki
11?>
12<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
13 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
14<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']; ?>"
15 lang="<?php echo $conf['lang']; ?>" dir="<?php echo $lang['direction']; ?>">
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 tpl_basedir(); ?>media/favicon.ico" />
26</head>
27
28<body>
29 <div class="dokuwiki">
30  <div class="header">
31   <div id="logo">
32    <a href="doku.php"><img
33     src="<?php echo tpl_getMediaFile(array(':logo.png', 'media/logo.png')); ?>"
34     alt="" width="128" height="128"/></a>
35   </div>
36   <h1><?php echo strip_tags($conf['title'])?></h1>
37   <?php tpl_searchform(); ?>
38   <h2><?php tpl_pagetitle(); ?></h2>
39  </div>
40
41  <div class="section">
42
43  <div class="article">
44   <div id="navigation-area">
45    <div><?php if ($conf['breadcrumbs']) { tpl_breadcrumbs(); } ?></div>
46    <div><?php if ($conf['youarehere']) { tpl_youarehere(); } ?></div>
47   </div>
48
49   <div id="content-area">
50    <div><?php html_msgarea(); ?></div>
51    <?php if($ERROR){ print $ERROR; }else{ ?>
52
53    <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1>
54
55    <div class="img_big">
56      <?php tpl_img(900,700) ?>
57    </div>
58
59    <div class="img_detail">
60      <p class="img_caption">
61        <?php print nl2br(hsc(tpl_img_getTag(array('IPTC.Caption',
62                                               'EXIF.UserComment',
63                                               'EXIF.TIFFImageDescription',
64                                               'EXIF.TIFFUserComment')))); ?>
65      </p>
66
67      <dl class="img_tags">
68        <?php
69          $t = tpl_img_getTag('Date.EarliestTime');
70          if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.strftime($conf['dformat'],$t).'</dd>';
71
72          $t = tpl_img_getTag('File.Name');
73          if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>';
74
75          $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit'));
76          if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>';
77
78          $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright'));
79          if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>';
80
81          $t = tpl_img_getTag('File.Format');
82          if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>';
83
84          $t = tpl_img_getTag('File.NiceSize');
85          if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>';
86
87          $t = tpl_img_getTag('Simple.Camera');
88          if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>';
89
90          $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category'));
91          if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>';
92
93        ?>
94      </dl>
95
96      <p>&larr; <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p>
97
98      <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
99    </div>
100
101  <?php } ?>
102   </div>
103
104   <div id="info-area">
105    <address>
106     <?php tpl_pageinfo(); ?> - <?php tpl_userinfo(); ?>
107     <?php tpl_button('top'); ?>
108    </address>
109   </div>
110  </div>
111
112  <div class="aside">
113   <div id="page-commands">
114    <p>This page</p>
115    <?php tpl_button('edit'); ?>
116    <?php tpl_button('history'); ?>
117    <?php tpl_link(wl($ID,'do=backlink'), "Backlinks")?>
118   </div>
119
120   <div id="site-commands">
121    <p>Site toolbox</p>
122    <?php
123    tpl_button('recent');
124    tpl_button('subscription');
125    tpl_button('index');
126    ?>
127    <br/>
128    <?php tpl_button('media'); ?>
129    <br/>
130    <?php
131    tpl_button('admin');
132    tpl_button('profile');
133    tpl_button('login');
134    ?>
135   </div>
136  </div>
137
138  <div class="guard">&nbsp;</div>
139  </div>
140
141  <div class="footer">
142   <?php tpl_includeFile('footer.html') ?>
143   <?php tpl_indexerWebBug(); ?>
144  </div>
145 </div>
146</body>
147</html>
148