HEX
Server: Apache
System: Linux sg2plzcpnl490055.prod.sin2.secureserver.net 4.18.0-553.94.1.lve.el8.x86_64 #1 SMP Thu Jan 22 12:37:22 UTC 2026 x86_64
User: falconiapl2015 (2212252)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/falconiapl2015/public_html/wp-content/plugins/elementskit/modules/sticky-content/init.php
<?php
namespace ElementsKit\Modules\Sticky_Content;

defined( 'ABSPATH' ) || exit;

class Init {
    private $dir;
    private $url;

    public function __construct(){

        // get current directory path
        $this->dir = dirname(__FILE__) . '/';

        // get current module's url
		$this->url = \ElementsKit::plugin_url() . 'modules/sticky-content/';
		
		// // enqueue scripts
		add_action('elementor/frontend/before_enqueue_scripts', [$this, 'editor_scripts']);

		// // include all necessary files
		$this->include_files();

		// // calling the sticky controls
		new \Elementor\ElementsKit_Extend_Sticky();
	}
	
	public function include_files(){
		include $this->dir . 'extend-controls.php';
	}

	public function editor_scripts(){
		wp_enqueue_script( 'elementskit-sticky-content-script-init-defer', $this->url . 'assets/js/elementskit-sticky-content.js', array( 'jquery', 'elementor-frontend' ), \ElementsKit::version(), true );
	}
}