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