-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsidebar-footer.php
56 lines (48 loc) · 1.48 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
<?php
/**
* The Footer widget areas.
*
* @package Awakening
* @since Awakening 1.0
*/
?>
<?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( 'extended_footer_one' )
&& ! is_active_sidebar( 'extended_footer_two' )
&& ! is_active_sidebar( 'extended_footer_three' )
)
return;
// If we get this far, we have widgets. Let do this.
$divclass = (of_get_option('extended_footer_count')=='4') ? '3' : '4';
?>
<div class="full-width" id="extended">
<div class="row">
<div class="large-<?php echo $divclass; ?> columns">
<?php if ( is_active_sidebar( 'extended_footer_one' ) ) : ?>
<?php dynamic_sidebar( 'extended_footer_one' ); ?>
<?php endif; ?>
</div>
<div class="large-<?php echo $divclass; ?> columns">
<?php if ( is_active_sidebar( 'extended_footer_two' ) ) : ?>
<?php dynamic_sidebar( 'extended_footer_two' ); ?>
<?php endif; ?>
</div>
<div class="large-<?php echo $divclass; ?> columns">
<?php if ( is_active_sidebar( 'extended_footer_three' ) ) : ?>
<?php dynamic_sidebar( 'extended_footer_three' ); ?>
<?php endif; ?>
</div>
<?php if($divclass=='3'): ?>
<div class="large-<?php echo $divclass; ?> columns">
<?php if ( is_active_sidebar( 'extended_footer_four' ) ) : ?>
<?php dynamic_sidebar( 'extended_footer_four' ); ?>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div><!-- #extended -->