forked from Codeinwp/oria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar-footer.php
37 lines (35 loc) · 969 Bytes
/
sidebar-footer.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
/**
*
* @package Oria
*/
?>
<?php //Set widget areas classes based on user choice
$widget_areas = get_theme_mod('footer_widget_areas', '3');
if ($widget_areas == '3') {
$cols = 'col-md-4';
} elseif ($widget_areas == '2') {
$cols = 'col-md-6';
} else {
$cols = 'col-md-12';
}
?>
<div id="sidebar-footer" class="footer-widgets" role="complementary">
<div class="container">
<?php if ( is_active_sidebar( 'footer-1' ) ) : ?>
<div class="sidebar-column <?php echo $cols; ?>">
<?php dynamic_sidebar( 'footer-1'); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-2' ) ) : ?>
<div class="sidebar-column <?php echo $cols; ?>">
<?php dynamic_sidebar( 'footer-2'); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-3' ) ) : ?>
<div class="sidebar-column <?php echo $cols; ?>">
<?php dynamic_sidebar( 'footer-3'); ?>
</div>
<?php endif; ?>
</div>
</div>