You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

406 lines
17 KiB

  1. <?php
  2. /**
  3. * DokuWiki sprintDoc Detail Template
  4. *
  5. * @link FIXME
  6. * @author Jana Deutschlaender <deutschlaender@cosmocode.de>
  7. * @author Michael Grosse <grosse@cosmocode.de>
  8. * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
  9. */
  10. use dokuwiki\template\sprintdoc\Template;
  11. if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
  12. header('X-UA-Compatible: IE=edge,chrome=1');
  13. global $JSINFO;
  14. if (empty($JSINFO['template'])) {
  15. $JSINFO['template'] = array();
  16. }
  17. $JSINFO['template']['sprintdoc'] = array('sidebar_toggle_elements' => tpl_getConf('sidebar_sections'));
  18. $showTools = true;
  19. $showSidebar = true;
  20. ?>
  21. <!DOCTYPE html>
  22. <html class="edge no-js" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>">
  23. <head>
  24. <?php
  25. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  26. /* meta and link relations */
  27. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  28. ?>
  29. <meta charset="utf-8" />
  30. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  31. <?php tpl_metaheaders() ?>
  32. <?php
  33. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  34. /* page title */
  35. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  36. ?>
  37. <title><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG)) ?> [<?php echo strip_tags($conf['title']) ?>]</title>
  38. <script type="text/javascript">(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
  39. <?php
  40. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  41. /* favicons */
  42. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  43. ?>
  44. <?php
  45. include('tpl/favicon_tiles.php');
  46. ?>
  47. <?php
  48. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  49. /* Include Hook: meta.html */
  50. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  51. ?>
  52. <?php tpl_includeFile('meta.html') ?>
  53. </head>
  54. <body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> wide-content showSidebar <?php echo tpl_getConf('header_layout'); ?>">
  55. <div id="dokuwiki__site">
  56. <?php
  57. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  58. /* template Include: tpl/nav-direct */
  59. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  60. ?>
  61. <?php include('tpl/nav-direct.php') ?>
  62. <div class="page-wrapper <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
  63. <?php
  64. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  65. /* Include Hook: header.html */
  66. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  67. tpl_includeFile('header.html');
  68. ?>
  69. <div id="dokuwiki__header" class="header no-print">
  70. <div class="container">
  71. <div class="row">
  72. <div class="col-xs-12">
  73. <div class="claim main-sidebar">
  74. <div class="menu-togglelink mobile-only">
  75. <a href="#">
  76. <span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle'); ?></span>
  77. </a>
  78. </div>
  79. <?php
  80. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  81. /* Logo */
  82. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  83. /* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */
  84. include('tpl/main-sidebar-logo.php');
  85. ?>
  86. <div class="main-title">
  87. <?php if ($conf['title']):
  88. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  89. /* Wiki Title Mobile */
  90. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
  91. <p class="title mobile-only"><?php echo $conf['title'] ?></p>
  92. <?php endif ?>
  93. </div><!-- .main-title -->
  94. <div class="menu-tool-select">
  95. <h5 class="sr-only" role="heading" aria-level="2"><?php echo tpl_getLang('head_menu_tool-select') ?></h5>
  96. <?php tpl_actiondropdown($lang['tools'], "test"); ?>
  97. </div><!-- .menu-tool-select -->
  98. </div><!-- .headings -->
  99. </div><!-- .col -->
  100. <div class="col-xs-12">
  101. <div class="main-title desktop-only">
  102. <?php if ($conf['title']):
  103. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  104. /* Wiki Title Desktop */
  105. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
  106. <p class="title"><?php echo $conf['title'] ?></p>
  107. <?php endif ?>
  108. <?php if ($conf['tagline']):
  109. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  110. /* Wiki Tagline Desktop */
  111. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?>
  112. <p class="claim"><?php echo $conf['tagline'] ?></p>
  113. <?php endif ?>
  114. </div><!-- .main-title -->
  115. </div><!-- .col -->
  116. </div><!-- .row -->
  117. </div><!-- .container -->
  118. </div><!-- .header -->
  119. <?php
  120. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  121. /* headline menu area (Accessibility ) */
  122. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  123. ?>
  124. <div class="sr-only nav-area-head">
  125. <h5 class="sr-only" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5>
  126. </div><!-- .nav-area-head -->
  127. <div class="tools">
  128. <div class="container">
  129. <div class="row">
  130. <div class="col-xs-12">
  131. <div class="search main-sidebar">
  132. <?php
  133. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  134. /* search form */
  135. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  136. include('tpl/main-sidebar-search.php');
  137. ?>
  138. </div><!-- .search -->
  139. <div class="sidebarheader main-sidebar">
  140. <?php
  141. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  142. /* Include Hook: sidebarheader.html */
  143. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  144. tpl_includeFile('sidebarheader.html')
  145. ?>
  146. </div><!-- .sidebarheader -->
  147. <div id="dokuwiki__aside">
  148. <?php
  149. echo Template::getInstance()->getInclude(
  150. 'sidebarheader',
  151. '<div class="sidebarheader">',
  152. '<div class="clearer"></div></div>'
  153. );
  154. ?>
  155. <?php
  156. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  157. /* sidebar */
  158. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  159. include('tpl/main-sidebar-nav.php');
  160. ?>
  161. <?php
  162. echo Template::getInstance()->getInclude(
  163. 'sidebarfooter',
  164. '<div class="sidebarfooter">',
  165. '<div class="clearer"></div></div>'
  166. );
  167. ?>
  168. </div><!-- .aside -->
  169. </div><!-- .col -->
  170. </div><!-- .row -->
  171. </div><!-- .container -->
  172. </div><!-- .tools -->
  173. <div class="top-header">
  174. <div class="container">
  175. <div class="row">
  176. <div class="col-xs-12">
  177. <?php
  178. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  179. /* User Tools but no MagicMatcher Bar */
  180. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  181. $showTools = true;
  182. include('tpl/nav-usertools-buttons.php');
  183. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  184. /* Include Hook: header.html */
  185. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  186. tpl_includeFile('header.html');
  187. ?>
  188. </div><!-- .col -->
  189. </div><!-- .row -->
  190. </div><!-- .container -->
  191. </div><!-- /top-header -->
  192. <div id="dokuwiki__detail">
  193. <?php tpl_flush(); /* flush the output buffer */ ?>
  194. <div class="content group">
  195. <div class="container">
  196. <div class="row">
  197. <div class="col-xs-12">
  198. <div class="breadcrumbs" data-do="<?php echo tpl_getLang('image_detail') ?>">
  199. <div class="togglelink page_main-content">
  200. <a id="spr__toggle-content" href="#"><span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle') ?></span></a>
  201. </div>
  202. <h6 class="sr-only" role="heading" aria-level="2"><?php echo tpl_getLang('head_menu_status') ?></h6>
  203. <?php
  204. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  205. /* breadcrumb */
  206. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  207. include('tpl/nav-breadcrumb.php');
  208. ?>
  209. <h6 class="sr-only" role="heading" aria-level="2"><?php echo $lang['page_tools'] ?></h6>
  210. <?php
  211. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  212. /* page tools */
  213. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  214. ?>
  215. <nav id="dokuwiki__pagetools">
  216. <div class="tools">
  217. <ul>
  218. <?php
  219. echo '<li>' . dokuwiki\template\sprintdoc\tpl::pageToolAction('mediaManager') . '</li>';
  220. echo '<li>' . dokuwiki\template\sprintdoc\tpl::pageToolAction('img_backto') . '</li>';
  221. ?>
  222. </ul>
  223. </div>
  224. </nav>
  225. </div>
  226. <div id="dokuwiki__content" class="page main-content">
  227. <div id="spr__meta-box"></div>
  228. <div class="msg-area"><?php html_msgarea();/*msg('Information.', 0);msg('Success', 1);msg('Notification', 2);msg('Fehler', -1);*/ ?></div>
  229. <?php if ($ERROR): print $ERROR; ?>
  230. <?php else: ?>
  231. <?php if ($REV) {
  232. echo p_locale_xhtml('showrev');
  233. } ?>
  234. <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG)) ?></h1>
  235. <?php
  236. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  237. /* image */
  238. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  239. ?>
  240. <div class="img-link">
  241. <?php tpl_img(900, 700); /* the image; parameters: maximum width, maximum height (and more) */ ?>
  242. </div>
  243. <?php
  244. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  245. /* meta data of image */
  246. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  247. ?>
  248. <div class="img_detail">
  249. <?php
  250. $simple_title = hsc(tpl_img_getTag('simple.title'));
  251. if(strlen($simple_title) > 0) {
  252. ?>
  253. <h4><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h4>
  254. <?php
  255. } else {
  256. echo '<h4>' . tpl_getLang('meta_data') . '</h4>';
  257. }
  258. ?>
  259. <?php
  260. tpl_img_meta();
  261. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  262. /* open street maps if geo data is available */
  263. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  264. /** @var \helper_plugin_spatialhelper_index $spatial */
  265. $spatial = plugin_load('helper', 'spatialhelper_index');
  266. if ($spatial && plugin_load('helper', 'geophp')) {
  267. global $IMG;
  268. $point = $spatial->getCoordsFromExif($IMG);
  269. if ($point) {
  270. $long = $point->getX();
  271. $lat = $point->getY();
  272. $latShort = round($lat, 3);
  273. $longShort = round($long, 3);
  274. $hrefOSM = "https://www.openstreetmap.org/?mlat=$lat&mlon=$long#map=18/$lat/$long";
  275. $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;
  276. echo '<div class="os-map">';
  277. echo '<h4 lang="en">OSM (Open Street Maps):</h4>';
  278. echo '<iframe width="100%" height="350" frameborder="0" src="' . $srcOSM . '"></iframe><br/><p><a class="button" target="_blank" title="' . tpl_getLang('osm_zoom_link_title') . '" href="' . $hrefOSM . '">' . tpl_getLang('osm_zoom_link_text') . '</a></p>';
  279. echo '</div>';
  280. }
  281. }
  282. ?>
  283. <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw')); ?>
  284. </div>
  285. </div><!-- .main-content -->
  286. </div><!-- .col -->
  287. </div><!-- .row -->
  288. </div><!-- .container -->
  289. </div><!-- /.content -->
  290. <?php endif; ?>
  291. </div>
  292. </div><!-- /wrapper -->
  293. <!-- ********** FOOTER ********** -->
  294. <div id="dokuwiki__footer">
  295. <div class="container">
  296. <div class="row">
  297. <div class="col-xs-12">
  298. <div class="main-footer">
  299. <?php include 'tpl/main-footer.php'; ?>
  300. </div>
  301. </div>
  302. </div>
  303. </div>
  304. </div><!-- /footer -->
  305. <?php tpl_includeFile('footer.html') ?>
  306. </div><!-- .dokuwiki__site -->
  307. <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
  308. </body>
  309. </html>