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 13?><!DOCTYPE html> 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'] ?>" class="no-js"> 16<head> 17 <meta 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 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 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_includeFile('meta.html') ?> 27</head> 28<?php 29 30$theme = ''; 31if(tpl_getConf('theme')!='Default') 32{ 33 $theme = ' theme-'.strtolower(tpl_getConf('theme')); 34} 35 36$toc = tpl_getConf('inlineToc')?' itoc':''; 37$width = tpl_getConf('fullWidthSite')?' full-width':''; 38$tpl_retro_classes = tpl_classes().$toc.$width.$theme; 39?> 40 41<body <?=$tpl_retro_classes?>> 42 <div id="dokuwiki__detail"> 43 <?php html_msgarea() ?> 44 45 <?php if($ERROR): print $ERROR; ?> 46 <?php else: ?> 47 48 <main class="content group"> 49 <?php if($REV) echo p_locale_xhtml('showrev');?> 50 <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG))?></h1> 51 52 <?php tpl_img(900, 700); /* the image; parameters: maximum width, maximum height (and more) */ ?> 53 54 <div class="img_detail"> 55 <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2> 56 57 <?php if(function_exists('tpl_img_meta')): ?> 58 <?php tpl_img_meta(); ?> 59 <?php else: /* deprecated since Release 2014-05-05 */ ?> 60 <dl> 61 <?php 62 $config_files = getConfigFiles('mediameta'); 63 foreach ($config_files as $config_file) { 64 if(@file_exists($config_file)) { 65 include($config_file); 66 } 67 } 68 69 foreach($fields as $key => $tag){ 70 $t = array(); 71 if (!empty($tag[0])) { 72 $t = array($tag[0]); 73 } 74 if(is_array($tag[3])) { 75 $t = array_merge($t,$tag[3]); 76 } 77 $value = tpl_img_getTag($t); 78 if ($value) { 79 echo '<dt>'.$lang[$tag[1]].':</dt><dd>'; 80 if ($tag[2] == 'date') { 81 echo dformat($value); 82 } else { 83 echo hsc($value); 84 } 85 echo '</dd>'; 86 } 87 } 88 ?> 89 </dl> 90 <?php endif; ?> 91 <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw')); ?> 92 </div> 93 </main><!-- /.content --> 94 95 <nav> 96 <ul> 97 <?php if (file_exists(DOKU_INC . 'inc/Menu/DetailMenu.php')) { 98 echo (new \dokuwiki\Menu\DetailMenu())->getListItems('action ', false); 99 } else { 100 _tpl_detailtools(); 101 } ?> 102 </ul> 103 </nav> 104 105 <?php endif; ?> 106 </div> 107</body> 108</html> 109