Make WordPress Core


Ignore:
Timestamp:
08/14/2013 04:38:01 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: first pass at matching code standards achieved with Twenty Thirteen development. See #24858, props obenland.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/sidebar.php

    r24832 r25021  
    99<div id="secondary">
    1010    <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        ?>
    1415        <h2 class="site-description"><?php echo esc_html( $description ); ?></h2>
    15     <?php endif; ?>
     16        <?php endif; ?>
    1617
    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">
    1920            <?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
    2021        </nav>
    21     <?php endif; ?>
     22        <?php endif; ?>
    2223    </div>
    2324
    2425    <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        ?>
    4230    </div><!-- .widget-area -->
    4331</div><!-- #secondary -->
Note: See TracChangeset for help on using the changeset viewer.