Advertisement
Guest User

Untitled

a guest
May 8th, 2008
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.35 KB | None | 0 0
  1. <?php
  2. $m = get_post_meta($post->ID, '_wp_attachment_metadata' , true);
  3. ?>
  4.  
  5. <h3>More <?php edit_post_link('(e)'); ?></h3>
  6.  
  7. <table class="photo-tech" >
  8.  
  9. <tr>
  10. <th width="100" valign="top">Gallery</th>
  11. <td><a href="<?php echo get_permalink($post->post_parent); ?>"><?php echo get_the_title($post->post_parent); ?></a></td>
  12. </tr>
  13.  
  14. <tr valign="top">
  15. <th>Full Size</th>
  16. <td><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo $m['width'] . '&#215;' . $m['height']; ?> pixels</a>, <?php echo size_format( filesize($m['file']) ); ?></td>
  17. </tr>
  18.  
  19. <?php if ( $m['image_meta']['aperture'] ) { ?>
  20. <tr>
  21. <th width="100">Aperture</th>
  22. <td>f/<?php echo $m['image_meta']['aperture']; ?></td>
  23. </tr>
  24. <?php } ?>
  25.  
  26. <?php if ( $m['image_meta']['focal_length'] ) { ?>
  27. <tr>
  28. <th>Focal Length</th>
  29. <td><?php echo $m['image_meta']['focal_length']; ?>mm</td>
  30. </tr>
  31. <?php } ?>
  32.  
  33. <?php if ( $m['image_meta']['iso'] ) { ?>
  34. <tr>
  35. <th>ISO</th>
  36. <td><?php echo $m['image_meta']['iso']; ?></td>
  37. </tr>
  38. <?php } ?>
  39.  
  40. <?php if ( $m['image_meta']['shutter_speed'] ) { ?>
  41. <tr>
  42. <th>Shutter</th>
  43. <td><?php
  44. $t = convert( $m['image_meta']['shutter_speed'] );
  45. echo $t[1] . '/' . $t[2] . ' sec';
  46. ?></td>
  47. </tr>
  48. <?php } ?>
  49.  
  50. <?php if ( $m['image_meta']['camera'] ) { ?>
  51. <tr>
  52. <th>Camera</th>
  53. <td><?php echo $m['image_meta']['camera']; ?></td>
  54. </tr>
  55. <?php } ?>
  56.  
  57. </table>
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement