equal
deleted
inserted
replaced
1 <?php |
|
2 /** |
|
3 * The sidebar containing the main widget area |
|
4 * |
|
5 * @package WordPress |
|
6 * @subpackage Twenty_Fifteen |
|
7 * @since Twenty Fifteen 1.0 |
|
8 */ |
|
9 |
|
10 if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) || is_active_sidebar( 'sidebar-1' ) ) : ?> |
|
11 <div id="secondary" class="secondary"> |
|
12 |
|
13 <?php if ( has_nav_menu( 'primary' ) ) : ?> |
|
14 <nav id="site-navigation" class="main-navigation" role="navigation"> |
|
15 <?php |
|
16 // Primary navigation menu. |
|
17 wp_nav_menu( array( |
|
18 'menu_class' => 'nav-menu', |
|
19 'theme_location' => 'primary', |
|
20 ) ); |
|
21 ?> |
|
22 </nav><!-- .main-navigation --> |
|
23 <?php endif; ?> |
|
24 |
|
25 <?php if ( has_nav_menu( 'social' ) ) : ?> |
|
26 <nav id="social-navigation" class="social-navigation" role="navigation"> |
|
27 <?php |
|
28 // Social links navigation menu. |
|
29 wp_nav_menu( array( |
|
30 'theme_location' => 'social', |
|
31 'depth' => 1, |
|
32 'link_before' => '<span class="screen-reader-text">', |
|
33 'link_after' => '</span>', |
|
34 ) ); |
|
35 ?> |
|
36 </nav><!-- .social-navigation --> |
|
37 <?php endif; ?> |
|
38 |
|
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 --> |
|
43 <?php endif; ?> |
|
44 |
|
45 </div><!-- .secondary --> |
|
46 |
|
47 <?php endif; ?> |
|