-
Notifications
You must be signed in to change notification settings - Fork 0
/
front-page.php
38 lines (26 loc) · 1.23 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
<?php
// ┌─────────────────────────────────────────────────────────────────────────┐
// │ │
// │ Template for the HOMEPAGE / │
// │ │
// └─────────────────────────────────────────────────────────────────────────┘
get_header();
include(get_template_directory() . '/src/views/menus/mainmenu.php');
?>
<main class="">
<?php
if (have_posts()) {
while (have_posts()) {
the_post();
$post_type = get_post_type();
include(get_template_directory() . '/src/views/content/content-front-page.php');
}
the_posts_navigation();
} else {
get_template_part( 'src/views/content/content', '404' );
include(get_template_directory() . '/src/views/content/content-404.php');
}
?>
</main>
<?php
get_footer();