Server IP : 104.21.14.103 / Your IP : 18.118.200.95 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/thread-self/root/home/giankuin/bnnagency.com/wp-content/themes/flatsome/inc/admin/kirki/modules/preset/ |
Upload File : |
/* global kirkiSetSettingValue */ jQuery( document ).ready( function() { // Loop Controls. wp.customize.control.each( function( control ) { // Check if we have a preset defined. if ( control.params && control.params.preset && ! _.isEmpty( control.params.preset ) ) { wp.customize( control.id, function( value ) { // Listen to value changes. value.bind( function( to ) { // Loop preset definitions. _.each( control.params.preset, function( preset, valueToListen ) { // Check if the value set want is the same as the one we're looking for. if ( valueToListen === to ) { // Loop settings defined inside the preset. _.each( preset.settings, function( controlValue, controlID ) { // Set the value. kirkiSetSettingValue.set( controlID, controlValue ); } ); } } ); } ); } ); } } ); } );