-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·28 lines (28 loc) · 822 Bytes
/
index.php
File metadata and controls
executable file
·28 lines (28 loc) · 822 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
<?php get_header(); ?>
<main role="main" class="clearfix">
<section>
<?php get_template_part( 'template-parts/page', 'header' ); ?>
<div class="container">
<div class="primary">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', get_post_format() );
endwhile; ?>
<div class="pagination">
<?php
the_posts_pagination(
array(
'prev_text' => __( 'Previous page' ),
'next_text' => __( 'Next page' ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page' ) . ' </span>',
)
);
?>
</div>
<?php else :
get_template_part( 'template-parts/content', 'none' );
endif; ?>
</div>
</div>
</section>
</main>
<?php get_footer(); ?>