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