forked from govfresh/govpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar-footer.php
42 lines (38 loc) · 1.19 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
37
38
39
40
41
42
<?php
/**
* Footer widget areas
*
* @package GovPress
*/
?>
<?php
/*
* The footer widget area is triggered if any of the areas
* have widgets. So let's check that first.
*
* If none of the sidebars have widgets, then let's bail early.
*/
if ( ! is_active_sidebar( 'footer-1' )
&& ! is_active_sidebar( 'footer-2' )
&& ! is_active_sidebar( 'footer-3' )
)
return;
// If we get this far, we have widgets. Let do this.
?>
<div id="footer-widgets" class="col-width clear <?php govpress_footer_widget_count(); ?>">
<?php if ( is_active_sidebar( 'footer-1' ) ) : ?>
<div id="footer-widget-1" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'footer-1' ); ?>
</div><!-- #first .widget-area -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-2' ) ) : ?>
<div id="footer-widget-2" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'footer-2' ); ?>
</div><!-- #second .widget-area -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-3' ) ) : ?>
<div id="footer-widget-3" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'footer-3' ); ?>
</div><!-- #third .widget-area -->
<?php endif; ?>
</div><!-- #supplementary -->