Mercurial > hg > vamp-website
comparison wiki/lib/tpl/default/detail.php @ 34:4b4db9230e94 website
* wiki configuration and pages in svn
author | cannam |
---|---|
date | Wed, 23 Sep 2009 15:09:53 +0000 |
parents | |
children | 5c0b1f24bdf9 |
comparison
equal
deleted
inserted
replaced
33:bbcf0a2e0369 | 34:4b4db9230e94 |
---|---|
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 | |
15 if (!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 <title> | |
24 <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?> | |
25 [<?php echo strip_tags($conf['title'])?>] | |
26 </title> | |
27 | |
28 <?php tpl_metaheaders()?> | |
29 | |
30 <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" /> | |
31 </head> | |
32 | |
33 <body> | |
34 <div class="dokuwiki"> | |
35 <?php html_msgarea()?> | |
36 | |
37 <div class="page"> | |
38 <?php if($ERROR){ print $ERROR; }else{ ?> | |
39 | |
40 <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1> | |
41 | |
42 <div class="img_big"> | |
43 <?php tpl_img(900,700) ?> | |
44 </div> | |
45 | |
46 <div class="img_detail"> | |
47 <p class="img_caption"> | |
48 <?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?> | |
49 </p> | |
50 | |
51 <p>← <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p> | |
52 | |
53 <dl class="img_tags"> | |
54 <?php | |
55 $t = tpl_img_getTag('Date.EarliestTime'); | |
56 if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.strftime($conf['dformat'],$t).'</dd>'; | |
57 | |
58 $t = tpl_img_getTag('File.Name'); | |
59 if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>'; | |
60 | |
61 $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit')); | |
62 if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>'; | |
63 | |
64 $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright')); | |
65 if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>'; | |
66 | |
67 $t = tpl_img_getTag('File.Format'); | |
68 if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>'; | |
69 | |
70 $t = tpl_img_getTag('File.NiceSize'); | |
71 if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>'; | |
72 | |
73 $t = tpl_img_getTag('Simple.Camera'); | |
74 if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>'; | |
75 | |
76 $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category','xmp.dc:subject')); | |
77 if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>'; | |
78 | |
79 ?> | |
80 </dl> | |
81 <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?> | |
82 </div> | |
83 | |
84 <?php } ?> | |
85 </div> | |
86 </div> | |
87 </body> | |
88 </html> | |
89 |