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) { 23 H.className = H.className.replace(/\bno-js\b/, 'js') 24 })(document.documentElement)</script> 25 <?php tpl_metaheaders() ?> 26 <meta name="viewport" content="width=device-width,initial-scale=1"/> 27 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 28 <?php tpl_includeFile('meta.html') ?> 29 30 <!-- Bootstrap --> 31 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" 32 integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous"> 33 34 <!-- Bootstrap css customization --> 35 <!-- This Css is not in the framework of Dokuwiki because bootstrap requires a more recent jquery version than Dokuwiki --> 36 <!-- Therefore Bootstrap must be placed after the call of tpl_metaheaders--> 37 <!-- Version: --> 38 <!-- - Jquery: https://github.com/twbs/bootstrap/blob/v3.3.5/bower.json --> 39 <!-- - Doku: https://www.dokuwiki.org/devel:jqueryfaq --> 40 <link href="<?php echo tpl_getMediaFile(array("css/customBootstrap.css")); ?>" rel="stylesheet"> 41 42</head> 43 44<body> 45<!--[if lte IE 7 ]> 46<div id="IE7"><![endif]--><!--[if IE 8 ]> 47<div id="IE8"><![endif]--> 48<div id="dokuwiki__site"> 49 <div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?>"> 50 51 <?php include_once('tpl_template_NicoBoot.php'); ?> 52 <?php include('tpl_header.php') ?> 53 <!-- Bootstrap Container --> 54 <div class="container"> 55 56 <?php 57 $data="";// Mandatory for the below function 58 trigger_event('TPL_PAGE_TOP_OUTPUT',$data); 59 ?> 60 61 <!-- Must contain One row --> 62 <div class="row"> 63 64 <div role="main" class="col-md-12"> 65 <!-- ********** CONTENT ********** --> 66 67 68 69<!-- What is this ? Double with the h1 below --> 70<!-- --><?php //if (!$ERROR): ?> 71<!-- <div class="pageId">--> 72<!-- <span>IPTC.Headline: --><?php //echo hsc(tpl_img_getTag('IPTC.Headline', $IMG)); ?><!--</span></div>--> 73<!-- --><?php //endif; ?> 74 75 76 <?php tpl_flush() ?> 77 <?php tpl_includeFile('pageheader.html') ?> 78 <!-- detail start --> 79 <?php 80 if ($ERROR): 81 echo '<h1>' . $ERROR . '</h1>'; 82 else: ?> 83 <?php if ($REV) echo p_locale_xhtml('showrev'); ?> 84 <h1><?php echo nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h1> 85 86 <p> 87 <?php tpl_img(900, 700); /* parameters: maximum width, maximum height (and more) */ ?> 88 </p> 89 90 <div class="img_detail"> 91 <?php tpl_img_meta(); ?> 92 </div> 93 <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?> 94 <?php endif; ?> 95 96 <!-- detail stop --> 97 <?php tpl_includeFile('pagefooter.html') ?> 98 <?php tpl_flush() ?> 99 100 <?php /* doesn't make sense like this; @todo: maybe add tpl_imginfo()? <div class="docInfo"><?php tpl_pageinfo(); ?></div> */ ?> 101 102 </div> 103 </div> 104 </div> 105 <?php include('tpl_footer.php') ?> 106 </div> 107</div><!-- /site --> 108 109<!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]--> 110<!--<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>--> 111<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" 112 integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" 113 crossorigin="anonymous"></script> 114<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" 115 integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" 116 crossorigin="anonymous"></script> 117</body> 118</html> 119