-
Notifications
You must be signed in to change notification settings - Fork 1
/
page.php
66 lines (60 loc) · 1.47 KB
/
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
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* The template for displaying all 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 Awakening
* @subpackage Awakening
* @since Awakening 1.0
*/
get_header(); ?>
<?php
if(is_front_page()) {
get_template_part( 'page-templates/front', 'page' );
} else {
?>
<?php
$cols = awakening_get_columns_settings();
$layout = $cols['layout'];
?>
<?php
if($layout == "sidebar-sidebar-content") {
get_sidebar('left');
get_sidebar();
}
?>
<?php
if($layout == "sidebar-content-sidebar") {
get_sidebar('left');
} else if($layout == "sidebar-content") {
get_sidebar();
}
?>
<div class="large-<?php echo $cols['content'];?> columns" role="content">
<div id="primary" class="site-content">
<div id="content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
</div><!-- #primary -->
</div><!-- .large-<?php echo $cols['content'];?> .column -->
<?php
if($layout == "content-sidebar-sidebar") {
get_sidebar('left');
}
?>
<?php
if($layout == "content-sidebar" ||
$layout == "sidebar-content-sidebar" ||
$layout == "content-sidebar-sidebar") {
get_sidebar();
}
?>
<?php get_footer(); ?>
<?php } ?>