-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
33 lines (25 loc) · 863 Bytes
/
Copy pathindex.php
File metadata and controls
33 lines (25 loc) · 863 Bytes
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
33
<header>
<title><?php echo stachestack_title(); ?></title>
<h1 class="entry-title"><?php echo stachestack_title(); ?></h1>
</header>
<?php
do_action( 'stachestack_index_begin' );
if ( ! have_posts() ) {
echo '<div class="alert alert-warning">' . __( 'Sorry, no results were found.', 'stachestack' ) . '</div>';
get_search_form();
}
if ( ! has_action( 'stachestack_override_index_loop' ) ) {
while ( have_posts() ) : the_post();
do_action( 'stachestack_in_loop_start' );
if ( ! has_action( 'stachestack_content_override' ) ) {
ss_get_template_part( 'templates/content', get_post_format() );
} else {
do_action( 'stachestack_content_override' );
}
do_action( 'stachestack_in_loop_end' );
endwhile;
} else {
do_action( 'stachestack_override_index_loop' );
}
do_action( 'stachestack_index_end' );
echo stachestack_pagination_toggler();