Changeset 30482
- Timestamp:
- 11/20/2014 05:05:27 PM (10 years ago)
- Location:
- trunk/src/wp-content/themes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentythirteen/functions.php
r30390 r30482 548 548 */ 549 549 function twentythirteen_customize_preview_js() { 550 wp_enqueue_script( 'twentythirteen-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '201 30226', true );550 wp_enqueue_script( 'twentythirteen-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20141120', true ); 551 551 } 552 552 add_action( 'customize_preview_init', 'twentythirteen_customize_preview_js' ); -
trunk/src/wp-content/themes/twentythirteen/js/theme-customizer.js
r29903 r30482 22 22 value.bind( function( to ) { 23 23 if ( 'blank' == to ) { 24 if ( 'remove-header' == _wpCustomizeSettings.values.header_image )24 if ( 'remove-header' == wp.customize.instance( 'header_image' ).get() ) { 25 25 $( '.home-link' ).css( 'min-height', '0' ); 26 } 26 27 $( '.site-title, .site-description' ).css( { 27 28 'clip': 'rect(1px, 1px, 1px, 1px)', -
trunk/src/wp-content/themes/twentytwelve/functions.php
r29095 r30482 495 495 */ 496 496 function twentytwelve_customize_preview_js() { 497 wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '201 30301', true );497 wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20141120', true ); 498 498 } 499 499 add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' ); -
trunk/src/wp-content/themes/twentytwelve/js/theme-customizer.js
r29903 r30482 54 54 var body = $( 'body' ); 55 55 56 if ( '' != to )56 if ( '' !== to ) { 57 57 body.removeClass( 'custom-background-empty custom-background-white' ); 58 else if ( 'rgb(255, 255, 255)' == body.css( 'background-color' ) )58 } else if ( 'rgb(255, 255, 255)' === body.css( 'background-color' ) ) { 59 59 body.addClass( 'custom-background-white' ); 60 else if ( 'rgb(230, 230, 230)' == body.css( 'background-color' ) && '' == _wpCustomizeSettings.values.background_color )60 } else if ( 'rgb(230, 230, 230)' === body.css( 'background-color' ) && '' === wp.customize.instance( 'background_color' ).get() ) { 61 61 body.addClass( 'custom-background-empty' ); 62 } 62 63 } ); 63 64 } );
Note: See TracChangeset
for help on using the changeset viewer.