-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
47 lines (39 loc) · 1.45 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
<?php
/*
* This is the main template file.
* This is the home template file in a WordPress theme
*/
get_header(); ?>
<main id="main">
<div class="main__wrap">
<div class="container the-container">
<section>
<div class="contents">
<?php
if (have_posts()) : ?>
<?php
if (have_posts()) :
while (have_posts()) : the_post();
get_template_part('parts/content', get_post_format()); ?>
<?php endwhile;
else:
esc_html_e('Sorry, nothing found!', 'movaone');
endif; ?>
<?php
else :
esc_html_e('Sorry, nothing to show here, Please check back later', 'movaone');
endif;
?>
<div class="navigation">
<div class="previous">
<?php esc_html(previous_posts_link(__('« Previous Page', 'movaone'))); ?></div>
<div class="next"><?php esc_html(next_posts_link(__('Next Page »', 'movaone'))); ?></div>
</div>
</div>
</section>
<?php get_sidebar(); ?>
</div>
</div>
</main>
<?php
get_footer();