3 * The sidebar containing the main widget area
6 * @subpackage Twenty_Fifteen
7 * @since Twenty Fifteen 1.0
10 if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) || is_active_sidebar( 'sidebar-1' ) ) : ?>
11 <div id="secondary" class="secondary">
13 <?php if ( has_nav_menu( 'primary' ) ) : ?>
14 <nav id="site-navigation" class="main-navigation" role="navigation">
16 // Primary navigation menu.
18 'menu_class' => 'nav-menu',
19 'theme_location' => 'primary',
22 </nav><!-- .main-navigation -->
25 <?php if ( has_nav_menu( 'social' ) ) : ?>
26 <nav id="social-navigation" class="social-navigation" role="navigation">
28 // Social links navigation menu.
30 'theme_location' => 'social',
32 'link_before' => '<span class="screen-reader-text">',
33 'link_after' => '</span>',
36 </nav><!-- .social-navigation -->
39 <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
40 <div id="widget-area" class="widget-area" role="complementary">
41 <?php dynamic_sidebar( 'sidebar-1' ); ?>
42 </div><!-- .widget-area -->
45 </div><!-- .secondary -->