Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (19 sloc) 1.275 kb
<?php get_header(); // Loads the header.php template. ?>
<main <?php hybrid_attr( 'content' ); ?>>
<?php if ( !is_front_page() && !is_singular() && !is_404() ) : // If viewing a multi-post page ?>
<?php locate_template( array( 'misc/loop-meta.php' ), true ); // Loads the misc/loop-meta.php template. ?>
<?php endif; // End check for multi-post page. ?>
<?php if ( have_posts() ) : // Checks if any posts were found. ?>
<?php while ( have_posts() ) : // Begins the loop through found posts. ?>
<?php the_post(); // Loads the post data. ?>
<?php hybrid_get_content_template(); // Loads the content/*.php template. ?>
<?php if ( is_singular() ) : // If viewing a single post/page/CPT. ?>
<?php comments_template( '', true ); // Loads the comments.php template. ?>
<?php endif; // End check for single post. ?>
<?php endwhile; // End found posts loop. ?>
<?php locate_template( array( 'misc/loop-nav.php' ), true ); // Loads the misc/loop-nav.php template. ?>
<?php else : // If no posts were found. ?>
<?php locate_template( array( 'content/error.php' ), true ); // Loads the content/error.php template. ?>
<?php endif; // End check for posts. ?>
</main><!-- #content -->
<?php get_footer(); // Loads the footer.php template. ?>
Jump to Line
Something went wrong with that request. Please try again.