1994d0e8dSAndreas Gohr<!DOCTYPE html> 29e150176SJana Deutschländer<?php 39e150176SJana Deutschländer/** 49e150176SJana Deutschländer * DokuWiki Image Detail Page 59e150176SJana Deutschländer * 69e150176SJana Deutschländer * @author Andreas Gohr <andi@splitbrain.org> 79e150176SJana Deutschländer * @author Anika Henke <anika@selfthinker.org> 89e150176SJana Deutschländer * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 99e150176SJana Deutschländer */ 109e150176SJana Deutschländer 119e150176SJana Deutschländer// must be run from within DokuWiki 12ecb77cc5SMichael Großeif (!defined('DOKU_INC')) { 13ecb77cc5SMichael Große die(); 14ecb77cc5SMichael Große} 159e150176SJana Deutschländerheader('X-UA-Compatible: IE=edge,chrome=1'); 169e150176SJana Deutschländer 17*e1c37e40SMichael Großeglobal $JSINFO; 18*e1c37e40SMichael Großeif (empty($JSINFO)) { 19*e1c37e40SMichael Große $JSINFO = array(); 20*e1c37e40SMichael Große} 21*e1c37e40SMichael Große 22994d0e8dSAndreas Gohr?> 239e150176SJana Deutschländer<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>" 249e150176SJana Deutschländer lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 259e150176SJana Deutschländer<head> 269e150176SJana Deutschländer <meta charset="UTF-8"/> 279e150176SJana Deutschländer <title> 289e150176SJana Deutschländer <?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG)) ?> 299e150176SJana Deutschländer [<?php echo strip_tags($conf['title']) ?>] 309e150176SJana Deutschländer </title> 31ecb77cc5SMichael Große <script>(function (H) { 32ecb77cc5SMichael Große H.className = H.className.replace(/\bno-js\b/, 'js') 33ecb77cc5SMichael Große })(document.documentElement)</script> 349e150176SJana Deutschländer <?php tpl_metaheaders() ?> 359e150176SJana Deutschländer <meta name="viewport" content="width=device-width,initial-scale=1"/> 369e150176SJana Deutschländer <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 379e150176SJana Deutschländer <?php tpl_includeFile('meta.html') ?> 389e150176SJana Deutschländer</head> 399e150176SJana Deutschländer 4014353296SMichael Große<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> wide-content showSidebar"> 4114353296SMichael Große<div id="dokuwiki__site"> 4214353296SMichael Große <?php include('tpl/nav-direct.php') ?> 4314353296SMichael Große 4414353296SMichael Große 4514353296SMichael Große <div class="page-wrapper <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 4614353296SMichael Große <?php 4714353296SMichael Große tpl_includeFile('header.html'); 4814353296SMichael Große ?> 4914353296SMichael Große 5014353296SMichael Große <div id="dokuwiki__header" class="header no-print"> 5114353296SMichael Große <div class="container"> 5214353296SMichael Große <div class="row"> 5314353296SMichael Große <div class="col-xs-12"> 5414353296SMichael Große <div class="claim main-sidebar"> 5514353296SMichael Große <?php if (tpl_getConf('logo') && file_exists(mediaFN(tpl_getConf('logo')))) { 5614353296SMichael Große 5714353296SMichael Große /* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */ 5814353296SMichael Große include('tpl/main-sidebar-logo.php'); 5914353296SMichael Große } ?> 6014353296SMichael Große <?php if ($conf['tagline']): ?> 6114353296SMichael Große <p class="claim"><?php echo $conf['tagline'] ?></p> 6214353296SMichael Große <?php endif ?> 6314353296SMichael Große 6414353296SMichael Große </div><!-- .headings --> 6514353296SMichael Große </div><!-- .col --> 6614353296SMichael Große </div><!-- .row --> 6714353296SMichael Große </div><!-- .container --> 6814353296SMichael Große </div><!-- .header --> 6914353296SMichael Große 7014353296SMichael Große <div class="sr-only nav-area-head"> 7114353296SMichael Große <h5 class="sr-only" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5> 7214353296SMichael Große </div><!-- .nav-area-head --> 7314353296SMichael Große 7414353296SMichael Große <div class="tools"> 7514353296SMichael Große <div class="container"> 7614353296SMichael Große <div class="row"> 7714353296SMichael Große <div class="col-xs-12"> 7814353296SMichael Große 7914353296SMichael Große <div class="sidebarheader main-sidebar"> 8014353296SMichael Große <?php 8114353296SMichael Große tpl_includeFile('sidebarheader.html') 8214353296SMichael Große ?> 8314353296SMichael Große </div><!-- .sidebarheader --> 8414353296SMichael Große 8514353296SMichael Große <div class="search main-sidebar"> 8614353296SMichael Große <?php 8714353296SMichael Große include('tpl/main-sidebar-search.php'); 8814353296SMichael Große ?> 8914353296SMichael Große </div><!-- .search --> 9014353296SMichael Große 9114353296SMichael Große <div id="dokuwiki__aside"> 9214353296SMichael Große <?php 9314353296SMichael Große include('tpl/main-sidebar-nav.php'); 9414353296SMichael Große ?> 9514353296SMichael Große </div><!-- .aside --> 9614353296SMichael Große 9714353296SMichael Große </div><!-- .col --> 9814353296SMichael Große </div><!-- .row --> 9914353296SMichael Große </div><!-- .container --> 10014353296SMichael Große </div><!-- .tools --> 10114353296SMichael Große 10214353296SMichael Große <div class="top-header"> 10314353296SMichael Große <div class="container"> 10414353296SMichael Große <div class="row"> 10514353296SMichael Große <div class="col-xs-12"> 10614353296SMichael Große 10714353296SMichael Große <?php 10814353296SMichael Große $showTools = true; 10914353296SMichael Große include('tpl/nav-usertools-buttons.php'); 11014353296SMichael Große tpl_includeFile('header.html'); 11114353296SMichael Große ?> 11214353296SMichael Große 11314353296SMichael Große </div><!-- .col --> 11414353296SMichael Große </div><!-- .row --> 11514353296SMichael Große </div><!-- .container --> 11614353296SMichael Große </div><!-- /top-header --> 11714353296SMichael Große 11814353296SMichael Große 11914353296SMichael Große <div id="dokuwiki__detail"> 1209e150176SJana Deutschländer <?php html_msgarea() ?> 1219e150176SJana Deutschländer 12214353296SMichael Große <div class="content group"> 12314353296SMichael Große <div class="container"> 12414353296SMichael Große <div class="row"> 12514353296SMichael Große <div class="col-xs-12"> 12614353296SMichael Große <div class="breadcrumbs" data-do="<?php echo $ACT ?>"> 12714353296SMichael Große 12814353296SMichael Große <div class="togglelink page_main-content"> 129ecb77cc5SMichael Große <a href="#"><span 130ecb77cc5SMichael Große class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle') ?></span></a> 13114353296SMichael Große </div> 13214353296SMichael Große 133ecb77cc5SMichael Große <h6 class="sr-only" role="heading" 134ecb77cc5SMichael Große aria-level="2"><?php echo tpl_getLang('head_menu_status') ?></h6> 13514353296SMichael Große 13614353296SMichael Große <?php 13714353296SMichael Große 13814353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 13914353296SMichael Große /* page quality / page tasks */ 14014353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 14114353296SMichael Große include('tpl/nav-page-quality-tasks.php'); 14214353296SMichael Große ?> 14314353296SMichael Große 14414353296SMichael Große <?php 14514353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 14614353296SMichael Große /* breadcrumb */ 14714353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 14814353296SMichael Große include('tpl/nav-breadcrumb.php'); 14914353296SMichael Große ?> 15014353296SMichael Große 15114353296SMichael Große <h6 class="sr-only" role="heading" aria-level="2"><?php echo $lang['page_tools'] ?></h6> 15214353296SMichael Große 1535c6ddbf8SMichael Große <nav id="dokuwiki__pagetools"> 1545c6ddbf8SMichael Große <div class="tools"> 1555c6ddbf8SMichael Große <ul> 15614353296SMichael Große <?php 1575c6ddbf8SMichael Große echo '<li>' . dokuwiki\template\sprintdoc\tpl::pageToolAction('mediaManager') . '</li>'; 1585c6ddbf8SMichael Große echo '<li>' . dokuwiki\template\sprintdoc\tpl::pageToolAction('img_backto') . '</li>'; 15914353296SMichael Große ?> 1605c6ddbf8SMichael Große </ul> 1615c6ddbf8SMichael Große </div> 1625c6ddbf8SMichael Große </nav> 16314353296SMichael Große 16414353296SMichael Große </div> 16514353296SMichael Große <div id="dokuwiki__content" class="page main-content"> 16614353296SMichael Große 16714353296SMichael Große <div id="spr__meta-box"></div> 16814353296SMichael Große 1699e150176SJana Deutschländer <?php if ($ERROR): print $ERROR; ?> 1709e150176SJana Deutschländer <?php else: ?> 1719e150176SJana Deutschländer 172ecb77cc5SMichael Große <?php if ($REV) { 173ecb77cc5SMichael Große echo p_locale_xhtml('showrev'); 174ecb77cc5SMichael Große } ?> 1759e150176SJana Deutschländer <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG)) ?></h1> 1769e150176SJana Deutschländer 17714353296SMichael Große 1789e150176SJana Deutschländer <?php tpl_img(900, 700); /* the image; parameters: maximum width, maximum height (and more) */ ?> 1799e150176SJana Deutschländer 1809e150176SJana Deutschländer <div class="img_detail"> 1819e150176SJana Deutschländer <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2> 1829e150176SJana Deutschländer 183f2a0ea7bSMichael Große <?php 184f2a0ea7bSMichael Große tpl_img_meta(); 185f2a0ea7bSMichael Große 186f2a0ea7bSMichael Große /** @var helper_plugin_spatialhelper_index $spatial */ 187f2a0ea7bSMichael Große $spatial = plugin_load('helper', 'spatialhelper_index'); 188f2a0ea7bSMichael Große if ($spatial && plugin_load('helper', 'geophp')) { 189f2a0ea7bSMichael Große global $IMG; 190f2a0ea7bSMichael Große $point = $spatial->getCoordsFromExif($IMG); 191f2a0ea7bSMichael Große if ($point) { 192f2a0ea7bSMichael Große $long = $point->getX(); 193f2a0ea7bSMichael Große $lat = $point->getY(); 194f2a0ea7bSMichael Große $latShort = round($lat, 3); 195f2a0ea7bSMichael Große $longShort = round($long, 3); 196f2a0ea7bSMichael Große 197f2a0ea7bSMichael Große $hrefOSM = "https://www.openstreetmap.org/?mlat=$lat&mlon=$long#map=18/$lat/$long"; 198f2a0ea7bSMichael Große $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; 199f2a0ea7bSMichael Große echo '<dl>'; 200f2a0ea7bSMichael Große echo '<dt title="Open Street Maps">OSM:</dt><dd>'; 201f2a0ea7bSMichael Große 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>'; 202f2a0ea7bSMichael Große echo '</dd>'; 203f2a0ea7bSMichael Große echo '</dl>'; 204f2a0ea7bSMichael Große } 205f2a0ea7bSMichael Große } 206f2a0ea7bSMichael Große ?> 2079e150176SJana Deutschländer <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw')); ?> 2089e150176SJana Deutschländer </div> 20914353296SMichael Große </div><!-- .main-content --> 21014353296SMichael Große </div><!-- .col --> 21114353296SMichael Große </div><!-- .row --> 21214353296SMichael Große </div><!-- .container --> 21314353296SMichael Große </div><!-- /.content --> 21414353296SMichael Große 21514353296SMichael Große 2169e150176SJana Deutschländer <?php endif; ?> 2179e150176SJana Deutschländer </div> 21814353296SMichael Große </div><!-- /wrapper --> 21914353296SMichael Große 22014353296SMichael Große 22114353296SMichael Große <!-- ********** FOOTER ********** --> 22214353296SMichael Große 22314353296SMichael Große <div id="dokuwiki__footer"> 22414353296SMichael Große <div class="container"> 22514353296SMichael Große <div class="row"> 22614353296SMichael Große <div class="col-xs-12"> 22714353296SMichael Große 22814353296SMichael Große <div class="main-footer"> 22914353296SMichael Große <p> 23014353296SMichael Große <?php 23114353296SMichael Große 23214353296SMichael Große 23314353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 23414353296SMichael Große /* copyright */ 23514353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 23614353296SMichael Große tpl_license($img = false, $imgonly = false, $return = false, $wrap = false); 23714353296SMichael Große ?> 23814353296SMichael Große </p> 23914353296SMichael Große </div> 24014353296SMichael Große 24114353296SMichael Große </div> 24214353296SMichael Große </div> 24314353296SMichael Große </div> 24414353296SMichael Große </div><!-- /footer --> 24514353296SMichael Große 24614353296SMichael Große 24714353296SMichael Große <?php tpl_includeFile('footer.html') ?> 24814353296SMichael Große</div><!-- .dokuwiki__site --> 24914353296SMichael Große 25014353296SMichael Große<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 25114353296SMichael Große 2529e150176SJana Deutschländer</body> 2539e150176SJana Deutschländer</html> 254