-
Notifications
You must be signed in to change notification settings - Fork 6
/
sidebar.php
37 lines (32 loc) · 847 Bytes
/
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
<?php
/**
* Sidebar Template
*
* If a `primary` widget area is active and has widgets, display the sidebar.
*
* @package WooFramework
* @subpackage Template
*/
global $woo_options;
$layout = $woo_options['woo_layout'];
// Cater for custom portfolio gallery layout option.
if ( is_tax( 'portfolio-gallery' ) || is_post_type_archive( 'portfolio' ) ) {
$portfolio_gallery_layout = get_option( 'woo_portfolio_layout' );
if ( $portfolio_gallery_layout != '' ) { $layout = $portfolio_gallery_layout; }
}
if ( $layout != 'one-col' ) {
if ( woo_active_sidebar( 'primary' ) ) {
woo_sidebar_before();
?>
<div id="sidebar">
<?php
woo_sidebar_inside_before();
woo_sidebar('primary');
woo_sidebar_inside_after();
?>
</div><!-- /#sidebar -->
<?php
woo_sidebar_after();
} // End IF Statement
} // End IF Statement
?>