golden hour
/home/godaofbq/dev.hyperredbed.com/wp-content/plugins/shopengine/trunk/core/elementor-controls
⬆️ Go Up
Upload
File/Folder
Size
Actions
ajax-select2.php
2.23 KB
Del
OK
assets
-
Del
OK
control-manager.php
468 B
Del
OK
image-choose.php
2.68 KB
Del
OK
init.php
1.3 KB
Del
OK
Edit: 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()); } }
Save