Changeset 21642 for trunk/wp-content/themes/twentytwelve/functions.php
- Timestamp:
- 08/28/2012 05:12:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentytwelve/functions.php
r21639 r21642 363 363 $background_color = get_background_color(); 364 364 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' ) ) 366 366 $classes[] = 'full-width'; 367 367 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 } 370 373 371 374 if ( empty( $background_color ) ) … … 385 388 */ 386 389 function 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 ) ) { 388 391 global $content_width; 389 392 $content_width = 960;
Note: See TracChangeset
for help on using the changeset viewer.