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.

93 lines
3.5 KiB

14 years ago
14 years ago
14 years ago
14 years ago
  1. <?php
  2. /**
  3. * DokuWiki Image Detail Page
  4. *
  5. * @author Andreas Gohr <andi@splitbrain.org>
  6. * @author Anika Henke <anika@selfthinker.org>
  7. */
  8. // must be run from within DokuWiki
  9. if (!defined('DOKU_INC')) die();
  10. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  11. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  12. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
  13. lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>">
  14. <head>
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  16. <title>
  17. <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?>
  18. [<?php echo strip_tags($conf['title'])?>]
  19. </title>
  20. <?php tpl_metaheaders()?>
  21. <link rel="shortcut icon" href="<?php echo ml('favicon.ico') ?>" />
  22. </head>
  23. <body>
  24. <!--[if IE 6 ]><div id="IE6"><![endif]--><!--[if IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
  25. <div id="dokuwiki__detail" class="dokuwiki">
  26. <?php html_msgarea() ?>
  27. <?php if($ERROR){ print $ERROR; }else{ ?>
  28. <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1>
  29. <div class="content">
  30. <?php tpl_img(900,700) ?>
  31. <div class="img_detail">
  32. <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2>
  33. <dl>
  34. <?php
  35. $config_files = getConfigFiles('mediameta');
  36. foreach ($config_files as $config_file) {
  37. if(@file_exists($config_file)) {
  38. include($config_file);
  39. }
  40. }
  41. foreach($fields as $key => $tag){
  42. $t = array();
  43. if (!empty($tag[0])) {
  44. $t = array($tag[0]);
  45. }
  46. if(is_array($tag[3])) {
  47. $t = array_merge($t,$tag[3]);
  48. }
  49. $value = tpl_img_getTag($t);
  50. if ($value) {
  51. echo '<dt>'.$lang[$tag[1]].':</dt><dd>';
  52. if ($tag[2] == 'date') {
  53. echo dformat($value);
  54. } else {
  55. echo hsc($value);
  56. }
  57. echo '</dd>';
  58. }
  59. }
  60. ?>
  61. </dl>
  62. <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
  63. </div>
  64. <div class="clearer"></div>
  65. </div><!-- /.content -->
  66. <p class="back">
  67. <?php
  68. $imgNS = getNS($IMG);
  69. $authNS = auth_quickaclcheck("$imgNS:*");
  70. if ($authNS >= AUTH_UPLOAD) {
  71. $mmURL = media_managerURL(array('ns' => $imgNS, 'image' => $IMG));
  72. echo '<a href="'.$mmURL.'">'.$lang['img_manager'].'</a><br />';
  73. }
  74. ?>
  75. &larr; <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?>
  76. </p>
  77. <?php } ?>
  78. </div>
  79. <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]-->
  80. </body>
  81. </html>