-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfront-page.php
41 lines (33 loc) · 1.03 KB
/
front-page.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
<?php
/*
* Template Name: Front Page
* This is the site top only template file.
* This is the general top page template file for a WordPress theme.
*/
?>
<?php get_header(); ?>
<main id="main">
<div class="main__wrap">
<section>
<div class="container">
<?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>
</section>
<?php get_sidebar(); ?>
</div>
</main>
<?php get_footer(); ?>