Make WordPress Core


Ignore:
Timestamp:
09/18/2012 05:28:36 PM (14 years ago)
Author:
lancewillett
Message:

Twenty Twelve: rename homepage template to front-page; including s/home/front-page/ in many places -- see notes in ticket. See #21909.

File:
1 edited

Legend:

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

    r21882 r21886  
    180180
    181181/**
    182  * Registers our main widget area and the homepage widget areas.
     182 * Registers our main widget area and the front page widget areas.
    183183 *
    184184 * @since Twenty Twelve 1.0
     
    188188                'name' => __( 'Main Sidebar', 'twentytwelve' ),
    189189                'id' => 'sidebar-1',
    190                 'description' => __( 'Appears on posts and pages except the optional Homepage template, which has its own widgets', 'twentytwelve' ),
     190                'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ),
    191191                'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    192192                'after_widget' => '</aside>',
     
    196196
    197197        register_sidebar( array(
    198                 'name' => __( 'First Homepage Widget Area', 'twentytwelve' ),
     198                'name' => __( 'First Front Page Widget Area', 'twentytwelve' ),
    199199                'id' => 'sidebar-2',
    200                 'description' => __( 'Appears when using the optional homepage template with a page set as Static Front Page', 'twentytwelve' ),
     200                'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ),
    201201                'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    202202                'after_widget' => '</aside>',
     
    206206
    207207        register_sidebar( array(
    208                 'name' => __( 'Second Homepage Widget Area', 'twentytwelve' ),
     208                'name' => __( 'Second Front Page Widget Area', 'twentytwelve' ),
    209209                'id' => 'sidebar-3',
    210                 'description' => __( 'Appears when using the optional homepage template with a page set as Static Front Page', 'twentytwelve' ),
     210                'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ),
    211211                'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    212212                'after_widget' => '</aside>',
     
    222222 * @since Twenty Twelve 1.0
    223223 */
    224 function twentytwelve_homepage_sidebar_class() {
     224function twentytwelve_frontpage_sidebar_class() {
    225225        $classes = array( 'widget-area' );
    226226
     
    365365 * 1. Using a full-width layout, when no active widgets in the sidebar
    366366 *    or full-width template.
    367  * 2. A thumbnail in the Homepage page template.
     367 * 2. A thumbnail in the Front Page template.
    368368 * 3. White or empty background color to change the layout and spacing.
    369369 *
     
    379379                $classes[] = 'full-width';
    380380
    381         if ( is_page_template( 'page-templates/home.php' ) ) {
    382                 $classes[] = 'template-home';
     381        if ( is_page_template( 'page-templates/front-page.php' ) ) {
     382                $classes[] = 'template-front-page';
    383383                if ( has_post_thumbnail() )
    384384                        $classes[] = 'has-post-thumbnail';
Note: See TracChangeset for help on using the changeset viewer.