Created
December 6, 2013 14:26
-
-
Save fovoc/7825573 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function custom_content() { | |
while (have_posts()) : the_post(); ?> | |
<article <?php post_class(); ?>> | |
<?php do_action( 'shoestrap_in_article_top' ); ?> | |
<header> | |
<h1 class="entry-title"><?php the_title(); ?></h1> | |
</header> | |
<div class="entry-content"> | |
<?php do_action( 'shoestrap_single_pre_content' ); ?> | |
<?php the_content(); ?> | |
<div class="clearfix"></div> | |
<?php do_action( 'shoestrap_entry_meta_override' ); ?> | |
<?php do_action( 'shoestrap_single_after_content' ); ?> | |
</div> | |
<footer> | |
<?php wp_link_pages(array('before' => '<nav class="page-nav"><p>' . __('Pages:', 'roots'), 'after' => '</p></nav>')); ?> | |
</footer> | |
<?php | |
// The comments section loaded when appropriate | |
if ( post_type_supports( 'post', 'comments' ) ): | |
do_action( 'shoestrap_pre_comments' ); | |
if ( !has_action( 'shoestrap_comments_override' ) ) | |
comments_template('/templates/comments.php'); | |
else | |
do_action( 'shoestrap_comments_override' ); | |
do_action( 'shoestrap_after_comments' ); | |
endif; | |
?> | |
<?php do_action( 'shoestrap_in_article_bottom' ); ?> | |
</article> | |
<?php endwhile; | |
} | |
add_action ( 'shoestrap_content_single_override', 'custom_content' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment