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