3 <div id="content" class="widecolumn">
5 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
7 <div class="post" id="post-<?php the_ID(); ?>">
8 <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <?php the_title(); ?></h2>
10 <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
11 <div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div>
13 <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
15 <div class="navigation">
16 <div class="alignleft"><?php previous_image_link() ?></div>
17 <div class="alignright"><?php next_image_link() ?></div>
21 <p class="postmetadata alt">
23 This entry was posted on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
24 and is filed under <?php the_category(', ') ?>.
25 <?php the_taxonomies(); ?>
26 You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
28 <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
29 // Both Comments and Pings are open ?>
30 You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
32 <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
33 // Only Pings are Open ?>
34 Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
36 <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
37 // Comments are open, Pings are not ?>
38 You can skip to the end and leave a response. Pinging is currently not allowed.
40 <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
41 // Neither Comments, nor Pings are open ?>
42 Both comments and pings are currently closed.
44 <?php } edit_post_link('Edit this entry.','',''); ?>
53 <?php comments_template(); ?>
55 <?php endwhile; else: ?>
57 <p>Sorry, no attachments matched your criteria.</p>
63 <?php get_footer(); ?>