$89 GRAYBYTE WORDPRESS FILE MANAGER $37

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

/home/bravrvjk/hpgt.org/wp-content/plugins/elementskit-lite/modules/controls/

HOME
Current File : /home/bravrvjk/hpgt.org/wp-content/plugins/elementskit-lite/modules/controls//init.php
<?php 
namespace ElementsKit_Lite\Modules\Controls;

defined( 'ABSPATH' ) || exit;

class Init {

	// instance of all control's base class
	public static function get_url() {
		return \ElementsKit_Lite::module_url() . 'controls/';
	}
	public static function get_dir() {
		return \ElementsKit_Lite::module_dir() . 'controls/';
	}

	public function __construct() {

		// Includes necessary files
		$this->include_files();
		
		// Initilizating control hooks
		add_action( 'elementor/controls/register', array( $this, 'image_choose' ), 11 );
		add_action( 'elementor/controls/register', array( $this, 'ajax_select2' ), 11 );
		add_action( 'elementor/controls/register', array( $this, 'widgetarea' ), 11 );

		// Initilizating control scripts
		add_action( 'elementor/frontend/after_enqueue_styles', array( $this, 'widgetarea_enqueue_styles_editor' ) );
		add_action( 'elementor/frontend/after_enqueue_scripts', array( $this, 'widgetarea_enqueue_scripts_editor' ), 22 );

		// Initilizating control classes
		$widget_area_utils = new Widget_Area_Utils();
		$widget_area_utils->init();
	}

	private function include_files() {
		// Controls_Manager
		include_once self::get_dir() . 'control-manager.php';

		// image choose
		include_once self::get_dir() . 'image-choose.php';

		// ajax select2
		include_once self::get_dir() . 'ajax-select2.php';
		include_once self::get_dir() . 'ajax-select2-api.php';

		// widgetarea
		include_once self::get_dir() . 'widget-area-utils.php';
		include_once self::get_dir() . 'widget-area.php';
	}

	public function image_choose( $controls_manager ) {
		$controls_manager->register( new \ElementsKit_Lite\Modules\Controls\Image_Choose() );
	}

	public function ajax_select2( $controls_manager ) {
		$controls_manager->register( new \ElementsKit_Lite\Modules\Controls\Ajax_Select2() );
	}

	public function widgetarea( $controls_manager ) {
		$controls_manager->register( new \ElementsKit_Lite\Modules\Controls\Widget_Area() );
	}
	
	public function widgetarea_enqueue_scripts_editor() {
		/**
		 * widgetarea-editor.js
		 * 
		 * Use dependencies ['jquery', 'elementor-frontend']
		 * Using ['jquery', 'elementor-editor'] causes Advanced Widgets content editor window not to open
		 */
		if ( is_preview() || \Elementor\Plugin::$instance->preview->is_preview_mode() ) {
			wp_enqueue_script( 'elementskit-js-widgetarea-control-editor', self::get_url() . 'assets/js/widgetarea-editor.js', array( 'jquery', 'elementor-frontend' ), \ElementsKit_Lite::version(), true );
		}
	}
	
	public function widgetarea_enqueue_styles_editor() {
		if ( is_preview() || \Elementor\Plugin::$instance->preview->is_preview_mode() ) {
			wp_enqueue_style( 'elementskit-css-widgetarea-control-editor', self::get_url() . 'assets/css/widgetarea-editor.css', array(), \ElementsKit_Lite::version() );
		}
	}

}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
16 Mar 2026 1.56 AM
bravrvjk / bravrvjk
0755
assets
--
16 Mar 2026 1.56 AM
bravrvjk / bravrvjk
0755
ajax-select2-api.php
6.485 KB
15 Mar 2026 8.35 AM
bravrvjk / bravrvjk
0644
ajax-select2.php
2.47 KB
28 Nov 2023 5.47 PM
bravrvjk / bravrvjk
0644
control-manager.php
0.475 KB
18 May 2022 8.49 PM
bravrvjk / bravrvjk
0644
image-choose.php
2.942 KB
28 Nov 2023 5.47 PM
bravrvjk / bravrvjk
0644
init.php
2.751 KB
18 May 2022 8.49 PM
bravrvjk / bravrvjk
0644
widget-area-modal.php
2.353 KB
3 May 2023 4.18 PM
bravrvjk / bravrvjk
0644
widget-area-utils.php
4.575 KB
15 Mar 2026 8.35 AM
bravrvjk / bravrvjk
0644
widget-area.php
2.283 KB
28 Nov 2023 5.47 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF