-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
89 lines (58 loc) · 2.31 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
84
85
86
87
88
89
<?php get_header();
/* Checkbox Default Values */
$baxel_show_sidebar_static = get_theme_mod( 'baxel_show_sidebar_static', 1 );
$baxel_show_sidebar_page = get_theme_mod( 'baxel_show_sidebar_page', 1 );
$baxel_show_page_comments = get_theme_mod( 'baxel_show_page_comments', 1 );
/* */
?>
<div class="main-container<?php echo baxel_apply_layout(); ?>">
<article <?php post_class( 'clearfix' ); ?>>
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
$meta_sidebar = get_post_meta( get_the_ID(), 'baxel-sidebar-meta-box-checkbox', true ); ?>
<?php if ( get_theme_mod( 'baxel_map_page_id' ) == get_the_ID() ) { ?>
<div id="googleMap"></div>
<?php } else {
?><div class="article-featured-image"><?php the_post_thumbnail(); ?></div><?php
} ?>
<div class="article-content-outer<?php echo baxel_apply_layout(); ?>">
<div class="article-content-inner">
<h1 class="article-title"><?php the_title(); ?></h1>
<div class="article-pure-content clearfix"><?php the_content(); ?></div>
<?php
if ( function_exists( 'WC' ) ) { if ( !is_cart() && !is_checkout() && !is_account_page() ) { get_template_part( 'social-bar' ); } }
get_template_part( 'pager-bar' );
?>
</div>
</div>
<?php
endwhile;
else :
echo baxel_nothing_found();
endif; ?>
</article>
<?php if ( $baxel_show_page_comments ) { comments_template(); } ?>
</div><!-- /main-container -->
<!-- sidebar -->
<?php
if ( function_exists( 'WC' ) && ( is_cart() || is_checkout() || is_account_page() ) ) {
// Hide Sidebar on WooCommerce Pages
} else {
$baxel_s_type = 'home';
if ( is_front_page() ) {
if ( $baxel_show_sidebar_static && !$meta_sidebar ) {
if ( get_theme_mod( 'baxel_enable_sidebar_static', 0 ) ) { $baxel_s_type = 'static'; }
baxel_insert_sidebar( $baxel_s_type );
}
} else {
if ( $baxel_show_sidebar_page && !$meta_sidebar ) {
if ( get_theme_mod( 'baxel_enable_sidebar_page', 0 ) ) { $baxel_s_type = 'page'; }
baxel_insert_sidebar( $baxel_s_type );
}
}
}
?>
<!-- /sidebar -->
</div><!-- /site-mid -->
<?php get_footer(); ?>