HEX
Server: Apache
System: Linux webm005.cluster114.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: epubdjye (129326)
PHP: 8.5.7
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/e/p/u/epubdjye/www17/wp-content/themes/hestia/assets/js/admin/hestia-pagebuilder.js
/**
 * Script for page builders integration
 *
 * @package Hestia
 */

/* global hestiaBuilderIntegration */

jQuery( document ).ready(
	function () {
			jQuery( '.main > section:not(#about)' ).each(
				function() {

					if ( jQuery( this ) !== 'undefined' ) {
						jQuery( this ).append( '<span class="hestia-pagebuilder-frontpage-controls"><a class="hestia-pagebuilder-section-remove"><span class="dashicons dashicons-hidden"></span>' + hestiaBuilderIntegration.hideString + '</a></span>' );
					}
				}
			);

			jQuery( '.hestia-pagebuilder-section-remove' ).on(
				'click', function() {
					var clickedSection = jQuery( this ).parent().parent();
					var sectionId      = jQuery( clickedSection ).attr( 'id' );

					jQuery.ajax(
						{
							url: hestiaBuilderIntegration.ajaxurl,
							data: {
								section: sectionId,
								nonce: hestiaBuilderIntegration.nonce,
								action: 'hestia_pagebuilder_hide_frontpage_section'
							},
							type: 'post',
							success: function() {
								jQuery( clickedSection ).fadeOut();
							}
						}
					);
				}
			);
	}
);