Find file
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (40 sloc) 1.44 KB
* This is the default template for all image attachments in Basis
get_header(); ?>
<div id="content" class="clearfix">
<div id="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1 class="h2">
<a href="<?php echo get_permalink($post->post_parent); ?>" rel="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <?php the_title(); ?>
<section class="post_content">
<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 &raquo;</p>'); ?>
<nav class="prev-next-links clearfix">
<li><?php previous_image_link() ?></li>
<li><?php next_image_link() ?></li>
<?php endwhile; else: ?>
<div class="help">
<p>Sorry, no attachments matched your criteria.</p>
<?php endif; ?>
</div> <!-- end #main -->
<?php get_sidebar(); // sidebar 1 ?>
</div> <!-- end #content -->
<?php get_footer(); ?>