1<!DOCTYPE html> 2<?php 3/** 4 * DokuWiki Image Detail Page 5 * 6 * @author Andreas Gohr <andi@splitbrain.org> 7 * @author Anika Henke <anika@selfthinker.org> 8 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 9 */ 10 11// must be run from within DokuWiki 12if (!defined('DOKU_INC')) { 13 die(); 14} 15header('X-UA-Compatible: IE=edge,chrome=1'); 16 17global $JSINFO; 18if (empty($JSINFO)) { 19 $JSINFO = array(); 20} 21 22?> 23<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>" 24 lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 25<head> 26 <meta charset="UTF-8"/> 27 <title> 28 <?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG)) ?> 29 [<?php echo strip_tags($conf['title']) ?>] 30 </title> 31 <script>(function (H) { 32 H.className = H.className.replace(/\bno-js\b/, 'js') 33 })(document.documentElement)</script> 34 <?php tpl_metaheaders() ?> 35 <meta name="viewport" content="width=device-width,initial-scale=1"/> 36 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 37 <?php tpl_includeFile('meta.html') ?> 38</head> 39 40<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> wide-content showSidebar"> 41<div id="dokuwiki__site"> 42 <?php include('tpl/nav-direct.php') ?> 43 44 45 <div class="page-wrapper <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 46 <?php 47 tpl_includeFile('header.html'); 48 ?> 49 50 <div id="dokuwiki__header" class="header no-print"> 51 <div class="container"> 52 <div class="row"> 53 <div class="col-xs-12"> 54 <div class="claim main-sidebar"> 55 <?php if (tpl_getConf('logo') && file_exists(mediaFN(tpl_getConf('logo')))) { 56 57 /* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */ 58 include('tpl/main-sidebar-logo.php'); 59 } ?> 60 <?php if ($conf['tagline']): ?> 61 <p class="claim"><?php echo $conf['tagline'] ?></p> 62 <?php endif ?> 63 64 </div><!-- .headings --> 65 </div><!-- .col --> 66 </div><!-- .row --> 67 </div><!-- .container --> 68 </div><!-- .header --> 69 70 <div class="sr-only nav-area-head"> 71 <h5 class="sr-only" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5> 72 </div><!-- .nav-area-head --> 73 74 <div class="tools"> 75 <div class="container"> 76 <div class="row"> 77 <div class="col-xs-12"> 78 79 <div class="sidebarheader main-sidebar"> 80 <?php 81 tpl_includeFile('sidebarheader.html') 82 ?> 83 </div><!-- .sidebarheader --> 84 85 <div class="search main-sidebar"> 86 <?php 87 include('tpl/main-sidebar-search.php'); 88 ?> 89 </div><!-- .search --> 90 91 <div id="dokuwiki__aside"> 92 <?php 93 include('tpl/main-sidebar-nav.php'); 94 ?> 95 </div><!-- .aside --> 96 97 </div><!-- .col --> 98 </div><!-- .row --> 99 </div><!-- .container --> 100 </div><!-- .tools --> 101 102 <div class="top-header"> 103 <div class="container"> 104 <div class="row"> 105 <div class="col-xs-12"> 106 107 <?php 108 $showTools = true; 109 include('tpl/nav-usertools-buttons.php'); 110 tpl_includeFile('header.html'); 111 ?> 112 113 </div><!-- .col --> 114 </div><!-- .row --> 115 </div><!-- .container --> 116 </div><!-- /top-header --> 117 118 119 <div id="dokuwiki__detail"> 120 <?php html_msgarea() ?> 121 122 <div class="content group"> 123 <div class="container"> 124 <div class="row"> 125 <div class="col-xs-12"> 126 <div class="breadcrumbs" data-do="<?php echo $ACT ?>"> 127 128 <div class="togglelink page_main-content"> 129 <a href="#"><span 130 class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle') ?></span></a> 131 </div> 132 133 <h6 class="sr-only" role="heading" 134 aria-level="2"><?php echo tpl_getLang('head_menu_status') ?></h6> 135 136 <?php 137 138 /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 139 /* page quality / page tasks */ 140 /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 141 include('tpl/nav-page-quality-tasks.php'); 142 ?> 143 144 <?php 145 /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 146 /* breadcrumb */ 147 /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 148 include('tpl/nav-breadcrumb.php'); 149 ?> 150 151 <h6 class="sr-only" role="heading" aria-level="2"><?php echo $lang['page_tools'] ?></h6> 152 153 <nav id="dokuwiki__pagetools"> 154 <div class="tools"> 155 <ul> 156 <?php 157 echo '<li>' . dokuwiki\template\sprintdoc\tpl::pageToolAction('mediaManager') . '</li>'; 158 echo '<li>' . dokuwiki\template\sprintdoc\tpl::pageToolAction('img_backto') . '</li>'; 159 ?> 160 </ul> 161 </div> 162 </nav> 163 164 </div> 165 <div id="dokuwiki__content" class="page main-content"> 166 167 <div id="spr__meta-box"></div> 168 169 <?php if ($ERROR): print $ERROR; ?> 170 <?php else: ?> 171 172 <?php if ($REV) { 173 echo p_locale_xhtml('showrev'); 174 } ?> 175 <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG)) ?></h1> 176 177 178 <?php tpl_img(900, 700); /* the image; parameters: maximum width, maximum height (and more) */ ?> 179 180 <div class="img_detail"> 181 <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2> 182 183 <?php 184 tpl_img_meta(); 185 186 /** @var helper_plugin_spatialhelper_index $spatial */ 187 $spatial = plugin_load('helper', 'spatialhelper_index'); 188 if ($spatial && plugin_load('helper', 'geophp')) { 189 global $IMG; 190 $point = $spatial->getCoordsFromExif($IMG); 191 if ($point) { 192 $long = $point->getX(); 193 $lat = $point->getY(); 194 $latShort = round($lat, 3); 195 $longShort = round($long, 3); 196 197 $hrefOSM = "https://www.openstreetmap.org/?mlat=$lat&mlon=$long#map=18/$lat/$long"; 198 $srcOSM = 'https://www.openstreetmap.org/export/embed.html?bbox=' . ($long - 0.004) . ',' . ($lat - 0.002) . ',' . ($long + 0.004) . ',' . ($lat + 0.002) . '&layer=mapnik&marker=' . $lat . ',' . $long; 199 echo '<dl>'; 200 echo '<dt title="Open Street Maps">OSM:</dt><dd>'; 201 echo '<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="' . $srcOSM . '" style="border: 1px solid black"></iframe><br/><small><a href="' . $hrefOSM . '">View Larger Map</a></small>'; 202 echo '</dd>'; 203 echo '</dl>'; 204 } 205 } 206 ?> 207 <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw')); ?> 208 </div> 209 </div><!-- .main-content --> 210 </div><!-- .col --> 211 </div><!-- .row --> 212 </div><!-- .container --> 213 </div><!-- /.content --> 214 215 216 <?php endif; ?> 217 </div> 218 </div><!-- /wrapper --> 219 220 221 <!-- ********** FOOTER ********** --> 222 223 <div id="dokuwiki__footer"> 224 <div class="container"> 225 <div class="row"> 226 <div class="col-xs-12"> 227 228 <div class="main-footer"> 229 <p> 230 <?php 231 232 233 /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 234 /* copyright */ 235 /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 236 tpl_license($img = false, $imgonly = false, $return = false, $wrap = false); 237 ?> 238 </p> 239 </div> 240 241 </div> 242 </div> 243 </div> 244 </div><!-- /footer --> 245 246 247 <?php tpl_includeFile('footer.html') ?> 248</div><!-- .dokuwiki__site --> 249 250<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 251 252</body> 253</html> 254