Last active
August 29, 2015 14:04
-
-
Save fovoc/9042d26e3ad13dce5939 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 blog_small_content() { | |
global $ss_framework; | |
echo '<article '; post_class(); echo '>'; | |
do_action( 'shoestrap_in_article_top' ); | |
echo '<div class="entry-summary">'; | |
echo apply_filters( 'shoestrap_do_the_excerpt', get_the_excerpt() ); | |
echo $ss_framework->clearfix(); | |
echo '</div>'; | |
do_action( 'shoestrap_in_article_bottom' ); | |
echo '</article>'; | |
} | |
function initiate_blog_small() { | |
// Our page slug is "blog-small" | |
if ( is_page('blog-small') ) { | |
add_action( 'shoestrap_content_override', 'blog_small_content' ); | |
} | |
} | |
add_action( 'wp', 'initiate_blog_small' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment