| @@ -334,13 +334,23 @@ | ||
| 334 | 334 | ], |
| 335 | 335 | ], |
| 336 | 336 | ]; |
| 337 | 337 | |
| 338 | - if ( Utils::has_pro() && Plugin::$instance->experiments->is_feature_active( 'e_pro_atomic_form' ) ) { | |
| 338 | + if ( Plugin::$instance->experiments->is_feature_active( 'e_atomic_elements' ) ) { | |
| 339 | 339 | $atomic_form_category = [ |
| 340 | 340 | 'title' => esc_html__( 'Atomic Form', 'elementor' ), |
| 341 | - 'hideIfEmpty' => true, | |
| 342 | 341 | ]; |
| 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 | + } | |
| 343 | 353 | |
| 344 | 354 | $this->categories = array_merge( |
| 345 | 355 | [ self::CATEGORY_ATOMIC_ELEMENTS => $this->categories[ self::CATEGORY_ATOMIC_ELEMENTS ] ], |
| 346 | 356 | [ self::CATEGORY_ATOMIC_FORM => $atomic_form_category ], |