Make WordPress Core


Ignore:
Timestamp:
10/29/2013 04:28:11 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: implement an alternate "slider" view for home page featured content. Props iamtakashi for the design and implementation. Slider JavaScript code adapted from FlexSlider v2.2.0 props WooThemes and mbmufffin. See #25550.

File:
1 edited

Legend:

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

    r25788 r25979  
    99?>
    1010<div id="secondary">
    11     <div id="secondary-top">
    12         <?php
    13             $description = get_bloginfo( 'description' );
    14             if ( ! empty ( $description ) ) :
    15         ?>
    16         <h2 class="site-description"><?php echo esc_html( $description ); ?></h2>
    17         <?php endif; ?>
     11    <?php
     12        $description = get_bloginfo( 'description' );
     13        if ( ! empty ( $description ) ) :
     14    ?>
     15    <h2 class="site-description"><?php echo esc_html( $description ); ?></h2>
     16    <?php endif; ?>
    1817
    19         <?php if ( has_nav_menu( 'secondary' ) ) : ?>
    20         <nav role="navigation" class="navigation site-navigation secondary-navigation">
    21             <?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
    22         </nav>
    23         <?php endif; ?>
    24     </div><!-- #secondary-top -->
     18    <?php if ( has_nav_menu( 'secondary' ) ) : ?>
     19    <nav role="navigation" class="navigation site-navigation secondary-navigation">
     20        <?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
     21    </nav>
     22    <?php endif; ?>
    2523
    2624    <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
     
    3028            dynamic_sidebar( 'sidebar-1' );
    3129        ?>
    32     </div><!-- #secondary-bottom -->
     30    </div><!-- #primary-sidebar .primary-sidebar -->
    3331    <?php endif; ?>
    3432</div><!-- #secondary -->
Note: See TracChangeset for help on using the changeset viewer.