1<?php 2/** 3 * This is the template for displaying image details 4 * 5 * @author Andreas Gohr <andi@splitbrain.org> 6 */ 7 8if (!defined('DOKU_INC')) die(); // must be run from within DokuWiki 9@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ 10?> 11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 12 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 13<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" 14 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>"> 15<head> 16 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 17 <title> 18 <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?> 19 [<?php echo strip_tags($conf['title'])?>] 20 </title> 21 22 <?php tpl_metaheaders()?> 23 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 24</head> 25 26<body> 27<div class="dokuwiki" id="dokuwiki__detail"> 28 <?php html_msgarea()?> 29 30 <div class="page"> 31 <?php if($ERROR){ print $ERROR; }else{ ?> 32 33 <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1> 34 35 <div class="img_big"> 36 <?php tpl_img(900,700) ?> 37 </div> 38 39 <div class="img_detail"> 40 <p class="img_caption"> 41 <?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?> 42 </p> 43 44 <p>← <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p> 45 <?php 46 $imgNS = getNS($IMG); 47 $authNS = auth_quickaclcheck("$imgNS:*"); 48 if ($authNS >= AUTH_UPLOAD) { 49 echo '<p><a href="'.media_managerURL(array('ns' => $imgNS, 'image' => $IMG)).'">'.$lang['img_manager'].'</a></p>'; 50 } 51 ?> 52 53 <dl class="img_tags"> 54 <?php 55 $config_files = getConfigFiles('mediameta'); 56 foreach ($config_files as $config_file) { 57 if(@file_exists($config_file)) include($config_file); 58 } 59 60 foreach($fields as $key => $tag){ 61 $t = array(); 62 if (!empty($tag[0])) $t = array($tag[0]); 63 if(is_array($tag[3])) $t = array_merge($t,$tag[3]); 64 $value = tpl_img_getTag($t); 65 if ($value) { 66 echo '<dt>'.$lang[$tag[1]].':</dt><dd>'; 67 if ($tag[2] == 'date') echo dformat($value); 68 else echo hsc($value); 69 echo '</dd>'; 70 } 71 } 72 ?> 73 </dl> 74 <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?> 75 </div> 76 77 <?php } ?> 78 </div> 79</div> 80</body> 81</html> 82