<?php /** * The Template for displaying all single posts. * * @package The Columnist * @since The Columnist 1.0 */ get_header(); ?> <div id="primary" class="site-content"> <?php while ( have_posts() ) : the_post(); ?> <div id="left-col"> <header id="masthead" class="site-header" role="banner"> <a class="thumbnail" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <?php $header_image = get_header_image(); ?> <?php if ( ! empty( $header_image ) ) : ?> <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /> <?php endif; ?> </a> <hgroup class="single-title"> <h1><?php the_title(); ?></h1> <div class="single-description entry-meta"> <?php the_columnist_posted_on(); ?> </div><!-- .entry-meta --> <?php if ( ! empty( $post->post_excerpt ) ) the_excerpt(); ?> </hgroup><!-- end .single-title --> </header> </div> <div id="content" role="main"> <?php get_template_part( 'content', 'single' ); ?> <?php // If comments are open or we have at least one comment, load up the comment template if ( comments_open() || '0' != get_comments_number() ) comments_template( '', true ); ?> <?php the_columnist_content_nav( 'nav-below' ); ?> <?php get_sidebar(); ?> </div><!-- #content --> <?php endwhile; // end of the loop. ?> </div><!-- #primary .site-content --> <?php get_footer(); ?>