WordPress 4.7
[autoinstalls/wordpress.git] / wp-content / themes / twentyseventeen / template-parts / footer / footer-widgets.php
1 <?php
2 /**
3  * Displays footer widgets if assigned
4  *
5  * @package WordPress
6  * @subpackage Twenty_Seventeen
7  * @since 1.0
8  * @version 1.0
9  */
10
11 ?>
12
13 <?php
14 if ( is_active_sidebar( 'sidebar-2' ) ||
15          is_active_sidebar( 'sidebar-3' ) ) :
16 ?>
17
18         <aside class="widget-area" role="complementary">
19                 <?php
20                 if ( is_active_sidebar( 'sidebar-2' ) ) { ?>
21                         <div class="widget-column footer-widget-1">
22                                 <?php dynamic_sidebar( 'sidebar-2' ); ?>
23                         </div>
24                 <?php }
25                 if ( is_active_sidebar( 'sidebar-3' ) ) { ?>
26                         <div class="widget-column footer-widget-2">
27                                 <?php dynamic_sidebar( 'sidebar-3' ); ?>
28                         </div>
29                 <?php } ?>
30         </aside><!-- .widget-area -->
31
32 <?php endif; ?>