-
Notifications
You must be signed in to change notification settings - Fork 4
/
sidebar-footer.php
62 lines (60 loc) · 2.26 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
<?php
/**
* The Sidebar containing the footer widget areas.
*
* @package Theme Egg
* @subpackage Eggnews
* @since 1.0.0
*/
/**
* 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( 'eggnews_footer_one' ) &&
!is_active_sidebar( 'eggnews_footer_two' ) &&
!is_active_sidebar( 'eggnews_footer_three' ) &&
!is_active_sidebar( 'eggnews_footer_four' ) ) {
return;
}
$eggnews_footer_layout = get_theme_mod( 'footer_widget_option', 'column3' );
?>
<div id="top-footer" class="footer-widgets-wrapper clearfix <?php echo esc_attr( $eggnews_footer_layout ); ?>">
<div class="teg-container">
<div class="footer-widgets-area clearfix">
<div class="teg-footer-widget-wrapper clearfix">
<div class="teg-first-footer-widget teg-footer-widget">
<?php
if ( !dynamic_sidebar( 'eggnews_footer_one' ) ):
endif;
?>
</div>
<?php if( $eggnews_footer_layout != 'column1' ){ ?>
<div class="teg-second-footer-widget teg-footer-widget">
<?php
if ( !dynamic_sidebar( 'eggnews_footer_two' ) ):
endif;
?>
</div>
<?php } ?>
<?php if( $eggnews_footer_layout == 'column3' || $eggnews_footer_layout == 'column4' ){ ?>
<div class="teg-third-footer-widget teg-footer-widget">
<?php
if ( !dynamic_sidebar( 'eggnews_footer_three' ) ):
endif;
?>
</div>
<?php } ?>
<?php if( $eggnews_footer_layout == 'column4' ){ ?>
<div class="teg-fourth-footer-widget teg-footer-widget">
<?php
if ( !dynamic_sidebar( 'eggnews_footer_four' ) ):
endif;
?>
</div>
<?php } ?>
</div><!-- .teg-footer-widget-wrapper -->
</div><!-- .footer-widgets-area -->
</div><!-- .nt-container -->
</div><!-- #top-footer -->