Make WordPress Core


Ignore:
Timestamp:
08/20/2013 05:52:22 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: change to just one footer widget area and use Masonry JS to display the widgets in columns. Props Frank Klein, closes #24874.

File:
1 edited

Legend:

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

    r24832 r25065  
    11<?php
    22/**
    3  * The Sidebar containing the main widget areas.
     3 * The Sidebar containing the main widget area.
    44 *
    55 * @package WordPress
     
    88?>
    99<?php
    10     if (   ! is_active_sidebar( 'sidebar-3' )
    11         && ! is_active_sidebar( 'sidebar-4' )
    12         && ! is_active_sidebar( 'sidebar-5' )
    13         && ! is_active_sidebar( 'sidebar-6' )
    14         && ! is_active_sidebar( 'sidebar-7' )
    15     )
    16         return;
     10if (   ! is_active_sidebar( 'sidebar-3' ) )
     11    return;
    1712?>
    18 <div id="supplementary" <?php twentyfourteen_footer_sidebar_class(); ?>>
     13<div id="supplementary">
     14
    1915    <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
    20     <div id="footer-sidebar-one" class="widget-area" role="complementary">
     16    <div id="footer-sidebar" class="widget-area" role="complementary">
    2117        <?php dynamic_sidebar( 'sidebar-3' ); ?>
    22     </div><!-- #first .widget-area -->
     18    </div><!-- #footer-sidebar -->
    2319    <?php endif; ?>
    2420
    25     <?php if ( is_active_sidebar( 'sidebar-4' ) ) : ?>
    26     <div id="footer-sidebar-two" class="widget-area" role="complementary">
    27         <?php dynamic_sidebar( 'sidebar-4' ); ?>
    28     </div><!-- #second .widget-area -->
    29     <?php endif; ?>
    30 
    31     <?php if ( is_active_sidebar( 'sidebar-5' ) ) : ?>
    32     <div id="footer-sidebar-three" class="widget-area" role="complementary">
    33         <?php dynamic_sidebar( 'sidebar-5' ); ?>
    34     </div><!-- #third .widget-area -->
    35     <?php endif; ?>
    36 
    37     <?php if ( is_active_sidebar( 'sidebar-6' ) ) : ?>
    38     <div id="footer-sidebar-four" class="widget-area" role="complementary">
    39         <?php dynamic_sidebar( 'sidebar-6' ); ?>
    40     </div><!-- #fourth .widget-area -->
    41     <?php endif; ?>
    42     <?php if ( is_active_sidebar( 'sidebar-7' ) ) : ?>
    43     <div id="footer-sidebar-five" class="widget-area" role="complementary">
    44         <?php dynamic_sidebar( 'sidebar-7' ); ?>
    45     </div><!-- #fourth .widget-area -->
    46     <?php endif; ?>
    4721</div><!-- #supplementary -->
Note: See TracChangeset for help on using the changeset viewer.