sidebar-content-bottom.php 790 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * The template for the content bottom widget areas on posts and pages
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Sixteen
  7. * @since Twenty Sixteen 1.0
  8. */
  9. if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) {
  10. return;
  11. }
  12. // If we get this far, we have widgets. Let's do this.
  13. ?>
  14. <div id="content-bottom-widgets" class="content-bottom-widgets" role="complementary">
  15. <?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
  16. <div class="widget-area">
  17. <?php dynamic_sidebar( 'sidebar-2' ); ?>
  18. </div><!-- .widget-area -->
  19. <?php endif; ?>
  20. <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
  21. <div class="widget-area">
  22. <?php dynamic_sidebar( 'sidebar-3' ); ?>
  23. </div><!-- .widget-area -->
  24. <?php endif; ?>
  25. </div><!-- .content-bottom-widgets -->