Created
August 5, 2014 13:49
-
-
Save fovoc/a74d2173b4cf4208ac7d 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 | |
/* | |
Template Name: Blog small | |
*/ | |
// We should set what we're quering for... | |
// http://codex.wordpress.org/Function_Reference/query_posts | |
query_posts('post_type=post&post_status=publish&paged='. get_query_var('paged')); | |
// Below is just a duplicate of index.php file | |
echo apply_filters( 'shoestrap_title_section', '<header><title>' . shoestrap_title() . '</title><h1 class="entry-title">' . shoestrap_title() . '</h1></header>' ); | |
do_action( 'shoestrap_index_begin' ); | |
if ( ! have_posts() ) { | |
echo '<div class="alert alert-warning">' . __( 'Sorry, no results were found.', 'shoestrap' ) . '</div>'; | |
get_search_form(); | |
} | |
if ( ! has_action( 'shoestrap_override_index_loop' ) ) { | |
while ( have_posts() ) : the_post(); | |
do_action( 'shoestrap_in_loop_start' ); | |
if ( ! has_action( 'shoestrap_content_override' ) ) { | |
ss_get_template_part( 'templates/content', get_post_format() ); | |
} else { | |
do_action( 'shoestrap_content_override' ); | |
} | |
do_action( 'shoestrap_in_loop_end' ); | |
endwhile; | |
} else { | |
do_action( 'shoestrap_override_index_loop' ); | |
} | |
do_action( 'shoestrap_index_end' ); | |
echo shoestrap_pagination_toggler(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment