-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.php
executable file
·37 lines (33 loc) · 945 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
33
34
35
36
37
<?php get_header();
if ( is_home() ) {
echo '<h1 class="screen-reader-text">' . esc_html( get_bloginfo("name") ) . ' ' . esc_html__('Posts', 'ignite') . '</h1>';
} elseif ( is_archive() ) {
echo '<h1 class="screen-reader-text">' . esc_html( get_the_archive_title() ) . '</h1>';
}
?>
<div id="loop-container" class="loop-container">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
ct_ignite_get_content_template();
endwhile;
endif;
?>
</div>
<?php
// include loop pagination except for on bbPress Forum root
if ( function_exists( 'is_bbpress' ) ) {
if ( ! ( is_bbpress() && is_archive() ) ) {
the_posts_pagination( array(
'prev_text' => esc_html__( 'Previous', 'ignite' ),
'next_text' => esc_html__( 'Next', 'ignite' )
) );
}
} else {
the_posts_pagination( array(
'prev_text' => esc_html__( 'Previous', 'ignite' ),
'next_text' => esc_html__( 'Next', 'ignite' )
) );
}
get_footer();