sidebar.php 671 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * The Sidebar containing the main widget area
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Fourteen
  7. * @since Twenty Fourteen 1.0
  8. */
  9. ?>
  10. <div id="secondary">
  11. <?php if ( has_nav_menu( 'secondary' ) ) : ?>
  12. <nav role="navigation" class="navigation site-navigation secondary-navigation">
  13. <?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
  14. </nav>
  15. <?php endif; ?>
  16. <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
  17. <div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary">
  18. <?php dynamic_sidebar( 'sidebar-1' ); ?>
  19. </div><!-- #primary-sidebar -->
  20. <?php endif; ?>
  21. </div><!-- #secondary -->