-
Notifications
You must be signed in to change notification settings - Fork 339
/
sidebar-footer.php
36 lines (31 loc) · 1.04 KB
/
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
<?php
/**
* The Sidebar widget area for footer.
*
* @package sparkling
*/
?>
<?php
// If footer sidebars do not have widget let's bail.
if ( ! is_active_sidebar( 'footer-widget-1' ) && ! is_active_sidebar( 'footer-widget-2' ) && ! is_active_sidebar( 'footer-widget-3' ) ) {
return;
}
// If we made it this far we must have widgets.
?>
<div class="footer-widget-area">
<?php if ( is_active_sidebar( 'footer-widget-1' ) ) : ?>
<div class="col-sm-4 footer-widget" role="complementary">
<?php dynamic_sidebar( 'footer-widget-1' ); ?>
</div><!-- .widget-area .first -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-widget-2' ) ) : ?>
<div class="col-sm-4 footer-widget" role="complementary">
<?php dynamic_sidebar( 'footer-widget-2' ); ?>
</div><!-- .widget-area .second -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-widget-3' ) ) : ?>
<div class="col-sm-4 footer-widget" role="complementary">
<?php dynamic_sidebar( 'footer-widget-3' ); ?>
</div><!-- .widget-area .third -->
<?php endif; ?>
</div>