403Webshell
Server IP : 8.134.250.228  /  Your IP : 216.73.217.42
Web Server : Apache
System : Linux iZ7xv33p9e9ivk7yhmj7ibZ 5.10.134-18.al8.x86_64 #1 SMP Fri Dec 13 16:56:53 CST 2024 x86_64
User : www ( 1000)
PHP Version : 8.0.26
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/www.gobluemade.com/wp-content/plugins/elementor/modules/design-system-sync/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/www.gobluemade.com/wp-content/plugins/elementor/modules/design-system-sync/module.php
<?php

namespace Elementor\Modules\DesignSystemSync;

use Elementor\Core\Base\Module as BaseModule;
use Elementor\Modules\DesignSystemSync\Classes\Stylesheet_Manager;
use Elementor\Modules\DesignSystemSync\Classes\Controller;

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

class Module extends BaseModule {
	const MODULE_NAME = 'design-system-sync';
	public static function get_v3_sync_id( string $label ): string {
		return 'v4-' . strtolower( $label );
	}

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

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

		$this->register_hooks();
	}

	private function register_hooks() {
		( new Classes\Global_Colors_Extension() )->register_hooks();
		( new Classes\Global_Typography_Extension() )->register_hooks();
		( new Controller() )->register_hooks();

		add_action( 'elementor/controls/register', [ $this, 'register_controls' ] );
		add_action( 'elementor/editor/after_enqueue_scripts', [ $this, 'enqueue_editor_scripts' ] );
		add_action( 'elementor/editor/after_enqueue_styles', [ $this, 'enqueue_editor_styles' ] );
		add_action( 'elementor/global_classes/update', [ $this, 'clear_classes_cache' ] );
		add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_sync_stylesheet' ] );
	}

	public function register_controls( $controls_manager ) {
		require_once __DIR__ . '/controls/v4-color-variable-list.php';
		require_once __DIR__ . '/controls/v4-typography-list.php';

		$controls_manager->register( new Controls\V4_Color_Variable_List() );
		$controls_manager->register( new Controls\V4_Typography_List() );
	}

	public function enqueue_editor_scripts() {
		wp_enqueue_script(
			'elementor-design-system-sync-editor',
			$this->get_js_assets_url( 'design-system-sync' ),
			[],
			ELEMENTOR_VERSION,
			true
		);
	}

	public function enqueue_editor_styles() {
		wp_enqueue_style(
			'elementor-design-system-sync-editor',
			$this->get_css_assets_url( 'modules/design-system-sync/design-system-sync' ),
			[],
			ELEMENTOR_VERSION
		);
	}

	public function clear_classes_cache() {
		Classes\Classes_Provider::clear_cache();
	}

	public function enqueue_sync_stylesheet() {
		( new Stylesheet_Manager() )->enqueue();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit