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 12*ecb77cc5SMichael Großeif (!defined('DOKU_INC')) { 13*ecb77cc5SMichael Große die(); 14*ecb77cc5SMichael Große} 159e150176SJana Deutschländerheader('X-UA-Compatible: IE=edge,chrome=1'); 169e150176SJana Deutschländer 17994d0e8dSAndreas Gohr?> 189e150176SJana Deutschländer<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>" 199e150176SJana Deutschländer lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 209e150176SJana Deutschländer<head> 219e150176SJana Deutschländer <meta charset="UTF-8"/> 229e150176SJana Deutschländer <title> 239e150176SJana Deutschländer <?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG)) ?> 249e150176SJana Deutschländer [<?php echo strip_tags($conf['title']) ?>] 259e150176SJana Deutschländer </title> 26*ecb77cc5SMichael Große <script>(function (H) { 27*ecb77cc5SMichael Große H.className = H.className.replace(/\bno-js\b/, 'js') 28*ecb77cc5SMichael Große })(document.documentElement)</script> 299e150176SJana Deutschländer <?php tpl_metaheaders() ?> 309e150176SJana Deutschländer <meta name="viewport" content="width=device-width,initial-scale=1"/> 319e150176SJana Deutschländer <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 329e150176SJana Deutschländer <?php tpl_includeFile('meta.html') ?> 339e150176SJana Deutschländer</head> 349e150176SJana Deutschländer 3514353296SMichael Große<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> wide-content showSidebar"> 3614353296SMichael Große<div id="dokuwiki__site"> 3714353296SMichael Große <?php include('tpl/nav-direct.php') ?> 3814353296SMichael Große 3914353296SMichael Große 4014353296SMichael Große <div class="page-wrapper <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 4114353296SMichael Große <?php 4214353296SMichael Große tpl_includeFile('header.html'); 4314353296SMichael Große ?> 4414353296SMichael Große 4514353296SMichael Große <div id="dokuwiki__header" class="header no-print"> 4614353296SMichael Große <div class="container"> 4714353296SMichael Große <div class="row"> 4814353296SMichael Große <div class="col-xs-12"> 4914353296SMichael Große <div class="claim main-sidebar"> 5014353296SMichael Große <?php if (tpl_getConf('logo') && file_exists(mediaFN(tpl_getConf('logo')))) { 5114353296SMichael Große 5214353296SMichael Große /* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */ 5314353296SMichael Große include('tpl/main-sidebar-logo.php'); 5414353296SMichael Große } ?> 5514353296SMichael Große <?php if ($conf['tagline']): ?> 5614353296SMichael Große <p class="claim"><?php echo $conf['tagline'] ?></p> 5714353296SMichael Große <?php endif ?> 5814353296SMichael Große 5914353296SMichael Große </div><!-- .headings --> 6014353296SMichael Große </div><!-- .col --> 6114353296SMichael Große </div><!-- .row --> 6214353296SMichael Große </div><!-- .container --> 6314353296SMichael Große </div><!-- .header --> 6414353296SMichael Große 6514353296SMichael Große <div class="sr-only nav-area-head"> 6614353296SMichael Große <h5 class="sr-only" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5> 6714353296SMichael Große </div><!-- .nav-area-head --> 6814353296SMichael Große 6914353296SMichael Große <div class="tools"> 7014353296SMichael Große <div class="container"> 7114353296SMichael Große <div class="row"> 7214353296SMichael Große <div class="col-xs-12"> 7314353296SMichael Große 7414353296SMichael Große <div class="sidebarheader main-sidebar"> 7514353296SMichael Große <?php 7614353296SMichael Große tpl_includeFile('sidebarheader.html') 7714353296SMichael Große ?> 7814353296SMichael Große </div><!-- .sidebarheader --> 7914353296SMichael Große 8014353296SMichael Große <div class="search main-sidebar"> 8114353296SMichael Große <?php 8214353296SMichael Große include('tpl/main-sidebar-search.php'); 8314353296SMichael Große ?> 8414353296SMichael Große </div><!-- .search --> 8514353296SMichael Große 8614353296SMichael Große <div id="dokuwiki__aside"> 8714353296SMichael Große <?php 8814353296SMichael Große include('tpl/main-sidebar-nav.php'); 8914353296SMichael Große ?> 9014353296SMichael Große </div><!-- .aside --> 9114353296SMichael Große 9214353296SMichael Große </div><!-- .col --> 9314353296SMichael Große </div><!-- .row --> 9414353296SMichael Große </div><!-- .container --> 9514353296SMichael Große </div><!-- .tools --> 9614353296SMichael Große 9714353296SMichael Große <div class="top-header"> 9814353296SMichael Große <div class="container"> 9914353296SMichael Große <div class="row"> 10014353296SMichael Große <div class="col-xs-12"> 10114353296SMichael Große 10214353296SMichael Große <?php 10314353296SMichael Große $showTools = true; 10414353296SMichael Große include('tpl/nav-usertools-buttons.php'); 10514353296SMichael Große tpl_includeFile('header.html'); 10614353296SMichael Große ?> 10714353296SMichael Große 10814353296SMichael Große </div><!-- .col --> 10914353296SMichael Große </div><!-- .row --> 11014353296SMichael Große </div><!-- .container --> 11114353296SMichael Große </div><!-- /top-header --> 11214353296SMichael Große 11314353296SMichael Große 11414353296SMichael Große <div id="dokuwiki__detail"> 1159e150176SJana Deutschländer <?php html_msgarea() ?> 1169e150176SJana Deutschländer 11714353296SMichael Große <div class="content group"> 11814353296SMichael Große <div class="container"> 11914353296SMichael Große <div class="row"> 12014353296SMichael Große <div class="col-xs-12"> 12114353296SMichael Große <div class="breadcrumbs" data-do="<?php echo $ACT ?>"> 12214353296SMichael Große 12314353296SMichael Große <div class="togglelink page_main-content"> 124*ecb77cc5SMichael Große <a href="#"><span 125*ecb77cc5SMichael Große class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle') ?></span></a> 12614353296SMichael Große </div> 12714353296SMichael Große 128*ecb77cc5SMichael Große <h6 class="sr-only" role="heading" 129*ecb77cc5SMichael Große aria-level="2"><?php echo tpl_getLang('head_menu_status') ?></h6> 13014353296SMichael Große 13114353296SMichael Große <?php 13214353296SMichael Große 13314353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 13414353296SMichael Große /* page quality / page tasks */ 13514353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 13614353296SMichael Große include('tpl/nav-page-quality-tasks.php'); 13714353296SMichael Große ?> 13814353296SMichael Große 13914353296SMichael Große <?php 14014353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 14114353296SMichael Große /* breadcrumb */ 14214353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 14314353296SMichael Große include('tpl/nav-breadcrumb.php'); 14414353296SMichael Große ?> 14514353296SMichael Große 14614353296SMichael Große <h6 class="sr-only" role="heading" aria-level="2"><?php echo $lang['page_tools'] ?></h6> 14714353296SMichael Große 1485c6ddbf8SMichael Große <nav id="dokuwiki__pagetools"> 1495c6ddbf8SMichael Große <div class="tools"> 1505c6ddbf8SMichael Große <ul> 15114353296SMichael Große <?php 1525c6ddbf8SMichael Große echo '<li>' . dokuwiki\template\sprintdoc\tpl::pageToolAction('mediaManager') . '</li>'; 1535c6ddbf8SMichael Große echo '<li>' . dokuwiki\template\sprintdoc\tpl::pageToolAction('img_backto') . '</li>'; 15414353296SMichael Große ?> 1555c6ddbf8SMichael Große </ul> 1565c6ddbf8SMichael Große </div> 1575c6ddbf8SMichael Große </nav> 15814353296SMichael Große 15914353296SMichael Große </div> 16014353296SMichael Große <div id="dokuwiki__content" class="page main-content"> 16114353296SMichael Große 16214353296SMichael Große <div id="spr__meta-box"></div> 16314353296SMichael Große 1649e150176SJana Deutschländer <?php if ($ERROR): print $ERROR; ?> 1659e150176SJana Deutschländer <?php else: ?> 1669e150176SJana Deutschländer 167*ecb77cc5SMichael Große <?php if ($REV) { 168*ecb77cc5SMichael Große echo p_locale_xhtml('showrev'); 169*ecb77cc5SMichael Große } ?> 1709e150176SJana Deutschländer <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG)) ?></h1> 1719e150176SJana Deutschländer 17214353296SMichael Große 1739e150176SJana Deutschländer <?php tpl_img(900, 700); /* the image; parameters: maximum width, maximum height (and more) */ ?> 1749e150176SJana Deutschländer 1759e150176SJana Deutschländer <div class="img_detail"> 1769e150176SJana Deutschländer <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2> 1779e150176SJana Deutschländer 178f2a0ea7bSMichael Große <?php 179f2a0ea7bSMichael Große tpl_img_meta(); 180f2a0ea7bSMichael Große 181f2a0ea7bSMichael Große /** @var helper_plugin_spatialhelper_index $spatial */ 182f2a0ea7bSMichael Große $spatial = plugin_load('helper', 'spatialhelper_index'); 183f2a0ea7bSMichael Große if ($spatial && plugin_load('helper', 'geophp')) { 184f2a0ea7bSMichael Große global $IMG; 185f2a0ea7bSMichael Große $point = $spatial->getCoordsFromExif($IMG); 186f2a0ea7bSMichael Große if ($point) { 187f2a0ea7bSMichael Große $long = $point->getX(); 188f2a0ea7bSMichael Große $lat = $point->getY(); 189f2a0ea7bSMichael Große $latShort = round($lat, 3); 190f2a0ea7bSMichael Große $longShort = round($long, 3); 191f2a0ea7bSMichael Große 192f2a0ea7bSMichael Große $hrefOSM = "https://www.openstreetmap.org/?mlat=$lat&mlon=$long#map=18/$lat/$long"; 193f2a0ea7bSMichael 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; 194f2a0ea7bSMichael Große echo '<dl>'; 195f2a0ea7bSMichael Große echo '<dt title="Open Street Maps">OSM:</dt><dd>'; 196f2a0ea7bSMichael 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>'; 197f2a0ea7bSMichael Große echo '</dd>'; 198f2a0ea7bSMichael Große echo '</dl>'; 199f2a0ea7bSMichael Große } 200f2a0ea7bSMichael Große } 201f2a0ea7bSMichael Große ?> 2029e150176SJana Deutschländer <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw')); ?> 2039e150176SJana Deutschländer </div> 20414353296SMichael Große </div><!-- .main-content --> 20514353296SMichael Große </div><!-- .col --> 20614353296SMichael Große </div><!-- .row --> 20714353296SMichael Große </div><!-- .container --> 20814353296SMichael Große </div><!-- /.content --> 20914353296SMichael Große 21014353296SMichael Große 2119e150176SJana Deutschländer <?php endif; ?> 2129e150176SJana Deutschländer </div> 21314353296SMichael Große </div><!-- /wrapper --> 21414353296SMichael Große 21514353296SMichael Große 21614353296SMichael Große <!-- ********** FOOTER ********** --> 21714353296SMichael Große 21814353296SMichael Große <div id="dokuwiki__footer"> 21914353296SMichael Große <div class="container"> 22014353296SMichael Große <div class="row"> 22114353296SMichael Große <div class="col-xs-12"> 22214353296SMichael Große 22314353296SMichael Große <div class="main-footer"> 22414353296SMichael Große <p> 22514353296SMichael Große <?php 22614353296SMichael Große 22714353296SMichael Große 22814353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 22914353296SMichael Große /* copyright */ 23014353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 23114353296SMichael Große tpl_license($img = false, $imgonly = false, $return = false, $wrap = false); 23214353296SMichael Große ?> 23314353296SMichael Große </p> 23414353296SMichael Große </div> 23514353296SMichael Große 23614353296SMichael Große </div> 23714353296SMichael Große </div> 23814353296SMichael Große </div> 23914353296SMichael Große </div><!-- /footer --> 24014353296SMichael Große 24114353296SMichael Große 24214353296SMichael Große <?php tpl_includeFile('footer.html') ?> 24314353296SMichael Große</div><!-- .dokuwiki__site --> 24414353296SMichael Große 24514353296SMichael Große<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 24614353296SMichael Große 2479e150176SJana Deutschländer</body> 2489e150176SJana Deutschländer</html> 249