????JFIF??x?x????'
Server IP : 104.21.64.1 / Your IP : 216.73.216.145 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 : /home/tempvsty/dchsreunion.com/wp-content/themes/sinatra/inc/customizer/controls/button/ |
Upload File : |
;(function( $ ) { wp.customize.controlConstructor['sinatra-button'] = wp.customize.Control.extend({ ready: function() { 'use strict'; var control = this; control.container.on( 'click', '.button', function(e){ var $this = $(this), action = $this.data( 'ajax-action' ); // Check for ajax action. if ( action ) { e.preventDefault(); $this.siblings( '.spinner' ).addClass( 'activated' ); var data = { _ajax_nonce: sinatra_customizer_localized.wpnonce, action: action, }; $.post( sinatra_customizer_localized.ajaxurl, data, function(response) { // Check response if ( response.success ) { $this.siblings( '.spinner' ).removeClass( 'activated' ); // Should we reload the page? if ( 'undefined' !== typeof response.data.reload && response.data.reload ) { location.reload(); } } }); } }); }, }); })( jQuery );