| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php get_header(); ?>
- <div id="content" class="clearfix">
-
- <div id="main" class="clearfix">
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
-
- <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
-
- <header>
- <h1 class="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>
- </header>
-
- <section class="post_content clearfix">
- <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
- <p class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></p>
- <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
- </section>
-
- <footer>
- <nav class="prev-next-links">
- <ul class="clearfix">
- <li><?php previous_image_link() ?></li>
- <li><?php next_image_link() ?></li>
- </ul>
- </nav>
- </footer>
- </article>
-
- <?php endwhile; else: ?>
-
- <div class="help">
- <p>Sorry, no attachments matched your criteria.</p>
- </div>
- <?php endif; ?>
- </div> <!-- end #main -->
-
- <?php get_sidebar(); // sidebar 1 ?>
-
- </div> <!-- end #content -->
- <?php get_footer(); ?>
|