forked from JuliaKatheder/CoronaLaw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter-widget.php
20 lines (18 loc) · 994 Bytes
/
footer-widget.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
if ( is_active_sidebar( 'footer-1' ) || is_active_sidebar( 'footer-2' ) || is_active_sidebar( 'footer-3' ) ) {?>
<div id="footer-widget" class="row m-0 <?php if(!is_theme_preset_active()){ echo 'bg-light'; } ?>">
<div class="container">
<div class="row">
<?php if ( is_active_sidebar( 'footer-1' )) : ?>
<div class="col-12 col-md-4"><?php dynamic_sidebar( 'footer-1' ); ?></div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-2' )) : ?>
<div class="col-12 col-md-4"><?php dynamic_sidebar( 'footer-2' ); ?></div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-3' )) : ?>
<div class="col-12 col-md-4"><?php dynamic_sidebar( 'footer-3' ); ?></div>
<?php endif; ?>
</div>
</div>
</div>
<?php }