Changeset 30394 for trunk/src/wp-content/themes/twentyfifteen/sidebar.php
- Timestamp:
- 11/19/2014 08:27:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/sidebar.php
r30046 r30394 1 1 <?php 2 2 /** 3 * The sidebar containing the main widget area .3 * The sidebar containing the main widget area 4 4 * 5 5 * @package WordPress … … 10 10 if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) || is_active_sidebar( 'sidebar-1' ) ) : ?> 11 11 <div id="secondary" class="secondary"> 12 12 13 <?php if ( has_nav_menu( 'primary' ) ) : ?> 13 <nav id="site-navigation" class="main-navigation" role="navigation"> 14 <?php 15 wp_nav_menu( array( 16 'menu_class' => 'nav-menu', 17 'theme_location' => 'primary', 18 ) ); 19 ?> 20 </nav><!-- .main-navigation --> 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 --> 21 23 <?php endif; ?> 22 24 23 25 <?php if ( has_nav_menu( 'social' ) ) : ?> 24 <nav id="social-navigation" class="social-navigation" role="navigation"> 25 <?php 26 wp_nav_menu( array( 27 'theme_location' => 'social', 28 'depth' => 1, 29 'link_before' => '<span class="screen-reader-text">', 30 'link_after' => '</span>', 31 ) ); 32 ?> 33 </nav><!-- .social-navigation --> 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 --> 34 37 <?php endif; ?> 35 38 36 39 <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?> 37 <div id="widget-area" class="widget-area" role="complementary">38 <?php dynamic_sidebar( 'sidebar-1' ); ?>39 </div><!-- .widget-area -->40 <div id="widget-area" class="widget-area" role="complementary"> 41 <?php dynamic_sidebar( 'sidebar-1' ); ?> 42 </div><!-- .widget-area --> 40 43 <?php endif; ?> 44 41 45 </div><!-- .secondary --> 46 42 47 <?php endif; ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)