~canonical-sysadmins/wordpress/4.7.4

« back to all changes in this revision

Viewing changes to wp-content/themes/twentyseventeen/template-parts/footer/footer-widgets.php

  • Committer: Haw Loeung
  • Date: 2016-12-13 06:56:21 UTC
  • mfrom: (1.1.20 upstream)
  • Revision ID: haw.loeung@canonical.com-20161213065621-8tcu7u7vlxgs2s81
Merge WP4.7 from upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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; ?>