1<?php 2/** 3 * DokuWiki Mikio Template Image Detail Page 4 * 5 * @link http://dokuwiki.org/template:mikio 6 * @author James Collins <james.collins@outlook.com.au> 7 * @license GPLv2 (http://www.gnu.org/licenses/gpl-2.0.html) 8 * 9 * Based on DokuWiki Theme Template 10 */ 11if (!defined('DOKU_INC')) die(); 12//require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ 13header('X-UA-Compatible: IE=edge,chrome=1'); 14 15?><!DOCTYPE html> 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'] ?>" class="no-js"> 18<head> 19 <meta 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 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 25 <?php tpl_metaheaders()?> 26 <meta name="viewport" content="width=device-width,initial-scale=1" /> 27 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 28 <?php tpl_includeFile('meta.html') ?> 29 <?php 30 $baseDir = tpl_basedir(); 31 echo '<link type="text/css" rel="stylesheet" href="' . $baseDir . 'css.php?css=assets/mikio.less">'; 32 echo '<script type="text/javascript" src="' . $baseDir . 'assets/mikio.js"></script>'; 33 ?> 34</head> 35 36<body> 37 <!--[if lte IE 8 ]><div id="IE8"><![endif]--> 38 <div id="dokuwiki__detail" class="<?php echo tpl_classes(); ?>"> 39 <?php html_msgarea() ?> 40 41 <?php if($ERROR): print $ERROR; ?> 42 <?php else: ?> 43 44 <?php if($REV) echo p_locale_xhtml('showrev');?> 45 <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG))?></h1> 46 47 <div class="content group"> 48 <?php tpl_img(900, 700); /* the image; parameters: maximum width, maximum height (and more) */ ?> 49 50 <div class="img_detail"> 51 <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2> 52 53 <?php if(function_exists('tpl_img_meta')): ?> 54 <?php tpl_img_meta(); ?> 55 <?php else: /* deprecated since Release 2014-05-05 */ ?> 56 <dl> 57 <?php 58 $config_files = getConfigFiles('mediameta'); 59 foreach ($config_files as $config_file) { 60 if(@file_exists($config_file)) { 61 include($config_file); 62 } 63 } 64 65 foreach($fields as $key => $tag){ 66 $t = array(); 67 if (!empty($tag[0])) { 68 $t = array($tag[0]); 69 } 70 if(is_array($tag[3])) { 71 $t = array_merge($t,$tag[3]); 72 } 73 $value = tpl_img_getTag($t); 74 if ($value) { 75 echo '<dt>'.$lang[$tag[1]].':</dt><dd>'; 76 if ($tag[2] == 'date') { 77 echo dformat($value); 78 } else { 79 echo hsc($value); 80 } 81 echo '</dd>'; 82 } 83 } 84 ?> 85 </dl> 86 <?php endif; ?> 87 <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw')); ?> 88 </div> 89 </div><!-- /.content --> 90 91 <p class="back"> 92 <?php tpl_action('mediaManager', 1) ?><br /> 93 ← <?php tpl_action('img_backto', 1) ?> 94 </p> 95 96 <?php endif; ?> 97 </div> 98 <!--[if lte IE 8 ]></div><![endif]--> 99</body> 100</html> 101