1<?php 2/** 3 * DokuWiki Image Detail Page 4 * 5 * @author Andreas Gohr <andi@splitbrain.org> 6 * @author Anika Henke <anika@selfthinker.org> 7 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 8 */ 9 10// must be run from within DokuWiki 11if (!defined('DOKU_INC')) die(); 12@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ 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> 21 <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?> 22 [<?php echo strip_tags($conf['title'])?>] 23 </title> 24 <?php tpl_metaheaders()?> 25 <meta name="viewport" content="width=device-width,initial-scale=1" /> 26 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 27 <?php _tpl_include('meta.html') ?> 28</head> 29 30<body> 31 <!--[if IE 6 ]><div id="IE6"><![endif]--><!--[if IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]--> 32 <div id="dokuwiki__detail" class="dokuwiki"> 33 <?php html_msgarea() ?> 34 35 <?php if($ERROR){ print $ERROR; }else{ ?> 36 37 <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1> 38 39 <div class="content"> 40 <?php tpl_img(900,700) ?> 41 42 <div class="img_detail"> 43 <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2> 44 45 <dl> 46 <?php 47 $config_files = getConfigFiles('mediameta'); 48 foreach ($config_files as $config_file) { 49 if(@file_exists($config_file)) { 50 include($config_file); 51 } 52 } 53 54 foreach($fields as $key => $tag){ 55 $t = array(); 56 if (!empty($tag[0])) { 57 $t = array($tag[0]); 58 } 59 if(is_array($tag[3])) { 60 $t = array_merge($t,$tag[3]); 61 } 62 $value = tpl_img_getTag($t); 63 if ($value) { 64 echo '<dt>'.$lang[$tag[1]].':</dt><dd>'; 65 if ($tag[2] == 'date') { 66 echo dformat($value); 67 } else { 68 echo hsc($value); 69 } 70 echo '</dd>'; 71 } 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"> 81 <?php 82 $imgNS = getNS($IMG); 83 $authNS = auth_quickaclcheck("$imgNS:*"); 84 if (($authNS >= AUTH_UPLOAD) && function_exists('media_managerURL')) { 85 $mmURL = media_managerURL(array('ns' => $imgNS, 'image' => $IMG)); 86 echo '<a href="'.$mmURL.'">'.$lang['img_manager'].'</a><br />'; 87 } 88 ?> 89 ← <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?> 90 </p> 91 92 <?php } ?> 93 </div> 94 <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]--> 95</body> 96</html> 97 98