[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentyseventeen/template-parts/footer/ -> footer-widgets.php (source)

   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" aria-label="<?php esc_attr_e( 'Footer', 'twentyseventeen' ); ?>">
  19          <?php
  20          if ( is_active_sidebar( 'sidebar-2' ) ) {
  21              ?>
  22              <div class="widget-column footer-widget-1">
  23                  <?php dynamic_sidebar( 'sidebar-2' ); ?>
  24              </div>
  25              <?php
  26          }
  27          if ( is_active_sidebar( 'sidebar-3' ) ) {
  28              ?>
  29              <div class="widget-column footer-widget-2">
  30                  <?php dynamic_sidebar( 'sidebar-3' ); ?>
  31              </div>
  32          <?php } ?>
  33      </aside><!-- .widget-area -->
  34  
  35  <?php endif; ?>


Generated: Mon Jul 22 01:00:03 2019 Cross-referenced by PHPXref 0.7.1