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 129e150176SJana Deutschländerif (!defined('DOKU_INC')) die(); 139e150176SJana Deutschländerheader('X-UA-Compatible: IE=edge,chrome=1'); 149e150176SJana Deutschländer 15994d0e8dSAndreas Gohr?> 169e150176SJana Deutschländer<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" 179e150176SJana Deutschländer lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 189e150176SJana Deutschländer<head> 199e150176SJana Deutschländer <meta charset="UTF-8" /> 209e150176SJana Deutschländer <title> 219e150176SJana Deutschländer <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?> 229e150176SJana Deutschländer [<?php echo strip_tags($conf['title'])?>] 239e150176SJana Deutschländer </title> 249e150176SJana Deutschländer <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 259e150176SJana Deutschländer <?php tpl_metaheaders()?> 269e150176SJana Deutschländer <meta name="viewport" content="width=device-width,initial-scale=1" /> 279e150176SJana Deutschländer <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 289e150176SJana Deutschländer <?php tpl_includeFile('meta.html') ?> 299e150176SJana Deutschländer</head> 309e150176SJana Deutschländer 3114353296SMichael Große<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> wide-content showSidebar"> 3214353296SMichael Große<div id="dokuwiki__site"> 3314353296SMichael Große <?php include('tpl/nav-direct.php') ?> 3414353296SMichael Große 3514353296SMichael Große 3614353296SMichael Große <div class="page-wrapper <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 3714353296SMichael Große <?php 3814353296SMichael Große tpl_includeFile('header.html'); 3914353296SMichael Große ?> 4014353296SMichael Große 4114353296SMichael Große <div id="dokuwiki__header" class="header no-print"> 4214353296SMichael Große <div class="container"> 4314353296SMichael Große <div class="row"> 4414353296SMichael Große <div class="col-xs-12"> 4514353296SMichael Große <div class="claim main-sidebar"> 4614353296SMichael Große <?php if (tpl_getConf('logo') && file_exists(mediaFN(tpl_getConf('logo')))){ 4714353296SMichael Große 4814353296SMichael Große /* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */ 4914353296SMichael Große include('tpl/main-sidebar-logo.php'); 5014353296SMichael Große } ?> 5114353296SMichael Große <?php if ($conf['tagline']): ?> 5214353296SMichael Große <p class="claim"><?php echo $conf['tagline'] ?></p> 5314353296SMichael Große <?php endif ?> 5414353296SMichael Große 5514353296SMichael Große </div><!-- .headings --> 5614353296SMichael Große </div><!-- .col --> 5714353296SMichael Große </div><!-- .row --> 5814353296SMichael Große </div><!-- .container --> 5914353296SMichael Große </div><!-- .header --> 6014353296SMichael Große 6114353296SMichael Große <div class="sr-only nav-area-head"> 6214353296SMichael Große <h5 class="sr-only" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5> 6314353296SMichael Große </div><!-- .nav-area-head --> 6414353296SMichael Große 6514353296SMichael Große <div class="tools"> 6614353296SMichael Große <div class="container"> 6714353296SMichael Große <div class="row"> 6814353296SMichael Große <div class="col-xs-12"> 6914353296SMichael Große 7014353296SMichael Große <div class="sidebarheader main-sidebar"> 7114353296SMichael Große <?php 7214353296SMichael Große tpl_includeFile('sidebarheader.html') 7314353296SMichael Große ?> 7414353296SMichael Große </div><!-- .sidebarheader --> 7514353296SMichael Große 7614353296SMichael Große <div class="search main-sidebar"> 7714353296SMichael Große <?php 7814353296SMichael Große include('tpl/main-sidebar-search.php'); 7914353296SMichael Große ?> 8014353296SMichael Große </div><!-- .search --> 8114353296SMichael Große 8214353296SMichael Große <div id="dokuwiki__aside"> 8314353296SMichael Große <?php 8414353296SMichael Große include('tpl/main-sidebar-nav.php'); 8514353296SMichael Große ?> 8614353296SMichael Große </div><!-- .aside --> 8714353296SMichael Große 8814353296SMichael Große </div><!-- .col --> 8914353296SMichael Große </div><!-- .row --> 9014353296SMichael Große </div><!-- .container --> 9114353296SMichael Große </div><!-- .tools --> 9214353296SMichael Große 9314353296SMichael Große <div class="top-header"> 9414353296SMichael Große <div class="container"> 9514353296SMichael Große <div class="row"> 9614353296SMichael Große <div class="col-xs-12"> 9714353296SMichael Große 9814353296SMichael Große <?php 9914353296SMichael Große $showTools = true; 10014353296SMichael Große include('tpl/nav-usertools-buttons.php'); 10114353296SMichael Große tpl_includeFile('header.html'); 10214353296SMichael Große ?> 10314353296SMichael Große 10414353296SMichael Große </div><!-- .col --> 10514353296SMichael Große </div><!-- .row --> 10614353296SMichael Große </div><!-- .container --> 10714353296SMichael Große </div><!-- /top-header --> 10814353296SMichael Große 10914353296SMichael Große 11014353296SMichael Große <div id="dokuwiki__detail"> 1119e150176SJana Deutschländer <?php html_msgarea() ?> 1129e150176SJana Deutschländer 11314353296SMichael Große <div class="content group"> 11414353296SMichael Große <div class="container"> 11514353296SMichael Große <div class="row"> 11614353296SMichael Große <div class="col-xs-12"> 11714353296SMichael Große <div class="breadcrumbs" data-do="<?php echo $ACT?>"> 11814353296SMichael Große 11914353296SMichael Große <div class="togglelink page_main-content"> 120*ba5f92bcSMichael Große <a href="#"><span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle')?></span></a> 12114353296SMichael Große </div> 12214353296SMichael Große 12314353296SMichael Große <h6 class="sr-only" role="heading" aria-level="2"><?php echo tpl_getLang('head_menu_status') ?></h6> 12414353296SMichael Große 12514353296SMichael Große <?php 12614353296SMichael Große 12714353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 12814353296SMichael Große /* page quality / page tasks */ 12914353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 13014353296SMichael Große include('tpl/nav-page-quality-tasks.php'); 13114353296SMichael Große ?> 13214353296SMichael Große 13314353296SMichael Große <?php 13414353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 13514353296SMichael Große /* breadcrumb */ 13614353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 13714353296SMichael Große include('tpl/nav-breadcrumb.php'); 13814353296SMichael Große ?> 13914353296SMichael Große 14014353296SMichael Große <h6 class="sr-only" role="heading" aria-level="2"><?php echo $lang['page_tools'] ?></h6> 14114353296SMichael Große 14214353296SMichael Große <?php 14314353296SMichael Große 14414353296SMichael Große 14514353296SMichael Große /** 14614353296SMichael Große * FIXME implement proper pagetools as in https://www.dokuwiki.org/_detail/wiki:dokuwiki-128.png 14714353296SMichael Große * after the new svg-page-tool mechanism has been merged into master 14814353296SMichael Große * 14914353296SMichael Große * see https://cosmocode.jira.com/browse/SPR-837 15014353296SMichael Große */ 15114353296SMichael Große include('tpl/nav-page-tools.php'); 15214353296SMichael Große ?> 15314353296SMichael Große 15414353296SMichael Große </div> 15514353296SMichael Große <div id="dokuwiki__content" class="page main-content"> 15614353296SMichael Große 15714353296SMichael Große <div id="spr__meta-box"></div> 15814353296SMichael Große 1599e150176SJana Deutschländer <?php if($ERROR): print $ERROR; ?> 1609e150176SJana Deutschländer <?php else: ?> 1619e150176SJana Deutschländer 1629e150176SJana Deutschländer <?php if($REV) echo p_locale_xhtml('showrev');?> 1639e150176SJana Deutschländer <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG))?></h1> 1649e150176SJana Deutschländer 16514353296SMichael Große 1669e150176SJana Deutschländer <?php tpl_img(900, 700); /* the image; parameters: maximum width, maximum height (and more) */ ?> 1679e150176SJana Deutschländer 1689e150176SJana Deutschländer <div class="img_detail"> 1699e150176SJana Deutschländer <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2> 1709e150176SJana Deutschländer 1719e150176SJana Deutschländer <?php if(function_exists('tpl_img_meta')): ?> 172f2a0ea7bSMichael Große <?php 173f2a0ea7bSMichael Große tpl_img_meta(); 174f2a0ea7bSMichael Große 175f2a0ea7bSMichael Große /** @var helper_plugin_spatialhelper_index $spatial */ 176f2a0ea7bSMichael Große $spatial = plugin_load('helper', 'spatialhelper_index'); 177f2a0ea7bSMichael Große if ($spatial && plugin_load('helper', 'geophp')) { 178f2a0ea7bSMichael Große global $IMG; 179f2a0ea7bSMichael Große $point = $spatial->getCoordsFromExif($IMG); 180f2a0ea7bSMichael Große if ($point) { 181f2a0ea7bSMichael Große $long = $point->getX(); 182f2a0ea7bSMichael Große $lat = $point->getY(); 183f2a0ea7bSMichael Große $latShort = round($lat,3); 184f2a0ea7bSMichael Große $longShort = round($long,3); 185f2a0ea7bSMichael Große 186f2a0ea7bSMichael Große $hrefOSM = "https://www.openstreetmap.org/?mlat=$lat&mlon=$long#map=18/$lat/$long"; 187f2a0ea7bSMichael 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; 188f2a0ea7bSMichael Große echo '<dl>'; 189f2a0ea7bSMichael Große echo '<dt title="Open Street Maps">OSM:</dt><dd>'; 190f2a0ea7bSMichael 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>'; 191f2a0ea7bSMichael Große echo '</dd>'; 192f2a0ea7bSMichael Große echo '</dl>'; 193f2a0ea7bSMichael Große } 194f2a0ea7bSMichael Große } 195f2a0ea7bSMichael Große ?> 1969e150176SJana Deutschländer <?php else: /* deprecated since Release 2014-05-05 */ ?> 1979e150176SJana Deutschländer <dl> 1989e150176SJana Deutschländer <?php 1999e150176SJana Deutschländer $config_files = getConfigFiles('mediameta'); 2009e150176SJana Deutschländer foreach ($config_files as $config_file) { 2019e150176SJana Deutschländer if(@file_exists($config_file)) { 2029e150176SJana Deutschländer include($config_file); 2039e150176SJana Deutschländer } 2049e150176SJana Deutschländer } 2059e150176SJana Deutschländer 2069e150176SJana Deutschländer foreach($fields as $key => $tag){ 2079e150176SJana Deutschländer $t = array(); 2089e150176SJana Deutschländer if (!empty($tag[0])) { 2099e150176SJana Deutschländer $t = array($tag[0]); 2109e150176SJana Deutschländer } 2119e150176SJana Deutschländer if(is_array($tag[3])) { 2129e150176SJana Deutschländer $t = array_merge($t,$tag[3]); 2139e150176SJana Deutschländer } 2149e150176SJana Deutschländer $value = tpl_img_getTag($t); 2159e150176SJana Deutschländer if ($value) { 2169e150176SJana Deutschländer echo '<dt>'.$lang[$tag[1]].':</dt><dd>'; 2179e150176SJana Deutschländer if ($tag[2] == 'date') { 2189e150176SJana Deutschländer echo dformat($value); 2199e150176SJana Deutschländer } else { 2209e150176SJana Deutschländer echo hsc($value); 2219e150176SJana Deutschländer } 2229e150176SJana Deutschländer echo '</dd>'; 2239e150176SJana Deutschländer } 2249e150176SJana Deutschländer } 2259e150176SJana Deutschländer ?> 2269e150176SJana Deutschländer </dl> 2279e150176SJana Deutschländer <?php endif; ?> 2289e150176SJana Deutschländer <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw')); ?> 2299e150176SJana Deutschländer </div> 2309e150176SJana Deutschländer <p class="back"> 2319e150176SJana Deutschländer <?php tpl_action('mediaManager', 1) ?><br /> 2329e150176SJana Deutschländer ← <?php tpl_action('img_backto', 1) ?> 2339e150176SJana Deutschländer </p> 2349e150176SJana Deutschländer 23514353296SMichael Große </div><!-- .main-content --> 23614353296SMichael Große </div><!-- .col --> 23714353296SMichael Große </div><!-- .row --> 23814353296SMichael Große </div><!-- .container --> 23914353296SMichael Große </div><!-- /.content --> 24014353296SMichael Große 24114353296SMichael Große 2429e150176SJana Deutschländer <?php endif; ?> 2439e150176SJana Deutschländer </div> 24414353296SMichael Große </div><!-- /wrapper --> 24514353296SMichael Große 24614353296SMichael Große 24714353296SMichael Große 24814353296SMichael Große <!-- ********** FOOTER ********** --> 24914353296SMichael Große 25014353296SMichael Große <div id="dokuwiki__footer"> 25114353296SMichael Große <div class="container"> 25214353296SMichael Große <div class="row"> 25314353296SMichael Große <div class="col-xs-12"> 25414353296SMichael Große 25514353296SMichael Große <div class="main-footer"> 25614353296SMichael Große <p> 25714353296SMichael Große <?php 25814353296SMichael Große 25914353296SMichael Große 26014353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 26114353296SMichael Große /* copyright */ 26214353296SMichael Große /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 26314353296SMichael Große tpl_license($img = false, $imgonly = false, $return = false, $wrap = false); 26414353296SMichael Große ?> 26514353296SMichael Große </p> 26614353296SMichael Große </div> 26714353296SMichael Große 26814353296SMichael Große </div> 26914353296SMichael Große </div> 27014353296SMichael Große </div> 27114353296SMichael Große </div><!-- /footer --> 27214353296SMichael Große 27314353296SMichael Große 27414353296SMichael Große <?php tpl_includeFile('footer.html') ?> 27514353296SMichael Große</div><!-- .dokuwiki__site --> 27614353296SMichael Große 27714353296SMichael Große<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 27814353296SMichael Große 2799e150176SJana Deutschländer</body> 2809e150176SJana Deutschländer</html> 281