forked from codemonkey-jack/shoestrap-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
30 lines (22 loc) · 872 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
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();