forked from roots/sage
-
Notifications
You must be signed in to change notification settings - Fork 102
/
index.php
32 lines (24 loc) · 790 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
31
32
<header>
<h1 class="entry-title"><?php echo shoestrap_title(); ?></h1>
</header>
<?php
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();