-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage.php
83 lines (54 loc) · 2.57 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?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 understrap-builder
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
global $us_b_featured_image_already_shown;
get_header();
// Load Customizer variables
$understrap_builder_container_type = get_theme_mod( 'understrap_builder_container_type', 'container');
$understrap_builder_container_page_type = get_theme_mod( 'understrap_builder_container_page_type', 'default');
$understrap_builder_breadcrumbs_page_display = get_theme_mod( 'understrap_builder_breadcrumbs_page_display', '');
// Handle container
if($understrap_builder_container_page_type != 'default'){
$understrap_builder_container_type = $understrap_builder_container_page_type;
}
?>
<?php get_template_part( 'global-templates/builder-hero-check' ); ?>
<?php if($understrap_builder_breadcrumbs_page_display == 'under-nav'){ get_template_part( 'global-templates/breadcrumbs-page-check' ); } ?>
<?php get_template_part( 'global-templates/headers-page-check'); ?>
<?php if($understrap_builder_breadcrumbs_page_display == 'under-header'){ get_template_part( 'global-templates/breadcrumbs-page-check'); } ?>
<div class="wrapper" id="page-wrapper">
<div class="<?php echo esc_attr( $understrap_builder_container_type ); ?>" id="content" tabindex="-1">
<div class="row">
<!-- Do the left sidebar check -->
<?php get_template_part( 'global-templates/left-sidebar-check' ); ?>
<div class="col content-area" id="primary">
<main class="site-main" id="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'loop-templates/content', 'page' ); ?>
<?php get_template_part( 'global-templates/child-pages-check' ); ?>
<?php get_template_part( 'global-templates/the-author-box-page-check' ); ?>
<?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();
endif;
?>
<?php endwhile; // end of the loop. ?>
</main><!-- #main -->
</div>
<!-- Do the right sidebar check -->
<?php get_template_part( 'global-templates/right-sidebar-check' ); ?>
</div><!-- .row -->
</div><!-- #content -->
</div><!-- #page-wrapper -->
<?php get_footer(); ?>