Make WordPress Core

Ticket #25389: 25389.3.diff

File 25389.3.diff, 1.3 KB (added by taupecat, 11 years ago)

Supercedes 25389.2.diff; flips that patch in the way Lance suggested.

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

    diff --git wp-content/themes/twentyfourteen/functions.php wp-content/themes/twentyfourteen/functions.php
    index 28ef45c..64d514d 100644
    add_action( 'pre_get_posts', 'twentyfourteen_pre_get_posts' ); 
    459459 * 1. Single or multiple authors.
    460460 * 2. Index views.
    461461 * 3. Full-width content layout.
     462 * 4. Presence of footer widgets.
    462463 *
    463464 * @param array $classes A list of existing body class values.
    464465 * @return array The filtered body class list.
    function twentyfourteen_body_classes( $classes ) { 
    476477                || is_attachment() )
    477478                $classes[] = 'full-width';
    478479
     480        if ( is_active_sidebar( 'sidebar-4' ) )
     481                $classes[] = 'footer-widgets';
     482
    479483        return $classes;
    480484}
    481485add_filter( 'body_class', 'twentyfourteen_body_classes' );
  • wp-content/themes/twentyfourteen/style.css

    diff --git wp-content/themes/twentyfourteen/style.css wp-content/themes/twentyfourteen/style.css
    index 22a85e4..2262a4c 100644
    span > object { 
    25482548                float: left;
    25492549                line-height: 1.6363636363;
    25502550                margin: 0 0 0 -100%;
     2551                min-height: 100vh;
    25512552                padding: 0 27px;
    25522553                width: 128px;
    25532554        }
     2555        body.footer-widgets #secondary {
     2556                min-height: 0;
     2557        }
    25542558        .site-description {
    25552559                display: block;
    25562560                line-height: 1.6363636363;