1b08fa01cSReactiveMatter<?php 2b08fa01cSReactiveMatter/** 3b08fa01cSReactiveMatter * DokuWiki Image Detail Page 4b08fa01cSReactiveMatter * 5b08fa01cSReactiveMatter * @author Andreas Gohr <andi@splitbrain.org> 6b08fa01cSReactiveMatter * @author Anika Henke <anika@selfthinker.org> 7b08fa01cSReactiveMatter * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 8b08fa01cSReactiveMatter */ 9b08fa01cSReactiveMatter 10b08fa01cSReactiveMatter// must be run from within DokuWiki 11b08fa01cSReactiveMatterif (!defined('DOKU_INC')) die(); 12b08fa01cSReactiveMatter 13*44f4d58dSReactiveMatter@require_once(dirname(__FILE__).'/template_plugin.php'); /* include hook for template functions */ 14*44f4d58dSReactiveMatter 15b08fa01cSReactiveMatter?><!DOCTYPE html> 16b08fa01cSReactiveMatter<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" 17b08fa01cSReactiveMatter lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 18b08fa01cSReactiveMatter<head> 19b08fa01cSReactiveMatter <meta charset="UTF-8" /> 20b08fa01cSReactiveMatter <title> 21b08fa01cSReactiveMatter <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?> 22b08fa01cSReactiveMatter [<?php echo strip_tags($conf['title'])?>] 23b08fa01cSReactiveMatter </title> 24b08fa01cSReactiveMatter <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 25b08fa01cSReactiveMatter <?php tpl_metaheaders()?> 26b08fa01cSReactiveMatter <meta name="viewport" content="width=device-width,initial-scale=1" /> 27b08fa01cSReactiveMatter <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 28b08fa01cSReactiveMatter <?php tpl_includeFile('meta.html') ?> 29b08fa01cSReactiveMatter</head> 30b08fa01cSReactiveMatter 31*44f4d58dSReactiveMatter<body <?=tpl_minimal_classes()?>> 32*44f4d58dSReactiveMatter <div id="dokuwiki__detail"> 33b08fa01cSReactiveMatter <?php html_msgarea() ?> 34b08fa01cSReactiveMatter 35b08fa01cSReactiveMatter <?php if($ERROR): print $ERROR; ?> 36b08fa01cSReactiveMatter <?php else: ?> 37b08fa01cSReactiveMatter 38b08fa01cSReactiveMatter <main class="content group"> 39b08fa01cSReactiveMatter <?php if($REV) echo p_locale_xhtml('showrev');?> 40b08fa01cSReactiveMatter <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG))?></h1> 41b08fa01cSReactiveMatter 42b08fa01cSReactiveMatter <?php tpl_img(900, 700); /* the image; parameters: maximum width, maximum height (and more) */ ?> 43b08fa01cSReactiveMatter 44b08fa01cSReactiveMatter <div class="img_detail"> 45b08fa01cSReactiveMatter <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2> 46b08fa01cSReactiveMatter 47b08fa01cSReactiveMatter <?php if(function_exists('tpl_img_meta')): ?> 48b08fa01cSReactiveMatter <?php tpl_img_meta(); ?> 49b08fa01cSReactiveMatter <?php else: /* deprecated since Release 2014-05-05 */ ?> 50b08fa01cSReactiveMatter <dl> 51b08fa01cSReactiveMatter <?php 52b08fa01cSReactiveMatter $config_files = getConfigFiles('mediameta'); 53b08fa01cSReactiveMatter foreach ($config_files as $config_file) { 54b08fa01cSReactiveMatter if(@file_exists($config_file)) { 55b08fa01cSReactiveMatter include($config_file); 56b08fa01cSReactiveMatter } 57b08fa01cSReactiveMatter } 58b08fa01cSReactiveMatter 59b08fa01cSReactiveMatter foreach($fields as $key => $tag){ 60b08fa01cSReactiveMatter $t = array(); 61b08fa01cSReactiveMatter if (!empty($tag[0])) { 62b08fa01cSReactiveMatter $t = array($tag[0]); 63b08fa01cSReactiveMatter } 64b08fa01cSReactiveMatter if(is_array($tag[3])) { 65b08fa01cSReactiveMatter $t = array_merge($t,$tag[3]); 66b08fa01cSReactiveMatter } 67b08fa01cSReactiveMatter $value = tpl_img_getTag($t); 68b08fa01cSReactiveMatter if ($value) { 69b08fa01cSReactiveMatter echo '<dt>'.$lang[$tag[1]].':</dt><dd>'; 70b08fa01cSReactiveMatter if ($tag[2] == 'date') { 71b08fa01cSReactiveMatter echo dformat($value); 72b08fa01cSReactiveMatter } else { 73b08fa01cSReactiveMatter echo hsc($value); 74b08fa01cSReactiveMatter } 75b08fa01cSReactiveMatter echo '</dd>'; 76b08fa01cSReactiveMatter } 77b08fa01cSReactiveMatter } 78b08fa01cSReactiveMatter ?> 79b08fa01cSReactiveMatter </dl> 80b08fa01cSReactiveMatter <?php endif; ?> 81b08fa01cSReactiveMatter <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw')); ?> 82b08fa01cSReactiveMatter </div> 83b08fa01cSReactiveMatter </main><!-- /.content --> 84b08fa01cSReactiveMatter 85b08fa01cSReactiveMatter <nav> 86b08fa01cSReactiveMatter <ul> 87b08fa01cSReactiveMatter <?php if (file_exists(DOKU_INC . 'inc/Menu/DetailMenu.php')) { 88b08fa01cSReactiveMatter echo (new \dokuwiki\Menu\DetailMenu())->getListItems('action ', false); 89b08fa01cSReactiveMatter } else { 90b08fa01cSReactiveMatter _tpl_detailtools(); 91b08fa01cSReactiveMatter } ?> 92b08fa01cSReactiveMatter </ul> 93b08fa01cSReactiveMatter </nav> 94b08fa01cSReactiveMatter 95b08fa01cSReactiveMatter <?php endif; ?> 96b08fa01cSReactiveMatter </div> 97b08fa01cSReactiveMatter</body> 98b08fa01cSReactiveMatter</html> 99