/
sidebar.php
39 lines (32 loc) · 1.03 KB
/
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
<?php
/**
* Sidebar Content
*
* Render content for widgetized sidebars (left or right)
*
* @package BC Douglas Fir Theme
*/
?>
<div class="sidebar col-md-3 <?php echo 'sidebar-content' === bc_douglas_fir_get_option( 'default_layout' ) ? 'sidebarleft' : 'sidebarright'; ?>">
<?php if ( is_active_sidebar( 'top-global-widget-area' ) ) : ?>
<?php dynamic_sidebar( 'top-global-widget-area' ); ?>
<?php endif; ?>
<?php
// Hook to allow display of more widget areas.
bc_douglas_fir_display_sidebar();
?>
<?php if ( is_active_sidebar( 'page-widget-area' ) ) : ?>
<?php
if ( ! bc_douglas_fir_is_blog() ) {
dynamic_sidebar( 'page-widget-area' );}
?>
<?php endif; ?>
<?php if ( is_active_sidebar( 'blog-widget-area' ) ) : ?>
<?php if ( bc_douglas_fir_is_blog() ) : ?>
<?php dynamic_sidebar( 'blog-widget-area' ); ?>
<?php endif; ?>
<?php endif; ?>
<?php if ( is_active_sidebar( 'global-widget-area' ) ) : ?>
<?php dynamic_sidebar( 'global-widget-area' ); ?>
<?php endif; ?>
</div><!-- col-md-3 -->