<?php /* Template Name: Content / Sidebar */ ?><?php get_header(); ?> <div id="container"> <section id="content" class="column twothirdcol"> <?php if( have_posts() ) : the_post(); ?> <article <?php post_class(); ?> id="post-<?php the_ID(); ?>"> <div class="entry"> <header class="entry-header"> <h1 class="entry-title"><?php the_title(); ?></h1> </header><!-- .entry-header --> <div class="entry-content"> <?php the_content(); ?> <div class="clear"></div> </div><!-- .entry-content --> <?php wp_link_pages( array( 'before' => '<footer class="entry-utility"><p class="post-pagination">' . __( 'Pages:', 'pinboard' ), 'after' => '</p></footer><!-- .entry-utility -->' ) ); ?> </div><!-- .entry --> <?php comments_template(); ?> </article><!-- .post --> <?php else : ?> <?php pinboard_404(); ?> <?php endif; ?> </section><!-- #content --> <?php get_sidebar(); ?> <div class="clear"></div> </div><!-- #container --> <?php get_footer(); ?>
?> <?php get_template_part('content', get_post_format()); ?> <?php } ?> </div><!-- .entries --> <?php pinboard_posts_nav(); ?> <?php } else { ?> <?php pinboard_404(); ?> <?php } ?> <?php wp_reset_postdata(); ?> <?php $wp_query = $wp_the_query; ?> </section><!-- #content --> <?php get_sidebar(); ?> <div class="clear"></div>