WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/11/2013 03:16:59 AM (6 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: merge Front Page Sidebar and Content Sidebar. Props iamtakashi, see #25565; closes #25565.

File:
1 edited

Legend:

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

    r25743 r25762  
    150150    ) );
    151151    register_sidebar( array(
    152         'name'          => __( 'Front Page Sidebar', 'twentyfourteen' ),
     152        'name'          => __( 'Content Sidebar', 'twentyfourteen' ),
    153153        'id'            => 'sidebar-2',
    154         'description'   => __( 'Additional sidebar that appears on the right, on the home page.', 'twentyfourteen' ),
     154        'description'   => __( 'Additional sidebar that appears on the right.', 'twentyfourteen' ),
    155155        'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    156156        'after_widget'  => '</aside>',
     
    159159    ) );
    160160    register_sidebar( array(
    161         'name'          => __( 'Content Sidebar', 'twentyfourteen' ),
     161        'name'          => __( 'Footer Widget Area', 'twentyfourteen' ),
    162162        'id'            => 'sidebar-3',
    163         'description'   => __( 'Additional sidebar that appears on the right, on single posts and pages.', 'twentyfourteen' ),
    164         'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    165         'after_widget'  => '</aside>',
    166         'before_title'  => '<h1 class="widget-title">',
    167         'after_title'   => '</h1>',
    168     ) );
    169     register_sidebar( array(
    170         'name'          => __( 'Footer Widget Area', 'twentyfourteen' ),
    171         'id'            => 'sidebar-4',
    172163        'description'   => __( 'Appears in the footer section of the site.', 'twentyfourteen' ),
    173164        'before_widget' => '<aside id="%1$s" class="widget %2$s">',
     
    471462        $classes[] = 'list-view';
    472463
    473     if ( ( ! is_front_page() && ! is_active_sidebar( 'sidebar-3' ) )
     464    if ( ( ! is_active_sidebar( 'sidebar-2' ) )
    474465        || is_page_template( 'full-width-page.php' )
    475466        || is_page_template( 'contributor-page.php' )
     
    477468        $classes[] = 'full-width';
    478469
    479     if ( is_active_sidebar( 'sidebar-4' ) )
     470    if ( is_active_sidebar( 'sidebar-3' ) )
    480471        $classes[] = 'footer-widgets';
    481472
Note: See TracChangeset for help on using the changeset viewer.