-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
53 lines (47 loc) · 1.09 KB
/
home.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
51
52
53
<?php
/**
* Template file for displaying the blog posts
*
* @package Dsignfly
*/
get_header();
get_template_part( 'template-parts/features' );
?>
<main id="primary" class="site-main">
<div class="content">
<div class="content-header">
<h1>LET'S BLOG</h1>
<hr>
</div>
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content', 'card' );
endwhile;
?>
<div class="pagination">
<?php
echo paginate_links(
array(
'next_text' => '<img src="' . get_template_directory_uri() . '/images/pagination-arrow.png" alt="arrow-right" />',
'prev_text' => '<img
style="transform: rotate(180deg);"
src="' . get_template_directory_uri() . '/images/pagination-arrow.png" alt="arrow-left" />',
)
);
?>
</div>
<?php
else :
get_template_part( 'template-parts/content', 'none' );
endif;
?>
<!-- //add pagination-->
</div>
<div class="sidebar">
<?php get_sidebar(); ?>
</div>
</main><!-- #main -->
<?php
get_footer();