Changeset 23568 for trunk/wp-content/themes/twentytwelve/functions.php
- Timestamp:
- 03/01/2013 05:14:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentytwelve/functions.php
r23427 r23568 384 384 function twentytwelve_body_class( $classes ) { 385 385 $background_color = get_background_color(); 386 $background_image = get_background_image(); 386 387 387 388 if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'page-templates/full-width.php' ) ) … … 396 397 } 397 398 398 if ( empty( $background_color ) ) 399 $classes[] = 'custom-background-empty'; 400 elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) ) 401 $classes[] = 'custom-background-white'; 399 if ( empty( $background_image ) ) { 400 if ( empty( $background_color ) ) 401 $classes[] = 'custom-background-empty'; 402 elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) ) 403 $classes[] = 'custom-background-white'; 404 } 402 405 403 406 // Enable custom font class only if the font CSS is queued to load. … … 446 449 */ 447 450 function twentytwelve_customize_preview_js() { 448 wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '201 20827', true );451 wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20130301', true ); 449 452 } 450 453 add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' );
Note: See TracChangeset
for help on using the changeset viewer.