-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
50 lines (38 loc) · 1022 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
42
43
44
45
46
47
48
49
50
<?php get_header(); ?>
<main id="content" class="content">
<?php do_action( 'aperitto_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(
'aperitto_posts_pagination_args',
array(
'mid_size' => 2,
'prev_text' => __( '« Prev', 'aperitto' ),
'next_text' => __( 'Next »', 'aperitto' ),
)
)
);
else :
?>
<div class="post clearfix">
<h2><?php _e( 'Posts not found', 'aperitto' ); ?></h2>
<?php get_search_form(); ?>
</div>
<?php endif; ?>
<?php do_action( 'aperitto_main_content_inner_end' ); ?>
</main>
<!-- END #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>