Ticket #29577: 29577.4.diff
File 29577.4.diff, 1.7 KB (added by , 10 years ago) |
---|
-
src/wp-content/themes/twentythirteen/js/theme-customizer.js
21 21 wp.customize( 'header_textcolor', function( value ) { 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)', 28 29 'position': 'absolute' -
src/wp-content/themes/twentytwelve/js/theme-customizer.js
53 53 value.bind( function( to ) { 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 } ); 64 65 } )( jQuery );