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.

81 lines
3.3 KiB

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. $t = tpl_img_getTag('Date.EarliestTime');
  36. if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.dformat($t).'</dd>';
  37. $t = tpl_img_getTag('File.Name');
  38. if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>';
  39. $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit'));
  40. if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>';
  41. $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright'));
  42. if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>';
  43. $t = tpl_img_getTag('File.Format');
  44. if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>';
  45. $t = tpl_img_getTag('File.NiceSize');
  46. if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>';
  47. $t = tpl_img_getTag('Simple.Camera');
  48. if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>';
  49. $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category','xmp.dc:subject'));
  50. if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>';
  51. ?>
  52. </dl>
  53. <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
  54. </div>
  55. <div class="clearer"></div>
  56. </div><!-- /.content -->
  57. <p class="back">&larr; <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p>
  58. <?php } ?>
  59. </div>
  60. <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]-->
  61. </body>
  62. </html>