[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
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"> 15 <?php 16 // Primary navigation menu. 17 wp_nav_menu( 18 array( 19 'menu_class' => 'nav-menu', 20 'theme_location' => 'primary', 21 ) 22 ); 23 ?> 24 </nav><!-- .main-navigation --> 25 <?php endif; ?> 26 27 <?php if ( has_nav_menu( 'social' ) ) : ?> 28 <nav id="social-navigation" class="social-navigation"> 29 <?php 30 // Social links navigation menu. 31 wp_nav_menu( 32 array( 33 'theme_location' => 'social', 34 'depth' => 1, 35 'link_before' => '<span class="screen-reader-text">', 36 'link_after' => '</span>', 37 ) 38 ); 39 ?> 40 </nav><!-- .social-navigation --> 41 <?php endif; ?> 42 43 <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?> 44 <div id="widget-area" class="widget-area" role="complementary"> 45 <?php dynamic_sidebar( 'sidebar-1' ); ?> 46 </div><!-- .widget-area --> 47 <?php endif; ?> 48 49 </div><!-- .secondary --> 50 51 <?php endif; ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 10 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |