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