-
Notifications
You must be signed in to change notification settings - Fork 0
/
page_sidebar.php
50 lines (39 loc) · 1.03 KB
/
page_sidebar.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
<?php
/**
* Template Name: Template - Page + SideBar
*
* A Full Width custom page template without sidebar.
* @package WordPress
*/
get_header(); ?>
<?php if((is_page() || is_single()) && !is_front_page()): ?>
<div class="row">
<div class="sixteen columns">
<?php boc_breadcrumbs(); ?>
<div class="page_heading"><h1><?php the_title(); ?></h1></div>
</div>
</div>
<?php endif; ?>
<div class="row">
<?php
// Check where sidebar should be
$sidebar_left = false;
if(ot_get_option('sidebar_layout','right-sidebar')=='left-sidebar'){
$sidebar_left=true;
}
// Place sidebar if it's left
($sidebar_left ? get_sidebar() : '');
?>
<!-- Post -->
<div <?php post_class(''); ?> id="post-<?php the_ID(); ?>" >
<div class="twelve columns">
<?php while (have_posts()) : the_post(); ?>
<?php the_content() ?>
<?php endwhile; ?>
</div>
</div>
<!-- Post :: END -->
<?php // Place sidebar if it's right
(!$sidebar_left ? get_sidebar() : '');?>
</div>
<?php get_footer(); ?>