[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

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 Twenty Seventeen 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" 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
  36  endif;


Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref