Skip to content

Instantly share code, notes, and snippets.

@fovoc
Created July 28, 2014 09:50
Show Gist options
  • Save fovoc/47b3a2eca69727fcc84e to your computer and use it in GitHub Desktop.
Save fovoc/47b3a2eca69727fcc84e to your computer and use it in GitHub Desktop.
Shoestrap 3 - My custom content override
<?php
function my_shoestrap_content_override() {
global $ss_framework;
echo '<article '; post_class(); echo '>';
do_action( 'shoestrap_in_article_top' );
shoestrap_title_section( true, 'h2', false );
if ( has_action( 'shoestrap_entry_meta_override' ) ) {
do_action( 'shoestrap_entry_meta_override' );
} else {
do_action( 'shoestrap_entry_meta' );
}
echo '<div class="entry-summary">';
echo apply_filters( 'shoestrap_do_the_excerpt', get_the_excerpt() );
echo $ss_framework->clearfix();
echo '</div>';
if ( has_action( 'shoestrap_entry_footer' ) ) {
echo '<footer class="entry-footer">';
do_action( 'shoestrap_entry_footer' );
echo '</footer>';
}
do_action( 'shoestrap_in_article_bottom' );
echo '</article>';
}
add_action( 'shoestrap_content_override', 'my_shoestrap_content_override' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment