-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
41 lines (29 loc) · 1012 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
38
39
40
41
<?php get_header(); ?>
<main id="content" class="content">
<?php do_action( 'basic_main_content_inner_begin' ); ?>
<?php if ( is_home() && 'customtitle' == get_theme_mod( 'home_h1_type', 'sitetitle' ) ) { ?>
<div class="blog-home-header">
<h1><?php echo esc_html( get_theme_mod( 'custom_home_h1', get_bloginfo('sitetitle') ) ); ?></h1>
</div>
<?php } ?>
<?php if (have_posts()) :
while (have_posts()) : the_post();
get_template_part( 'content' );
endwhile; ?>
<?php
the_posts_pagination( apply_filters( 'basic_posts_pagination_args', array(
'mid_size' => 2,
'prev_text' => __( '« Prev', 'basic'),
'next_text' => __( 'Next »', 'basic'),
) ) );
else: ?>
<div class="post clearfix">
<h2><?php _e( 'Posts not found', 'basic' ); ?></h2>
<?php get_search_form(); ?>
</div>
<?php endif; ?>
<?php do_action( 'basic_main_content_inner_end' ); ?>
</main>
<!-- END #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>