diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index cd17f5e17c..66d677afba 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/functions.php @@ -362,11 +362,14 @@ endif; function twentytwelve_body_class( $classes ) { $background_color = get_background_color(); - if ( ! is_active_sidebar( 1 ) || is_page_template( 'full-width-page.php' ) ) + if ( ! is_active_sidebar( 1 ) || is_page_template( 'page-templates/full-width.php' ) ) $classes[] = 'full-width'; - if ( is_page_template( 'homepage.php' ) && has_post_thumbnail() ) - $classes[] = 'has-post-thumbnail'; + if ( is_page_template( 'page-templates/home.php' ) ) { + $classes[] = 'template-home'; + if ( has_post_thumbnail() ) + $classes[] = 'has-post-thumbnail'; + } if ( empty( $background_color ) ) $classes[] = 'custom-background-empty'; @@ -384,7 +387,7 @@ add_filter( 'body_class', 'twentytwelve_body_class' ); * @since Twenty Twelve 1.0 */ function twentytwelve_content_width() { - if ( is_page_template( 'full-width-page.php' ) || is_attachment() || ! is_active_sidebar( 1 ) ) { + if ( is_page_template( 'page-templates/full-width.php' ) || is_attachment() || ! is_active_sidebar( 1 ) ) { global $content_width; $content_width = 960; } diff --git a/wp-content/themes/twentytwelve/full-width-page.php b/wp-content/themes/twentytwelve/page-templates/full-width.php similarity index 82% rename from wp-content/themes/twentytwelve/full-width-page.php rename to wp-content/themes/twentytwelve/page-templates/full-width.php index ebf71e1f2d..e5c7dd4c3d 100644 --- a/wp-content/themes/twentytwelve/full-width-page.php +++ b/wp-content/themes/twentytwelve/page-templates/full-width.php @@ -1,6 +1,8 @@