
<!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: module.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

namespace Elementor\Modules\Variables;

use Elementor\Core\Base\Module as BaseModule;
use Elementor\Modules\AtomicWidgets\Module as AtomicWidgetsModule;
use Elementor\Modules\Variables\Classes\Variable_Types_Registry;
use Elementor\Modules\Variables\ImportExportCustomization\Import_Export_Customization;
use Elementor\Modules\Variables\PropTypes\Color_Variable_Prop_Type;
use Elementor\Modules\Variables\PropTypes\Font_Variable_Prop_Type;
use Elementor\Modules\Variables\Storage\Constants;
use Elementor\Plugin;

if ( ! defined( &#039;ABSPATH&#039; ) ) {
	exit;
}

class Module extends BaseModule {
	const MODULE_NAME = &#039;e-variables&#039;;
	const EXPERIMENT_NAME = AtomicWidgetsModule::EXPERIMENT_NAME;

	private Variable_Types_Registry $variable_types_registry;

	public function get_name() {
		return self::MODULE_NAME;
	}

	private function hooks() {
		return new Hooks();
	}

	public function __construct() {
		parent::__construct();

		if ( ! $this-&gt;is_experiment_active() ) {
			return;
		}

		$this-&gt;hooks()-&gt;register();

		( new Import_Export_Customization() )-&gt;register_hooks();

		add_action( &#039;init&#039;, [ $this, &#039;init_variable_types_registry&#039; ] );
		add_filter( &#039;elementor/kit/meta_to_preserve_on_kit_import&#039;, [ $this, &#039;add_meta_to_preserve_on_kit_import&#039; ] );
		add_action( &#039;elementor/editor/before_enqueue_scripts&#039;, fn () =&gt; $this-&gt;enqueue_editor_scripts() );
	}

	private function is_experiment_active(): bool {
		return Plugin::$instance-&gt;experiments-&gt;is_feature_active( AtomicWidgetsModule::EXPERIMENT_NAME );
	}

	public function init_variable_types_registry(): void {
		$this-&gt;variable_types_registry = new Variable_Types_Registry();

		do_action( &#039;elementor/variables/register&#039;, $this-&gt;variable_types_registry );
	}


	public function get_variable_types_registry(): Variable_Types_Registry {
		return $this-&gt;variable_types_registry;
	}

	private function get_quota_config(): array {
		return [
			Color_Variable_Prop_Type::get_key() =&gt; 100000,
			Font_Variable_Prop_Type::get_key() =&gt; 100000,
		];
	}

	public function enqueue_editor_scripts() {

		wp_add_inline_script(
			&#039;elementor-common&#039;,
			&#039;window.ElementorVariablesQuotaConfig = &#039; . wp_json_encode( $this-&gt;get_quota_config() ) . &#039;;&#039;,
			&#039;before&#039;
		);
	}

	public function add_meta_to_preserve_on_kit_import( array $meta_keys ): array {
		return array_merge( $meta_keys, [
			Constants::VARIABLES_META_KEY,
		] );
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
