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