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.
 
 
 
 
 

100 lines
3.1 KiB

  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://wiki.splitbrain.org/wiki:tpl:templates
  11. * @author Andreas Gohr <andi@splitbrain.org>
  12. */
  13. // must be run from within DokuWiki
  14. if (!defined('DOKU_INC')) die();
  15. ?>
  16. <?php
  17. /**
  18. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  19. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  20. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr">
  21. */
  22. ?>
  23. <!DOCTYPE html>
  24. <html lang="<?php echo $conf['lang']?>" dir="ltr">
  25. <head>
  26. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  27. <title>
  28. <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?> · <?php echo strip_tags($conf['title'])?>
  29. </title>
  30. <?php tpl_metaheaders()?>
  31. <link rel="shortcut icon" href="<?php echo tpl_basedir()?>images/favicon.ico" />
  32. </head>
  33. <body>
  34. <div class="dokuwiki" id="image__detail">
  35. <?php html_msgarea()?>
  36. <div class="page">
  37. <?php if($ERROR){ print $ERROR; }else{ ?>
  38. <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1>
  39. <div class="img_big">
  40. <?php tpl_img(900,700) ?>
  41. </div>
  42. <div class="img_detail">
  43. <p class="img_caption">
  44. <?php print nl2br(hsc(tpl_img_getTag(array('IPTC.Caption',
  45. 'EXIF.UserComment',
  46. 'EXIF.TIFFImageDescription',
  47. 'EXIF.TIFFUserComment')))); ?>
  48. </p>
  49. <p>&larr; <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p>
  50. <dl class="img_tags">
  51. <?php
  52. $t = tpl_img_getTag('Date.EarliestTime');
  53. if($t) print '<dt>'.$lang['img_date'].':</dt><dd>'.date($conf['dformat'],$t).'</dd>';
  54. $t = tpl_img_getTag('File.Name');
  55. if($t) print '<dt>'.$lang['img_fname'].':</dt><dd>'.hsc($t).'</dd>';
  56. $t = tpl_img_getTag(array('Iptc.Byline','Exif.TIFFArtist','Exif.Artist','Iptc.Credit'));
  57. if($t) print '<dt>'.$lang['img_artist'].':</dt><dd>'.hsc($t).'</dd>';
  58. $t = tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright'));
  59. if($t) print '<dt>'.$lang['img_copyr'].':</dt><dd>'.hsc($t).'</dd>';
  60. $t = tpl_img_getTag('File.Format');
  61. if($t) print '<dt>'.$lang['img_format'].':</dt><dd>'.hsc($t).'</dd>';
  62. $t = tpl_img_getTag('File.NiceSize');
  63. if($t) print '<dt>'.$lang['img_fsize'].':</dt><dd>'.hsc($t).'</dd>';
  64. $t = tpl_img_getTag('Simple.Camera');
  65. if($t) print '<dt>'.$lang['img_camera'].':</dt><dd>'.hsc($t).'</dd>';
  66. $t = tpl_img_getTag(array('IPTC.Keywords','IPTC.Category'));
  67. if($t) print '<dt>'.$lang['img_keywords'].':</dt><dd>'.hsc($t).'</dd>';
  68. ?>
  69. </dl>
  70. <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
  71. </div>
  72. <div class="clearer"></div>
  73. <?php } ?>
  74. </div>
  75. </div>
  76. </body>
  77. </html>