HEX
Server: Apache
System: Linux ecngx285.inmotionhosting.com 4.18.0-553.79.1.lve.el8.x86_64 #1 SMP Wed Oct 15 17:59:35 UTC 2025 x86_64
User: zeusxp5 (3862)
PHP: 8.3.28
Disabled: NONE
Upload Files
File: /home/zeusxp5/zenoxpressjobs.com/wp-content/plugins/shopengine/core/elementor-controls/init.php
<?php 
namespace ShopEngine\Core\Elementor_Controls;

defined( 'ABSPATH' ) || exit;

class Init{

    // instance of all control's base class
    public static function get_url(){
        return \ShopEngine::core_url() . 'elementor-controls/';
    }
    public static function get_dir(){
        return \ShopEngine::core_dir() . 'elementor-controls/';
    }

    public function __construct() {

        // Includes necessary files
        $this->include_files();
        
        // Initilizating control hooks
        add_action('elementor/controls/controls_registered', array( $this, 'image_choose' ), 12 );
        add_action('elementor/controls/controls_registered', array( $this, 'ajax_select2' ), 12 );
    }

    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';
    }

    public function image_choose( $controls_manager ) {
        $controls_manager->register(new \ShopEngine\Core\Elementor_Controls\Image_Choose());
    }

    public function ajax_select2( $controls_manager ) {
        $controls_manager->register(new \ShopEngine\Core\Elementor_Controls\Ajax_Select2());
    }
}