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 Image Detail Template 6 * 7 * This is the template for displaying image details 8 * 9 * You should leave the doctype at the very top - It should 10 * always be the very first line of a document. 11 * 12 * @link http://wiki.splitbrain.org/wiki:tpl:templates 13 * @author Andreas Gohr <andi@splitbrain.org> 14 */ 15?> 16<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr"> 17<head> 18 <title> 19 <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?> 20 [<?php echo hsc($conf['title'])?>] 21 </title> 22 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 23 24 <?php tpl_metaheaders()?> 25 26 <link rel="shortcut icon" href="<?php echo DOKU_BASE?>lib/images/favicon.ico" /> 27 <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>layout.css" /> 28 <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL?>design.css" /> 29 30 <!--[if gte IE 5]> 31 <style type="text/css"> 32 /* that IE 5+ conditional comment makes this only visible in IE 5+ */ 33 /* IE bugfix for transparent PNGs */ 34 //DISABLED img { behavior: url("<?php echo DOKU_BASE?>lib/scripts/pngbehavior.htc"); } 35 </style> 36 <![endif]--> 37</head> 38 39<body> 40<div class="dokuwiki"> 41 <?php html_msgarea()?> 42 43 <div class="page"> 44 <?php if($ERROR){ print $ERROR; }else{ ?> 45 46 <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1> 47 48 <div class="img_big"> 49 <?php tpl_img(900,700) ?> 50 </div> 51 52 <div class="img_detail"> 53 <p class="img_caption"> 54 <?php print nl2br(hsc(tpl_img_getTag(array('IPTC.Caption', 55 'EXIF.UserComment', 56 'EXIF.TIFFImageDescription', 57 'EXIF.TIFFUserComment')))); ?> 58 </p> 59 60 <p>← <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p> 61 62 <dl class="img_tags"> 63 <?php 64 $t = tpl_img_getTag('Date.EarliestTime'); 65 if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.date($conf['dformat'],$t).'</dd>'; 66 67 $t = tpl_img_getTag('File.Name'); 68 if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>'; 69 70 $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit')); 71 if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>'; 72 73 $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright')); 74 if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>'; 75 76 $t = tpl_img_getTag('File.Format'); 77 if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>'; 78 79 $t = tpl_img_getTag('File.NiceSize'); 80 if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>'; 81 82 $t = tpl_img_getTag('Simple.Camera'); 83 if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>'; 84 85 $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category')); 86 if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>'; 87 88 ?> 89 </dl> 90 <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?> 91 </div> 92 93 <?php } ?> 94 </div> 95</div> 96</body> 97</html> 98 99