/
sidebar-footer.php
46 lines (34 loc) · 1.36 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
<?php
/**
* sidebar-footer.php
*
* Template part file that contains the footer widget area
*
* @package Shiword
* @since 1.00
*/
?>
<!-- here should be the Footer widget area -->
<?php
/* The footer widget area is triggered if any of the areas have widgets. */
if ( !is_active_sidebar( 'first-footer-widget-area' ) && !is_active_sidebar( 'second-footer-widget-area' ) && !is_active_sidebar( 'third-footer-widget-area' ) && !is_active_sidebar( 'fourth-footer-widget-area' ) ) {
return;
}
?>
<?php shiword_hook_sidebars_before( 'footer' ); ?>
<div id="footer-widget-area">
<?php shiword_hook_sidebar_top( 'footer' ); ?>
<div id="first_fwa" class="widget-area">
<?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) dynamic_sidebar( 'first-footer-widget-area' ); ?>
</div><!-- #first .widget-area -->
<div id="second_fwa" class="widget-area">
<?php if ( is_active_sidebar( 'second-footer-widget-area' ) ) dynamic_sidebar( 'second-footer-widget-area' ); ?>
</div><!-- #second .widget-area -->
<div id="third_fwa" class="widget-area">
<?php if ( is_active_sidebar( 'third-footer-widget-area' ) ) dynamic_sidebar( 'third-footer-widget-area' ); ?>
</div><!-- #third .widget-area -->
<div class="fixfloat"> </div>
<?php shiword_hook_sidebar_bottom( 'footer' ); ?>
</div>
<!-- end Footer widget area -->
<?php shiword_hook_sidebars_after( 'footer' ); ?>