forked from presscustomizr/customizr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar-footer.php
36 lines (33 loc) · 919 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
<?php
/**
* The sidebar containing the footer widget areas.
*
* If no active widgets they will be hidden completely.
*
* @package Customizr
* @since Customizr 1.0
*/
?>
<?php
if ( !is_active_sidebar( 'footer_one' ) && !is_active_sidebar( 'footer_two' ) && !is_active_sidebar( 'footer_three' ))
return;
?>
<div class="container footer-widgets">
<div class="row widget-area" role="complementary">
<?php if ( is_active_sidebar( 'footer_one' ) ) : ?>
<div class="span4">
<?php dynamic_sidebar( 'footer_one' ); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer_two' ) ) : ?>
<div class="span4">
<?php dynamic_sidebar( 'footer_two' ); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer_three' ) ) : ?>
<div class="span4">
<?php dynamic_sidebar( 'footer_three' ); ?>
</div>
<?php endif; ?>
</div><!-- .row widget-area -->
</div><!--.footer-widgets -->