Make WordPress Core


Ignore:
Timestamp:
10/08/2013 09:36:46 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: fill browser height to 100% for views with short content. Accounts for footer widgets, in which case the height isn't set to 100% so that the widgets remain visible. Props wycks and taupecat, fixes #25389.

File:
1 edited

Legend:

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

    r25735 r25736  
    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.
     
    477478        $classes[] = 'full-width';
    478479
     480    if ( is_active_sidebar( 'sidebar-4' ) )
     481        $classes[] = 'footer-widgets';
     482
    479483    return $classes;
    480484}
Note: See TracChangeset for help on using the changeset viewer.