mirror of
https://github.com/10h30/full-screen-morphing-search.git
synced 2026-07-19 22:43:26 +09:00
Updated Kirki from 3.0.34.1 to 3.0.35.3
This commit is contained in:
@@ -54,7 +54,28 @@ jQuery( document ).ready( function() {
|
||||
styles[ cssVar[0] ] = cssVar[1].replace( '$', newVal );
|
||||
}
|
||||
} );
|
||||
jQuery( '#kirki-css-vars' ).html( kirkiCssVars.buildStyle( styles ) ) ;
|
||||
jQuery( '#kirki-css-vars' ).html( kirkiCssVars.buildStyle( styles ) );
|
||||
} );
|
||||
} );
|
||||
} );
|
||||
} );
|
||||
|
||||
wp.customize.bind( 'preview-ready', function() {
|
||||
wp.customize.preview.bind( 'active', function() {
|
||||
_.each( kirkiCssVarFields, function( field ) {
|
||||
wp.customize( field.settings, function( value ) {
|
||||
var styles = kirkiCssVars.getStyles(),
|
||||
newVal = window.parent.wp.customize( value.id ).get();
|
||||
_.each( field.css_vars, function( cssVar ) {
|
||||
if ( 'object' === typeof newVal ) {
|
||||
if ( cssVar[2] && newVal[ cssVar[2] ] ) {
|
||||
styles[ cssVar[0] ] = cssVar[1].replace( '$', newVal[ cssVar[2] ] );
|
||||
}
|
||||
} else {
|
||||
styles[ cssVar[0] ] = cssVar[1].replace( '$', newVal );
|
||||
}
|
||||
} );
|
||||
jQuery( '#kirki-css-vars' ).html( kirkiCssVars.buildStyle( styles ) );
|
||||
} );
|
||||
} );
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user