| @@ -334,23 +334,13 @@ | ||
| 334 | 334 | ], |
| 335 | 335 | ], |
| 336 | 336 | ]; |
| 337 | 337 | |
| 338 | - if ( Plugin::$instance->experiments->is_feature_active( 'e_atomic_elements' ) ) { | |
| 338 | + if ( Utils::has_pro() && Plugin::$instance->experiments->is_feature_active( 'e_pro_atomic_form' ) ) { | |
| 339 | 339 | $atomic_form_category = [ |
| 340 | 340 | 'title' => esc_html__( 'Atomic Form', 'elementor' ), |
| 341 | + 'hideIfEmpty' => true, | |
| 341 | 342 | ]; |
| 342 | - | |
| 343 | - if ( Utils::has_pro() && Plugin::$instance->experiments->is_feature_active( 'e_pro_atomic_form' ) ) { | |
| 344 | - $atomic_form_category['hideIfEmpty'] = true; | |
| 345 | - } elseif ( ! Utils::has_pro() ) { | |
| 346 | - $atomic_form_category['hideIfEmpty'] = false; | |
| 347 | - $atomic_form_category['promotion'] = [ | |
| 348 | - 'url' => esc_url( 'https://go.elementor.com/go-pro-atomic-form-section/' ), | |
| 349 | - ]; | |
| 350 | - } else { | |
| 351 | - $atomic_form_category['hideIfEmpty'] = true; | |
| 352 | - } | |
| 353 | 343 | |
| 354 | 344 | $this->categories = array_merge( |
| 355 | 345 | [ self::CATEGORY_ATOMIC_ELEMENTS => $this->categories[ self::CATEGORY_ATOMIC_ELEMENTS ] ], |
| 356 | 346 | [ self::CATEGORY_ATOMIC_FORM => $atomic_form_category ], |