Make WordPress Core

Ticket #35969: 35969.diff

File 35969.diff, 1.7 KB (added by celloexpressions, 9 years ago)

First pass.

  • src/wp-content/themes/twentyfourteen/functions.php

     
    7878        set_post_thumbnail_size( 672, 372, true );
    7979        add_image_size( 'twentyfourteen-full-width', 1038, 576, true );
    8080
     81        // Add theme support for logos.
     82        add_theme_support( 'site-logo', array( 'size' => 'medium' ) );
     83
    8184        // This theme uses wp_nav_menu() in two locations.
    8285        register_nav_menus( array(
    8386                'primary'   => __( 'Top primary menu', 'twentyfourteen' ),
  • src/wp-content/themes/twentyfourteen/sidebar.php

     
    1515        <h2 class="site-description"><?php echo esc_html( $description ); ?></h2>
    1616        <?php endif; ?>
    1717
     18        <?php the_site_logo(); ?>
     19
    1820        <?php if ( has_nav_menu( 'secondary' ) ) : ?>
    1921        <nav role="navigation" class="navigation site-navigation secondary-navigation">
    2022                <?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
  • src/wp-content/themes/twentyfourteen/style.css

     
    931931        width: 100%;
    932932}
    933933
     934.site-logo {
     935        max-width: 100%;
     936        max-width: calc(100% + 60px);
     937        margin: 0 -30px;
     938}
    934939
     940
    935941/**
    936942 * 5.0 Navigation
    937943 * -----------------------------------------------------------------------------