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(); 12header('X-UA-Compatible: IE=edge,chrome=1'); 13 14?><!DOCTYPE html> 15<html 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 29<body> 30 <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]--> 31 <div id="dokuwiki__site"><div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?>"> 32 33 <?php include('tpl_header.php') ?> 34 35 <div class="wrapper group" id="dokuwiki__detail"> 36 37 <!-- ********** CONTENT ********** --> 38 <div id="dokuwiki__content"><div class="pad group"> 39 40 <?php if(!$ERROR): ?> 41 <div class="pageId"><span><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG)); ?></span></div> 42 <?php endif; ?> 43 44 <div class="page group"> 45 <?php tpl_flush() ?> 46 <?php tpl_includeFile('pageheader.html') ?> 47 <!-- detail start --> 48 <?php 49 if($ERROR): 50 echo '<h1>'.$ERROR.'</h1>'; 51 else: ?> 52 <?php if($REV) echo p_locale_xhtml('showrev');?> 53 <h1><?php echo nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h1> 54 55 <?php tpl_img(900,700); /* parameters: maximum width, maximum height (and more) */ ?> 56 57 <div class="img_detail"> 58 <?php tpl_img_meta(); ?> 59 </div> 60 <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?> 61 <?php endif; ?> 62 </div> 63 <!-- detail stop --> 64 <?php tpl_includeFile('pagefooter.html') ?> 65 <?php tpl_flush() ?> 66 67 <?php /* doesn't make sense like this; @todo: maybe add tpl_imginfo()? 68 <div class="docInfo"><?php tpl_pageinfo(); ?></div> 69 */ ?> 70 71 </div></div><!-- /content --> 72 73 <hr class="a11y" /> 74 75 <!-- PAGE ACTIONS --> 76 <?php if (!$ERROR): ?> 77 <div id="dokuwiki__pagetools"> 78 <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3> 79 <div class="tools"> 80 <ul> 81 <?php 82 $data = array( 83 'view' => 'detail', 84 'items' => array( 85 'mediaManager' => tpl_action('mediaManager', 1, 'li', 1, '<span>', '</span>'), 86 'img_backto' => tpl_action('img_backto', 1, 'li', 1, '<span>', '</span>'), 87 ) 88 ); 89 90 // the page tools can be amended through a custom plugin hook 91 $evt = new Doku_Event('TEMPLATE_PAGETOOLS_DISPLAY', $data); 92 if($evt->advise_before()) { 93 foreach($evt->data['items'] as $k => $html) echo $html; 94 } 95 $evt->advise_after(); 96 unset($data); 97 unset($evt); 98 ?> 99 </ul> 100 </div> 101 </div> 102 <?php endif; ?> 103 </div><!-- /wrapper --> 104 105 <?php include('tpl_footer.php') ?> 106 </div></div><!-- /site --> 107 108 <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]--> 109</body> 110</html> 111