-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar-footer.php
75 lines (65 loc) · 2.45 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/**
* The Footer widget areas.
*
* @package Hawea
* @since Hawea 1.0
* @version 1.0
*/
?>
<?php
/* Check if any of the footer widget areas have widgets.
*
* If none of the footer widget areas have widgets, let's bail early.
*/
if ( ! is_active_sidebar( 'footer-1' )
&& ! is_active_sidebar( 'footer-2' )
&& ! is_active_sidebar( 'footer-3' )
&& ! is_active_sidebar( 'footer-4' )
&& ! is_active_sidebar( 'footer-5' )
)
return;
// If we get this far, we have widgets. Let do this.
?>
<div id="footerwidgets" class="cf">
<?php if ( is_active_sidebar( 'footer-1' ) ) : ?>
<div id="footer-one" class="one-column sidebar-footer widget-area" role="complementary">
<?php dynamic_sidebar( 'footer-1' ); ?>
</div><!-- end #footer-one -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-2' ) ) : ?>
<div id="footer-two" class="two-columns sidebar-footer widget-area" role="complementary">
<?php dynamic_sidebar( 'footer-2' ); ?>
</div><!-- end #footer-two -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-3' ) ) : ?>
<div id="footer-three" class="two-columns sidebar-footer widget-area" role="complementary">
<?php dynamic_sidebar( 'footer-3' ); ?>
</div><!-- end #footer-three -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-4' ) ) : ?>
<div id="footer-four" class="five-columns sidebar-footer widget-area" role="complementary">
<?php dynamic_sidebar( 'footer-4' ); ?>
</div><!-- end #footer-four -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-5' ) ) : ?>
<div id="footer-five" class="five-columns sidebar-footer widget-area" role="complementary">
<?php dynamic_sidebar( 'footer-5' ); ?>
</div><!-- end #footer-five -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-6' ) ) : ?>
<div id="footer-six" class="five-columns sidebar-footer widget-area" role="complementary">
<?php dynamic_sidebar( 'footer-6' ); ?>
</div><!-- end #footer-six -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-7' ) ) : ?>
<div id="footer-seven" class="five-columns sidebar-footer widget-area" role="complementary">
<?php dynamic_sidebar( 'footer-7' ); ?>
</div><!-- end #footer-seven -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-8' ) ) : ?>
<div id="footer-eight" class="five-columns sidebar-footer widget-area" role="complementary">
<?php dynamic_sidebar( 'footer-8' ); ?>
</div><!-- end #footer-eight -->
<?php endif; ?>
</div><!-- end #footerwidgets -->