|
Server : LiteSpeed System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64 User : gazetufm ( 1431) PHP Version : 8.1.35 Disable Function : NONE Directory : /home2/gazetufm/dumoshi.com/wp-content/plugins/elementor/modules/pro-setup-promotion/ | |
|
Path: //home2/gazetufm/dumoshi.com/wp-content/plugins/elementor/modules/pro-setup-promotion/module.php
Size: 851 B
Permissions: 0644
<?php
namespace Elementor\Modules\ProSetupPromotion;
use Elementor\Core\Base\Module as Base_Module;
use Elementor\Modules\ProSetupPromotion\Data\Controller;
use Elementor\Plugin;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class Module extends Base_Module {
public function get_name() {
return 'pro-setup-promotion';
}
public static function is_active() {
return true;
}
public function __construct() {
parent::__construct();
Plugin::$instance->data_manager_v2->register_controller( new Controller() );
add_filter( 'elementor/editor/localize_settings', [ $this, 'add_editor_config' ], 150 );
}
public function add_editor_config( array $settings ): array {
$config = Setup_State::get_editor_config();
if ( null === $config ) {
return $settings;
}
$settings['proSetupPromotion'] = $config;
return $settings;
}
}