-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpage.php
40 lines (36 loc) · 1.16 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
<?php get_header(); the_post();?>
<div class="row page-content" id="<?php echo $post->post_name; ?>">
<div class="col-md-15 col-sm-15">
<div id="page-title">
<div class="row">
<div class="col-md-12 col-sm-12">
<h1><?php the_title(); ?></h1>
</div>
<?php esi_include( 'output_weather_data', 'col-md-3 col-sm-3' ); ?>
</div>
</div>
</div>
<?=get_page_subheader($post)?>
<div class="col-sm-12 col-sm-push-3" id="contentcol">
<article role="main">
<?php the_content();?>
</article>
</div>
<div id="sidebar_left" class="col-sm-3 col-sm-pull-12" role="navigation">
<?=get_sidebar('left');?>
</div>
<?php
$theSubHeaderId = get_post_meta($post->ID, 'page_subheader', TRUE);
$theSubHeaderPush = get_post_meta($theSubHeaderId, 'subheader_push_right_sidebar', TRUE);
$pushRightSidebar = $theSubHeaderId != '' && $theSubHeaderPush == 'on';
?>
<div id="sidebar_right" class="col-md-3 col-sm-3 <?php if (!($pushRightSidebar)) { ?>notoppad<?php } ?>" role="complementary">
<?=get_sidebar('right');?>
</div>
</div>
<!--<div class="container-shadow">
<span></span>
</div>-->
</div>
<?php get_footer();?>