-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
36 lines (31 loc) · 1.34 KB
/
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
<?php get_header(); ?>
<div class="container_blog">
<?php get_template_part('template-parts/blog/blog-sidebar'); ?>
<div class="blog_flow section_spacing_top_small">
<div class="container">
<div class="row">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part('template-parts/blog/content', get_post_format()); ?>
<?php endwhile; ?>
</div>
<div class="paginate_links">
<?php
$pages = array(
'prev_text' => __('<button aria-label="Next page"><i class="fas fa-angle-double-left" aria-hidden="true"></i></button>'),
'next_text' => __('<button aria-label="Previous page"><i class="fas fa-angle-double-right" aria-hidden="true"></i></button>'),
);
if (paginate_links($pages)) { ?>
<div class="btn">
<?php echo paginate_links($pages); ?>
</button>
<?php } ?>
</div>
<?php else : ?>
<p><?php __('No Posts Found'); ?></p>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>