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.
 
 
 
 
 

96 lines
3.8 KiB

  1. <?php
  2. /**
  3. * DokuWiki Image Detail Page
  4. *
  5. * @author Andreas Gohr <andi@splitbrain.org>
  6. * @author Anika Henke <anika@selfthinker.org>
  7. * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
  8. */
  9. // must be run from within DokuWiki
  10. if (!defined('DOKU_INC')) die();
  11. @require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
  12. header('X-UA-Compatible: IE=edge,chrome=1');
  13. ?><!DOCTYPE html>
  14. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
  15. lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
  16. <head>
  17. <meta charset="UTF-8" />
  18. <title>
  19. <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?>
  20. [<?php echo strip_tags($conf['title'])?>]
  21. </title>
  22. <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
  23. <?php tpl_metaheaders()?>
  24. <meta name="viewport" content="width=device-width,initial-scale=1" />
  25. <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
  26. <?php tpl_includeFile('meta.html') ?>
  27. </head>
  28. <body>
  29. <!--[if lte IE 8 ]><div id="IE8"><![endif]-->
  30. <div id="dokuwiki__detail" class="<?php echo tpl_classes(); ?>">
  31. <?php html_msgarea() ?>
  32. <?php if($ERROR): print $ERROR; ?>
  33. <?php else: ?>
  34. <?php if($REV) echo p_locale_xhtml('showrev');?>
  35. <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG))?></h1>
  36. <div class="content group">
  37. <?php tpl_img(900, 700); /* the image; parameters: maximum width, maximum height (and more) */ ?>
  38. <div class="img_detail">
  39. <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2>
  40. <?php if(function_exists('tpl_img_meta')): ?>
  41. <?php tpl_img_meta(); ?>
  42. <?php else: /* deprecated since Release 2014-05-05 */ ?>
  43. <dl>
  44. <?php
  45. $config_files = getConfigFiles('mediameta');
  46. foreach ($config_files as $config_file) {
  47. if(@file_exists($config_file)) {
  48. include($config_file);
  49. }
  50. }
  51. foreach($fields as $key => $tag){
  52. $t = array();
  53. if (!empty($tag[0])) {
  54. $t = array($tag[0]);
  55. }
  56. if(is_array($tag[3])) {
  57. $t = array_merge($t,$tag[3]);
  58. }
  59. $value = tpl_img_getTag($t);
  60. if ($value) {
  61. echo '<dt>'.$lang[$tag[1]].':</dt><dd>';
  62. if ($tag[2] == 'date') {
  63. echo dformat($value);
  64. } else {
  65. echo hsc($value);
  66. }
  67. echo '</dd>';
  68. }
  69. }
  70. ?>
  71. </dl>
  72. <?php endif; ?>
  73. <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw')); ?>
  74. </div>
  75. </div><!-- /.content -->
  76. <p class="back">
  77. <?php tpl_action('mediaManager', 1) ?><br />
  78. &larr; <?php tpl_action('img_backto', 1) ?>
  79. </p>
  80. <?php endif; ?>
  81. </div>
  82. <!--[if lte IE 8 ]></div><![endif]-->
  83. </body>
  84. </html>