Skip to content

Instantly share code, notes, and snippets.

@fovoc
Created December 6, 2013 14:26
Show Gist options
  • Save fovoc/7825573 to your computer and use it in GitHub Desktop.
Save fovoc/7825573 to your computer and use it in GitHub Desktop.
<?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