Created
July 28, 2014 09:50
-
-
Save fovoc/47b3a2eca69727fcc84e to your computer and use it in GitHub Desktop.
Shoestrap 3 - My custom content override
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 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