-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
55 lines (45 loc) · 1017 Bytes
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* The template for displaying pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages and that
* other "pages" on your WordPress site will use a different template.
*
* @package WordPress
* @subpackage angelo
*/
// If there is no post, include home page
if ( ! have_posts() ) {
$query = new WP_Query( array( "pagename" => "home" ) );
if ( $query->have_posts() ) {
$query->the_post();
}
} else {
the_post();
}
get_header();
get_partial( 'layout/loader' );
get_partial( 'layout/navigation' );
?>
<!-- PAGE WRAPPER -->
<div id="default" class="o-page o-page--default">
<?php
get_partial( 'default/header', [
] );
?>
<!-- PAGE CONTENT -->
<div class="o-page__inner o-page__inner--default">
<?php
// Include the page content template.
the_content();
?>
</div>
<!-- //PAGE CONTENT -->
<?php
get_partial( 'layout/footer', [
] );
?>
</div>
<!-- //PAGE WRAPPER -->
<?php get_footer(); ?>