Changeset 29893
- Timestamp:
- 10/14/2014 07:47:11 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r29847 r29893 219 219 '!twenty{eleven,twelve,thirteen}/**', 220 220 // Third party scripts 221 '!twenty fourteen/js/html5.js'221 '!twenty{fourteen,fifteen}/js/html5.js' 222 222 ] 223 223 }, -
trunk/src/wp-content/themes/twentyfifteen/js/color-scheme-control.js
r29892 r29893 1 /* global colorScheme */ 1 2 /** 2 3 * Theme Customizer enhancements for a better user experience. … … 5 6 */ 6 7 7 ( function( wp , $) {8 ( function( wp ) { 8 9 wp.customize.controlConstructor.colorScheme = wp.customize.Control.extend( { 9 10 ready: function() { … … 17 18 // if Header Text is not hidden, update value 18 19 if ( 'blank' !== wp.customize( 'header_textcolor' ).get() ) { 19 wp.customize( 'header_textcolor' ).set( colorScheme[value] ['colors'][4] );20 headerTextColor.val( colorScheme[value] ['colors'][4] )21 .data( 'data-default-color', colorScheme[value] ['colors'][4] )22 .wpColorPicker( 'color', colorScheme[value] ['colors'][4] )23 .wpColorPicker( 'defaultColor', colorScheme[value] ['colors'][4] );20 wp.customize( 'header_textcolor' ).set( colorScheme[value].colors[4] ); 21 headerTextColor.val( colorScheme[value].colors[4] ) 22 .data( 'data-default-color', colorScheme[value].colors[4] ) 23 .wpColorPicker( 'color', colorScheme[value].colors[4] ) 24 .wpColorPicker( 'defaultColor', colorScheme[value].colors[4] ); 24 25 } 25 26 26 27 // update Background Color 27 wp.customize( 'background_color' ).set( colorScheme[value] ['colors'][0] );28 backgroundColor.val( colorScheme[value] ['colors'][0] )29 .data( 'data-default-color', colorScheme[value] ['colors'][0] )30 .wpColorPicker( 'color', colorScheme[value] ['colors'][0] )31 .wpColorPicker( 'defaultColor', colorScheme[value] ['colors'][0] );28 wp.customize( 'background_color' ).set( colorScheme[value].colors[0] ); 29 backgroundColor.val( colorScheme[value].colors[0] ) 30 .data( 'data-default-color', colorScheme[value].colors[0] ) 31 .wpColorPicker( 'color', colorScheme[value].colors[0] ) 32 .wpColorPicker( 'defaultColor', colorScheme[value].colors[0] ); 32 33 33 34 // update Header/Sidebar Background Color 34 wp.customize( 'header_background_color' ).set( colorScheme[value] ['colors'][1] );35 sidebarColor.val( colorScheme[value] ['colors'][1] )36 .data( 'data-default-color', colorScheme[value] ['colors'][1] )37 .wpColorPicker( 'color', colorScheme[value] ['colors'][1] )38 .wpColorPicker( 'defaultColor', colorScheme[value] ['colors'][1] );35 wp.customize( 'header_background_color' ).set( colorScheme[value].colors[1] ); 36 sidebarColor.val( colorScheme[value].colors[1] ) 37 .data( 'data-default-color', colorScheme[value].colors[1] ) 38 .wpColorPicker( 'color', colorScheme[value].colors[1] ) 39 .wpColorPicker( 'defaultColor', colorScheme[value].colors[1] ); 39 40 40 41 // update Sidebar Text Color 41 wp.customize( 'sidebar_textcolor' ).set( colorScheme[value] ['colors'][4] );42 sidebarTextColor.val( colorScheme[value] ['colors'][4] )43 .data( 'data-default-color', colorScheme[value] ['colors'][4] )44 .wpColorPicker( 'color', colorScheme[value] ['colors'][4] )45 .wpColorPicker( 'defaultColor', colorScheme[value] ['colors'][4] );42 wp.customize( 'sidebar_textcolor' ).set( colorScheme[value].colors[4] ); 43 sidebarTextColor.val( colorScheme[value].colors[4] ) 44 .data( 'data-default-color', colorScheme[value].colors[4] ) 45 .wpColorPicker( 'color', colorScheme[value].colors[4] ) 46 .wpColorPicker( 'defaultColor', colorScheme[value].colors[4] ); 46 47 } ); 47 48 } 48 49 } ); 49 } )( this.wp , jQuery);50 } )( this.wp ); -
trunk/src/wp-content/themes/twentyfifteen/js/functions.js
r29892 r29893 1 /* global screenReaderText */ 1 2 /** 2 3 * Theme functions file
Note: See TracChangeset
for help on using the changeset viewer.