HEX
Server: Apache
System: Linux hz.vslconceptsdomains.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: dkfounda (3233)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dkfounda/public_html/wp-content/themes/sydney/js/admin-functions.js
(function($){

	'use strict';

	$( document ).on( 'click', '.sydney-update-fontawesome', function(e){
		e.preventDefault();

		if( confirm( sydneyadm.fontawesomeUpdate.confirmMessage ) ) {
			$.ajax({
				type: 'post',
				url: ajaxurl,
				data: {
					action: 'sydney_update_fontawesome_callback',
					nonce: $(this).data('nonce')
				},
				success: function (response) {
					if( response.success ) {
						window.location.reload();
					} else {
						alert( sydneyadm.fontawesomeUpdate.errorMessage );
					}
				}
			});
		}
		
	} );
}(jQuery));


/**
 * Header update
 */
 (function($){

	'use strict';

	$( document ).on( 'click', '.sydney-update-header', function(e){
		e.preventDefault();

		if( confirm( sydneyadm.headerUpdate.confirmMessage ) ) {
			$.ajax({
				type: 'post',
				url: ajaxurl,
				data: {
					action: 'sydney_header_update_notice_1_8_1_callback',
					nonce: $(this).data('nonce')
				},
				success: function (response) {
					if( response.success ) {
						window.location.reload();
					} else {
						alert( sydneyadm.headerUpdate.errorMessage );
					}
				}
			});
		}
		
	} );
}(jQuery));

/**
 * Header update dismiss
 */
 (function($){

	'use strict';

	$( document ).on( 'click', '.sydney-update-header-dismiss', function(e){
		e.preventDefault();

		if( confirm( sydneyadm.headerUpdateDimiss.confirmMessage ) ) {
			$.ajax({
				type: 'post',
				url: ajaxurl,
				data: {
					action: 'sydney_header_update_dismiss_notice_1_8_2_callback',
					nonce: $(this).data('nonce')
				},
				success: function (response) {
					if( response.success ) {
						window.location.reload();
					} else {
						alert( sydneyadm.headerUpdateDimiss.errorMessage );
					}
				}
			});
		}
		
	} );
}(jQuery));

/**
 * Header/Footer Update.
 */
(function ($) {
	'use strict';

	$(document).on('click', '.sydney-update-hf', function (e) {
		e.preventDefault();

		if (confirm(sydneyadm.headerUpdate.confirmMessage)) {
			$.ajax({
				type: 'post',
				url: ajaxurl,
				data: {
					action: 'sydney_hf_update_notice_2_52_callback',
					nonce: $(this).data('nonce')
				},
				success: function (response) {
					if (response.success) {
						window.location.reload();
					} else {
						alert(sydneyadm.headerUpdate.errorMessage);
					}
				}
			});
		}
	});
})(jQuery);

/**
 * Header/Footer Update Dismiss.
 */
(function ($) {
	'use strict';

	$(document).on('click', '.sydney-update-hf-dismiss', function (e) {
		e.preventDefault();

		if (confirm(sydneyadm.headerUpdateDimiss.confirmMessage)) {
			$.ajax({
				type: 'post',
				url: ajaxurl,
				data: {
					action: 'sydney_hf_update_dismiss_notice_2_52_callback',
					nonce: $(this).data('nonce')
				},
				success: function (response) {
					if (response.success) {
						window.location.reload();
					} else {
						alert(sydneyadm.headerUpdateDimiss.errorMessage);
					}
				}
			});
		}
	});
})(jQuery);