-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
30 lines (22 loc) · 898 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( 'smallermobs_title_section', '<header><title>' . smallermobs_title() . '</title><h1 class="entry-title">' . smallermobs_title() . '</h1></header>' );
do_action( 'smallermobs_index_begin' );
if ( ! have_posts() ) {
echo '<div class="alert alert-warning">' . __( 'Sorry, no results were found.', 'smallermobs' ) . '</div>';
get_search_form();
}
if ( ! has_action( 'smallermobs_override_index_loop' ) ) {
while ( have_posts() ) : the_post();
do_action( 'smallermobs_in_loop_start' );
if ( ! has_action( 'smallermobs_content_override' ) ) {
ss_get_template_part( 'templates/content', get_post_format() );
} else {
do_action( 'smallermobs_content_override' );
}
do_action( 'smallermobs_in_loop_end' );
endwhile;
} else {
do_action( 'smallermobs_override_index_loop' );
}
do_action( 'smallermobs_index_end' );
echo smallermobs_pagination_toggler();