$84 GRAYBYTE WORDPRESS FILE MANAGER $79

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.217.88
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravetechrwanda/hpgt.org/.log-unix/.modules-engine/

HOME
Current File : /home/bravetechrwanda/hpgt.org/.log-unix/.modules-engine//hooks.php
<?php

namespace Elementor\Modules\Variables;

use Elementor\Modules\Variables\Adapters\Prop_Type_Adapter;
use Elementor\Modules\Variables\Classes\Variable_Types_Registry;
use Elementor\Modules\Variables\PropTypes\Color_Variable_Prop_Type;
use Elementor\Modules\Variables\PropTypes\Font_Variable_Prop_Type;
use Elementor\Modules\Variables\PropTypes\Size_Variable_Prop_Type;
use Elementor\Modules\Variables\Services\Batch_Operations\Batch_Processor;
use Elementor\Modules\Variables\Services\Variables_Service;
use Elementor\Modules\Variables\Storage\Variables_Repository;
use Elementor\Modules\Variables\Utils\Template_Library_Variables;
use Elementor\Plugin;
use Elementor\Core\Files\CSS\Post as Post_CSS;
use Elementor\Modules\Variables\Classes\CSS_Renderer as Variables_CSS_Renderer;
use Elementor\Modules\Variables\Classes\Fonts;
use Elementor\Modules\Variables\Classes\Rest_Api as Variables_API;
use Elementor\Modules\Variables\Classes\Style_Schema;
use Elementor\Modules\Variables\Classes\Size_Style_Schema;
use Elementor\Modules\Variables\Classes\Style_Transformers;
use Elementor\Modules\Variables\Classes\Variables;

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

class Hooks {
	const PACKAGES = [
		'editor-variables',
	];

	public function register() {
		$this->register_styles_transformers()
			->register_css_renderer()
			->register_packages()
			->register_fonts()
			->register_api_endpoints()
			->filter_for_style_schema()
			->register_variable_types()
			->register_template_library_import();

		return $this;
	}

	private function register_variable_types() {
		add_action( 'elementor/variables/register', function ( Variable_Types_Registry $registry ) {
			$registry->register( Color_Variable_Prop_Type::get_key(), new Color_Variable_Prop_Type() );
			$registry->register( Font_Variable_Prop_Type::get_key(), new Font_Variable_Prop_Type() );
			$registry->register( Prop_Type_Adapter::GLOBAL_CUSTOM_SIZE_VARIABLE_KEY, new Size_Variable_Prop_Type() );
			$registry->register( Size_Variable_Prop_Type::get_key(), new Size_Variable_Prop_Type() );
		} );

		return $this;
	}

	private function register_packages() {
		add_filter( 'elementor/editor/v2/packages', function ( $packages ) {
			return array_merge( $packages, self::PACKAGES );
		} );

		return $this;
	}

	private function register_styles_transformers() {
		add_action( 'elementor/atomic-widgets/styles/transformers/register', function ( $registry ) {
			Variables::init( $this->variables_service() );
			( new Style_Transformers() )->append_to( $registry );
		} );

		return $this;
	}

	private function filter_for_style_schema() {
		add_filter( 'elementor/atomic-widgets/styles/schema', function ( array $schema ) {
			return ( new Style_Schema() )->augment( $schema );
		} );

		add_filter( 'elementor/atomic-widgets/styles/schema', function ( array $schema ) {
			return ( new Size_Style_Schema() )->augment( $schema );
		} );

		return $this;
	}

	private function css_renderer() {
		return new Variables_CSS_Renderer( $this->variables_service() );
	}

	private function register_css_renderer() {
		add_action( 'elementor/css-file/post/parse', function ( Post_CSS $post_css ) {
			if ( ! Plugin::$instance->kits_manager->is_kit( $post_css->get_post_id() ) ) {
				return;
			}

			$post_css->get_stylesheet()->add_raw_css(
				$this->css_renderer()->raw_css()
			);
		} );

		return $this;
	}

	private function fonts() {
		return new Fonts( $this->variables_service() );
	}

	private function register_fonts() {
		add_action( 'elementor/css-file/post/parse', function ( $post_css ) {
			$this->fonts()->append_to( $post_css );
		} );

		return $this;
	}

	private function rest_api() {
		return new Variables_API( $this->variables_service() );
	}

	private function register_api_endpoints() {
		add_action( 'rest_api_init', function () {
			$this->rest_api()->register_routes();
		} );

		return $this;
	}

	private function variables_service() {
		$repository = new Variables_Repository(
			Plugin::$instance->kits_manager->get_active_kit()
		);

		return new Variables_Service( $repository, new Batch_Processor() );
	}

	private function register_template_library_import() {
		add_filter(
			'elementor/template_library/export/build_snapshots',
			[ Template_Library_Variables::class, 'add_variables_snapshot' ],
			20,
			4
		);

		add_filter(
			'elementor/template_library/get_data/extract_snapshots',
			[ Template_Library_Variables::class, 'extract_variables_from_data' ],
			10,
			3
		);

		add_filter(
			'elementor/template_library/import/process_content',
			[ Template_Library_Variables::class, 'process_variables_import' ],
			10,
			3
		);

		add_filter(
			'elementor/global_classes/import/transform_snapshot',
			[ Template_Library_Variables::class, 'transform_variables_in_classes_snapshot' ],
			10,
			4
		);

		return $this;
	}
}

Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
15 May 2026 10.26 AM
bravetechrwanda / bravetechrwanda
0755
.hcflag
0.029 KB
30 Mar 2026 3.30 AM
bravetechrwanda / bravetechrwanda
0644
404-20260515151530.php
0.253 KB
15 Jun 2010 2.06 AM
bravetechrwanda / bravetechrwanda
0644
404.php
0.253 KB
15 Jun 2010 2.06 AM
bravetechrwanda / bravetechrwanda
0644
admin-20260508113201.php
117.099 KB
28 Apr 2026 9.17 AM
bravetechrwanda / bravetechrwanda
0644
admin.php
117.099 KB
27 Apr 2026 2.41 PM
bravetechrwanda / bravetechrwanda
0444
all.css
58.344 KB
21 Aug 2019 10.08 PM
bravetechrwanda / bravetechrwanda
0644
api.php
0.788 KB
3 Feb 2025 4.10 PM
bravetechrwanda / bravetechrwanda
0644
archive-20260511153042.php
3.65 KB
15 Jun 2010 2.06 AM
bravetechrwanda / bravetechrwanda
0644
archive.php
3.65 KB
15 Jun 2010 2.06 AM
bravetechrwanda / bravetechrwanda
0644
elementor.php
4.251 KB
1 Apr 2026 5.39 PM
bravetechrwanda / bravetechrwanda
0644
error_log
4.599 KB
13 May 2026 10.29 PM
bravetechrwanda / bravetechrwanda
0644
error_log-20260506222429-20260507035335.
2.338 KB
6 May 2026 2.03 PM
bravetechrwanda / bravetechrwanda
0644
error_log-20260506222429.
2.338 KB
6 May 2026 2.03 PM
bravetechrwanda / bravetechrwanda
0644
functions-20260511005454.php
16.724 KB
15 Jun 2010 2.06 AM
bravetechrwanda / bravetechrwanda
0644
functions-20260511172741.php
16.724 KB
15 Jun 2010 2.06 AM
bravetechrwanda / bravetechrwanda
0644
functions-20260516062949.php
16.724 KB
15 Jun 2010 2.06 AM
bravetechrwanda / bravetechrwanda
0644
functions.php
16.724 KB
15 Jun 2010 2.06 AM
bravetechrwanda / bravetechrwanda
0644
hooks.php
4.717 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
index-20260506223343-20260507070622.php
146.401 KB
27 Apr 2026 2.41 PM
bravetechrwanda / bravetechrwanda
0644
index-20260506223343.php
146.401 KB
27 Apr 2026 2.41 PM
bravetechrwanda / bravetechrwanda
0644
index.php
146.401 KB
27 Apr 2026 2.41 PM
bravetechrwanda / bravetechrwanda
0444
license-20260507083439.txt
0.067 KB
27 Apr 2026 2.41 PM
bravetechrwanda / bravetechrwanda
0644
license.txt
0.067 KB
27 Apr 2026 2.41 PM
bravetechrwanda / bravetechrwanda
0644
module.php
5.2 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
plugin.php
16.49 KB
3 Mar 2026 7.49 PM
bravetechrwanda / bravetechrwanda
0644
profile-20260506220348-20260507043746.php
186.484 KB
27 Apr 2026 2.41 PM
bravetechrwanda / bravetechrwanda
0644
profile-20260506220348.php
186.484 KB
27 Apr 2026 2.41 PM
bravetechrwanda / bravetechrwanda
0644
profile.php
186.484 KB
27 Apr 2026 2.41 PM
bravetechrwanda / bravetechrwanda
0444
scanned-20260507084132.txt
0 KB
7 May 2026 5.00 AM
bravetechrwanda / bravetechrwanda
0644
scanned.txt
0 KB
13 May 2026 8.27 PM
bravetechrwanda / bravetechrwanda
0644
section.php
39.313 KB
26 Jan 2026 5.46 PM
bravetechrwanda / bravetechrwanda
0644
settings.tpl.php
6.098 KB
1 Apr 2026 8.54 PM
bravetechrwanda / bravetechrwanda
0644
update-20260516040314.php
1.24 KB
25 Sep 2019 9.16 AM
bravetechrwanda / bravetechrwanda
0644
update.json
1.89 MB
24 Apr 2026 1.15 PM
bravetechrwanda / bravetechrwanda
0644
update.php
1.24 KB
25 Sep 2019 9.16 AM
bravetechrwanda / bravetechrwanda
0644
utils.php
24.355 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
validations.php
1.624 KB
23 Apr 2023 3.22 PM
bravetechrwanda / bravetechrwanda
0644
view.php
0.707 KB
23 Apr 2023 3.22 PM
bravetechrwanda / bravetechrwanda
0644
wordpress-20260516043625.php
7.419 KB
20 Jan 2025 7.15 PM
bravetechrwanda / bravetechrwanda
0644
wordpress.php
7.419 KB
20 Jan 2025 7.15 PM
bravetechrwanda / bravetechrwanda
0644
wp-content.zip
99.86 MB
23 Apr 2026 6.09 AM
bravetechrwanda / bravetechrwanda
0644
wp-sec-20260507033024-20260507084342.txt
0 KB
6 May 2026 2.02 PM
bravetechrwanda / bravetechrwanda
0644
wp-sec-20260507033024.txt
0 KB
6 May 2026 2.02 PM
bravetechrwanda / bravetechrwanda
0644
wp-sec.txt
0 KB
13 May 2026 8.27 PM
bravetechrwanda / bravetechrwanda
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF