????JFIF??x?x????'
Server IP : 104.21.16.1 / Your IP : 216.73.216.18 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/./self/cwd/wp-content/themes/sinatra/inc/customizer/controls/checkbox-group/ |
Upload File : |
;(function($) { "use strict"; wp.customize.controlConstructor['sinatra-checkbox-group'] = wp.customize.Control.extend({ ready: function() { 'use strict'; var control = this, setting = control.setting.get(); control.container.on( 'click', 'input[type="checkbox"]', function() { control.save(); }); }, /** * Store value for range control. * * @since 1.0.0 * * @access private * * @returns {void} */ save: function() { var value = []; this.container.find( 'input[type="checkbox"]' ).each( function( index, el ) { if ( $(el).is( ':checked' ) ) { value.push( $(el).data('id') ); } } ); this.setting.set( value ); }, }); })(jQuery);