-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
34 lines (28 loc) · 931 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
<?php
/**
* The sidebar containing the main widget area
*
* If no active widgets are in the sidebar, hide it completely.
*
* @package WP_Basic_Bootstrap
* @since WP_Basic_Bootstrap 1.0
*/
$template = get_template_type();
$page_type = get_page_type();
if (BASICBOOTSTRAP_TPLDBG) {
error_log('loaded file : '.__FILE__);
error_log('page type : '.$page_type);
error_log('applied template : '.$template);
}
?>
<?php if (strpos($template, 'full_width')===false) : ?>
</div><!-- /.blog-main -->
<?php if ($template == 'left_sidebar') : ?>
<aside id="sidebar" class="col-sm-3 blog-sidebar-left hidden-print">
<?php elseif ($template == 'right_sidebar') : ?>
<aside id="sidebar" class="col-sm-3 blog-sidebar-right hidden-print">
<?php endif; ?>
<hr class="visible-xs" />
<?php dynamic_sidebar('primary-widget-area'); ?>
</aside><!-- /.blog-sidebar -->
<?php endif; ?>