HEX
Server: Apache
System: Linux server-634962.emtiyz.com 5.14.0-611.11.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 3 09:47:37 EST 2025 x86_64
User: codo66ho (1003)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/codo66ho/www/wp-content/themes/autodeal/js/admin/sidebars.js
( function( $ ) {
	"use strict";

	var remove_button_markup = '<div class="widgets-holder-toolbar">\
								<a href="" class="button"></a>\
							</div>';

	$.sidebars_remove_button = function( options ) {
		$.each( options.items || [], function ( index, value ) {
			var
			toolbar = $( remove_button_markup ),
			parent  = $( '#' + value ).parent();

			toolbar.find( 'a' )
				.attr( { 'href': ajaxurl + '?action=remove_custom_sidebar&id=' + value } )
				.text( options.button_title || 'remove this area' )
				.on( 'click', function( e ) {
					if ( ! confirm( options.confirm_message || 'Are you sure you want to remove this widget area?' ) ) {
						e.preventDefault();
					}
				} );

			parent.append( toolbar );
		});
	}

	$(function() {
		if ( _sidebarSettings )
			$.sidebars_remove_button( _sidebarSettings );
	});
} ).call( this, jQuery );