Make WordPress Core


Ignore:
Timestamp:
08/28/2012 05:12:10 PM (14 years ago)
Author:
lancewillett
Message:

Twenty Twelve: rename custom page templates and place in sub-directory. Closes #21715.

File:
1 edited

Legend:

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

    r21639 r21642  
    363363        $background_color = get_background_color();
    364364
    365         if ( ! is_active_sidebar( 1 ) || is_page_template( 'full-width-page.php' ) )
     365        if ( ! is_active_sidebar( 1 ) || is_page_template( 'page-templates/full-width.php' ) )
    366366                $classes[] = 'full-width';
    367367
    368         if ( is_page_template( 'homepage.php' ) && has_post_thumbnail() )
    369                 $classes[] = 'has-post-thumbnail';
     368        if ( is_page_template( 'page-templates/home.php' ) ) {
     369                $classes[] = 'template-home';
     370                if ( has_post_thumbnail() )
     371                        $classes[] = 'has-post-thumbnail';
     372        }
    370373
    371374        if ( empty( $background_color ) )
    … …  
    385388 */
    386389function twentytwelve_content_width() {
    387         if ( is_page_template( 'full-width-page.php' ) || is_attachment() || ! is_active_sidebar( 1 ) ) {
     390        if ( is_page_template( 'page-templates/full-width.php' ) || is_attachment() || ! is_active_sidebar( 1 ) ) {
    388391                global $content_width;
    389392                $content_width = 960;
Note: See TracChangeset for help on using the changeset viewer.