-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.php
More file actions
60 lines (51 loc) · 1.38 KB
/
page.php
File metadata and controls
60 lines (51 loc) · 1.38 KB
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
<?php
/**
*
* The template for displaying all pages
*
* @package Codexin
* @subpackage Templates
* @since 1.0
*/
// Do not allow directly accessing this file.
defined( 'ABSPATH' ) OR die( esc_html__( 'This script cannot be accessed directly.', 'TEXT_DOMAIN' ) );
get_header(); ?>
<!-- Start of Main Content Wrapper -->
<div id="content" class="main-content-wrapper">
<div class="container">
<div class="row">
<div class="col-12 col-sm-12 col-md-12 col-lg-8 col-xl-9">
<main id="primary" class="site-main">
<?php
if ( have_posts() ) {
// Start the loop
while ( have_posts() ) {
the_post();
// Load the page content template
get_template_part( 'template-parts/page/content', 'page' );
}
} else {
// No posts to display
}
?>
</main> <!-- end of #primary -->
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}
?>
</div>
<div class="col-12 col-sm-12 col-md-12 col-lg-4 col-xl-3">
<aside id="secondary" class="widget-area">
<?php
// Get active assigned sidebar
get_sidebar();
?>
</aside> <!-- end of #secondary -->
</div>
</div>
</div> <!-- end of container -->
</div>
<!-- End of Main Content Wrapper -->
<?php get_footer(); ?>