| @@ -2,14 +2,13 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Elementor\Modules\AtomicOptIn; |
| 4 | 4 | |
| 5 | 5 | use Elementor\Core\Base\Module as BaseModule; |
| 6 | -use Elementor\Core\Experiments\Manager as Experiments_Manager; | |
| 7 | 6 | use Elementor\Modules\AtomicWidgets\OptIn\Opt_In as Atomic_Widgets_Opt_In; |
| 8 | 7 | use Elementor\Plugin; |
| 9 | 8 | |
| 10 | 9 | class Module extends BaseModule { |
| 11 | - const EXPERIMENT_NAME = 'e_opt_in_v4_page'; | |
| 10 | + const EXPERIMENT_NAME = Atomic_Widgets_Opt_In::EXPERIMENT_NAME; | |
| 12 | 11 | const MODULE_NAME = 'editor-v4-opt-in'; |
| 13 | 12 | const WELCOME_POPOVER_DISPLAYED_OPTION = '_e_welcome_popover_displayed'; |
| 14 | 13 | |
| 15 | 14 | public function get_name() { |
| @@ -15,19 +14,8 @@ | ||
| 15 | 14 | public function get_name() { |
| 16 | 15 | return 'atomic-opt-in'; |
| 17 | 16 | } |
| 18 | 17 | |
| 19 | - public static function get_experimental_data(): array { | |
| 20 | - return [ | |
| 21 | - 'name' => self::EXPERIMENT_NAME, | |
| 22 | - 'title' => esc_html__( 'Editor v4 (Opt In Page)', 'elementor' ), | |
| 23 | - 'description' => esc_html__( 'Enable the settings Opt In page', 'elementor' ), | |
| 24 | - 'hidden' => true, | |
| 25 | - 'default' => Experiments_Manager::STATE_ACTIVE, | |
| 26 | - 'release_status' => Experiments_Manager::RELEASE_STATUS_ALPHA, | |
| 27 | - ]; | |
| 28 | - } | |
| 29 | - | |
| 30 | 18 | public function get_opt_in_css_assets_url( string $path ) { |
| 31 | 19 | return $this->get_css_assets_url( $path ); |
| 32 | 20 | } |
| 33 | 21 | |
| @@ -32,12 +20,8 @@ | ||
| 32 | 20 | } |
| 33 | 21 | |
| 34 | 22 | public function __construct() { |
| 35 | 23 | ( new PanelChip() )->init(); |
| 36 | - | |
| 37 | - if ( ! Plugin::$instance->experiments->is_feature_active( self::EXPERIMENT_NAME ) ) { | |
| 38 | - return; | |
| 39 | - } | |
| 40 | 24 | |
| 41 | 25 | ( new Atomic_Widgets_Opt_In() )->init(); |
| 42 | 26 | ( new OptInPage( $this ) )->init(); |
| 43 | 27 | |