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 * @author Anika Henke <anika@selfthinker.org> 13 */ 14 15// must be run from within DokuWiki 16if (!defined('DOKU_INC')) die(); 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']?>" 21 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>"> 22<head> 23 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 24 <title> 25 <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?> 26 [<?php echo strip_tags($conf['title'])?>] 27 </title> 28 <?php tpl_metaheaders()?> 29 <link rel="shortcut icon" href="<?php echo ml('favicon.ico') ?>" /> 30</head> 31 32<body> 33 <!--[if IE 6 ]><div id="IE6"><![endif]--><!--[if IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]--> 34 <div id="dokuwiki__detail" class="dokuwiki"> 35 <?php html_msgarea() ?> 36 37 <?php if($ERROR){ print $ERROR; }else{ ?> 38 39 <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1> 40 41 <div class="content"> 42 <?php tpl_img(900,700) ?> 43 44 <div class="img_detail"> 45 <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2> 46 47 <dl> 48 <?php 49 $t = tpl_img_getTag('Date.EarliestTime'); 50 if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.dformat($t).'</dd>'; 51 52 $t = tpl_img_getTag('File.Name'); 53 if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>'; 54 55 $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit')); 56 if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>'; 57 58 $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright')); 59 if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>'; 60 61 $t = tpl_img_getTag('File.Format'); 62 if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>'; 63 64 $t = tpl_img_getTag('File.NiceSize'); 65 if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>'; 66 67 $t = tpl_img_getTag('Simple.Camera'); 68 if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>'; 69 70 $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category','xmp.dc:subject')); 71 if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>'; 72 73 ?> 74 </dl> 75 <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?> 76 </div> 77 <div class="clearer"></div> 78 </div><!-- /.content --> 79 80 <p class="back">← <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p> 81 82 <?php } ?> 83 </div> 84 <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]--> 85</body> 86</html> 87 88