1<?php 2 3if (!defined('DOKU_INC')) die(); 4 5if (!defined('H6E_CSS')) { 6 if (file_exists(dirname(__FILE__) . '/h6e-minimal')) { 7 define('H6E_CSS', DOKU_URL . 'lib/tpl/minimal'); 8 } else { 9 define('H6E_CSS', 'http://h6e.net/css'); 10 } 11} 12 13?> 14<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 15 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 16<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" 17 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>"> 18<head> 19 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 20 <title><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG)) ?> - <?php echo strip_tags($conf['title']) ?></title> 21 22 <link rel="stylesheet" media="screen" href="<?php echo H6E_CSS ?>/h6e-minimal/h6e-minimal.css" /> 23 24 <?php tpl_metaheaders()?> 25 26 <style type="text/css"> 27 .h6e-main-content { 28 width:<?php echo tpl_getConf('width') ?>; 29 padding-left:2.5em; 30 padding-right:2.5em; 31 } 32 .h6e-post-content { 33 font-size:<?php echo tpl_getConf('font-size') ?>; 34 } 35 .h6e-entry-title, .h6e-entry-title a, .h6e-entry-title a:visited, .do-page h1, .content-page h2 { 36 color:<?php echo tpl_getConf('title-color') ?>; 37 } 38 </style> 39 40</head> 41 42<body> 43 44<div class="dokuwiki"> 45 46 <?php include dirname(__FILE__) . '/top.php' ?> 47 48 <div class="content-page h6e-main-content"> 49 50 <?php if($ERROR){ print $ERROR; } else { ?> 51 52 <h2 class="h6e-entry-title"><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h2> 53 54 <div class="img_big"> 55 <?php tpl_img(900,700) ?> 56 </div> 57 58 <div class="img_detail"> 59 <p class="img_caption"> 60 <?php print nl2br(hsc(tpl_img_getTag(array('IPTC.Caption', 61 'EXIF.UserComment', 62 'EXIF.TIFFImageDescription', 63 'EXIF.TIFFUserComment')))); ?> 64 </p> 65 66 <p>← <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p> 67 68 <dl class="img_tags"> 69 <?php 70 $t = tpl_img_getTag('Date.EarliestTime'); 71 if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.strftime($conf['dformat'],$t).'</dd>'; 72 73 $t = tpl_img_getTag('File.Name'); 74 if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>'; 75 76 $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit')); 77 if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>'; 78 79 $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright')); 80 if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>'; 81 82 $t = tpl_img_getTag('File.Format'); 83 if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>'; 84 85 $t = tpl_img_getTag('File.NiceSize'); 86 if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>'; 87 88 $t = tpl_img_getTag('Simple.Camera'); 89 if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>'; 90 91 $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category')); 92 if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>'; 93 94 ?> 95 </dl> 96 <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?> 97 </div> 98 99 <?php } ?> 100 </div> 101</div> 102</body> 103</html> 104 105