Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $m = get_post_meta($post->ID, '_wp_attachment_metadata' , true);
- ?>
- <h3>More <?php edit_post_link('(e)'); ?></h3>
- <table class="photo-tech" >
- <tr>
- <th width="100" valign="top">Gallery</th>
- <td><a href="<?php echo get_permalink($post->post_parent); ?>"><?php echo get_the_title($post->post_parent); ?></a></td>
- </tr>
- <tr valign="top">
- <th>Full Size</th>
- <td><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo $m['width'] . '×' . $m['height']; ?> pixels</a>, <?php echo size_format( filesize($m['file']) ); ?></td>
- </tr>
- <?php if ( $m['image_meta']['aperture'] ) { ?>
- <tr>
- <th width="100">Aperture</th>
- <td>f/<?php echo $m['image_meta']['aperture']; ?></td>
- </tr>
- <?php } ?>
- <?php if ( $m['image_meta']['focal_length'] ) { ?>
- <tr>
- <th>Focal Length</th>
- <td><?php echo $m['image_meta']['focal_length']; ?>mm</td>
- </tr>
- <?php } ?>
- <?php if ( $m['image_meta']['iso'] ) { ?>
- <tr>
- <th>ISO</th>
- <td><?php echo $m['image_meta']['iso']; ?></td>
- </tr>
- <?php } ?>
- <?php if ( $m['image_meta']['shutter_speed'] ) { ?>
- <tr>
- <th>Shutter</th>
- <td><?php
- $t = convert( $m['image_meta']['shutter_speed'] );
- echo $t[1] . '/' . $t[2] . ' sec';
- ?></td>
- </tr>
- <?php } ?>
- <?php if ( $m['image_meta']['camera'] ) { ?>
- <tr>
- <th>Camera</th>
- <td><?php echo $m['image_meta']['camera']; ?></td>
- </tr>
- <?php } ?>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement