storefront/single.php

32 lines
630 B
PHP
Raw Normal View History

2014-08-17 16:55:38 +01:00
<?php
/**
* The template for displaying all single posts.
*
* @package storefront
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php while ( have_posts() ) : the_post();
2014-08-17 16:55:38 +01:00
2014-08-18 13:23:00 +01:00
do_action( 'storefront_single_post_before' );
2014-08-17 16:55:38 +01:00
2014-08-18 13:23:00 +01:00
get_template_part( 'content', 'single' );
2014-08-17 16:55:38 +01:00
2014-08-18 13:23:00 +01:00
/**
* @hooked storefront_post_nav - 10
* @hooked storefront_display_comments - 20
2014-08-18 13:23:00 +01:00
*/
do_action( 'storefront_single_post_after' );
2014-08-17 16:55:38 +01:00
endwhile; // end of the loop. ?>
2014-08-17 16:55:38 +01:00
</main><!-- #main -->
</div><!-- #primary -->
<?php
do_action( 'storefront_sidebar' );
get_footer();