Changeset 25021 for trunk/src/wp-content/themes/twentyfourteen/sidebar.php
- Timestamp:
- 08/14/2013 04:38:01 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/sidebar.php
r24832 r25021 9 9 <div id="secondary"> 10 10 <div id="secondary-top"> 11 <?php 12 $description = get_bloginfo( 'description' ); 13 if ( ! empty ( $description ) ) : ?> 11 <?php 12 $description = get_bloginfo( 'description' ); 13 if ( ! empty ( $description ) ) : 14 ?> 14 15 <h2 class="site-description"><?php echo esc_html( $description ); ?></h2> 15 <?php endif; ?>16 <?php endif; ?> 16 17 17 <?php if ( has_nav_menu( 'secondary' ) ) : ?>18 <nav role="navigation" class=" site-navigation secondary-navigation">18 <?php if ( has_nav_menu( 'secondary' ) ) : ?> 19 <nav role="navigation" class="navigation secondary-navigation"> 19 20 <?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?> 20 21 </nav> 21 <?php endif; ?>22 <?php endif; ?> 22 23 </div> 23 24 24 25 <div id="secondary-bottom" class="widget-area" role="complementary"> 25 <?php do_action( 'before_sidebar' ); ?> 26 27 <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?> 28 <aside id="categories" class="widget widget_categories"> 29 <h1 class="widget-title"><?php _e( 'Categories', 'twentyfourteen' ); ?></h1> 30 <ul> 31 <?php wp_list_categories( array( 'title_li' => '' ) ); ?> 32 </ul> 33 </aside> 34 35 <aside id="archives" class="widget widget_archive"> 36 <h1 class="widget-title"><?php _e( 'Archives', 'twentyfourteen' ); ?></h1> 37 <ul> 38 <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?> 39 </ul> 40 </aside> 41 <?php endif; // end sidebar widget area ?> 26 <?php 27 do_action( 'before_sidebar' ); 28 dynamic_sidebar( 'sidebar-1' ); 29 ?> 42 30 </div><!-- .widget-area --> 43 31 </div><!-- #secondary -->
Note: See TracChangeset
for help on using the changeset viewer.