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.

87 lines
3.5 KiB

14 years ago
  1. <?php
  2. /**
  3. * DokuWiki Image Detail Template
  4. *
  5. * This is the template for displaying image details
  6. *
  7. * You should leave the doctype at the very top - It should
  8. * always be the very first line of a document.
  9. *
  10. * @link http://dokuwiki.org/templates
  11. * @author Andreas Gohr <andi@splitbrain.org>
  12. * @author Anika Henke <anika@selfthinker.org>
  13. */
  14. // must be run from within DokuWiki
  15. if (!defined('DOKU_INC')) die();
  16. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  17. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  18. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
  19. lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>">
  20. <head>
  21. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  22. <title>
  23. <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?>
  24. [<?php echo strip_tags($conf['title'])?>]
  25. </title>
  26. <?php tpl_metaheaders()?>
  27. <link rel="shortcut icon" href="<?php echo ml('favicon.ico') ?>" />
  28. </head>
  29. <body>
  30. <!--[if IE 6 ]><div id="IE6"><![endif]--><!--[if IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
  31. <div id="dokuwiki__detail" class="dokuwiki">
  32. <?php html_msgarea() ?>
  33. <?php if($ERROR){ print $ERROR; }else{ ?>
  34. <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1>
  35. <div class="content">
  36. <?php tpl_img(900,700) ?>
  37. <div class="img_detail">
  38. <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2>
  39. <dl>
  40. <?php
  41. $t = tpl_img_getTag('Date.EarliestTime');
  42. if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.dformat($t).'</dd>';
  43. $t = tpl_img_getTag('File.Name');
  44. if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>';
  45. $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit'));
  46. if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>';
  47. $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright'));
  48. if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>';
  49. $t = tpl_img_getTag('File.Format');
  50. if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>';
  51. $t = tpl_img_getTag('File.NiceSize');
  52. if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>';
  53. $t = tpl_img_getTag('Simple.Camera');
  54. if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>';
  55. $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category','xmp.dc:subject'));
  56. if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>';
  57. ?>
  58. </dl>
  59. <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
  60. </div>
  61. <div class="clearer"></div>
  62. </div><!-- /.content -->
  63. <p class="back">&larr; <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p>
  64. <?php } ?>
  65. </div>
  66. <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]-->
  67. </body>
  68. </html>