| @@ -21,11 +21,8 @@ | ||
| 21 | 21 | const CATEGORY_ATOMIC_FORM = 'atomic-form'; |
| 22 | 22 | const CATEGORY_FAVORITES = 'favorites'; |
| 23 | 23 | const CATEGORY_ANGIE_WIDGETS = 'angie-widgets'; |
| 24 | 24 | const CATEGORY_CUSTOM_WIDGETS = 'custom-widgets'; |
| 25 | - const CATEGORY_BASIC = 'basic'; | |
| 26 | - const CATEGORY_PRO_ELEMENTS = 'pro-elements'; | |
| 27 | - const CATEGORY_WORDPRESS = 'wordpress'; | |
| 28 | 25 | |
| 29 | 26 | /** |
| 30 | 27 | * Element types. |
| 31 | 28 | * |
| @@ -304,9 +301,9 @@ | ||
| 304 | 301 | 'basic' => [ |
| 305 | 302 | 'title' => esc_html__( 'Basic', 'elementor' ), |
| 306 | 303 | 'icon' => 'eicon-font', |
| 307 | 304 | ], |
| 308 | - self::CATEGORY_PRO_ELEMENTS => [ | |
| 305 | + 'pro-elements' => [ | |
| 309 | 306 | 'title' => esc_html__( 'Pro', 'elementor' ), |
| 310 | 307 | 'promotion' => [ |
| 311 | 308 | 'url' => esc_url( 'https://go.elementor.com/go-pro-section-pro-widget-panel/' ), |
| 312 | 309 | ], |
| @@ -386,23 +383,10 @@ | ||
| 386 | 383 | * @param Elements_Manager $this Elements manager instance. |
| 387 | 384 | */ |
| 388 | 385 | do_action( 'elementor/elements/categories_registered', $this ); |
| 389 | 386 | |
| 390 | - $after_candidates = Plugin::$instance->experiments->is_feature_active( 'e_atomic_elements' ) | |
| 391 | - ? [ self::CATEGORY_ATOMIC_FORM, self::CATEGORY_ATOMIC_ELEMENTS ] | |
| 392 | - : [ self::CATEGORY_BASIC ]; | |
| 393 | - | |
| 394 | - $this->promote_category_after( self::CATEGORY_ANGIE_WIDGETS, $after_candidates ); | |
| 395 | - $this->promote_category_after( self::CATEGORY_CUSTOM_WIDGETS, $after_candidates ); | |
| 396 | - | |
| 397 | - if ( ! Utils::has_pro() && Plugin::$instance->experiments->is_feature_active( 'e_atomic_elements' ) ) { | |
| 398 | - $this->promote_category_after( self::CATEGORY_PRO_ELEMENTS, [ | |
| 399 | - self::CATEGORY_CUSTOM_WIDGETS, | |
| 400 | - self::CATEGORY_ANGIE_WIDGETS, | |
| 401 | - self::CATEGORY_ATOMIC_FORM, | |
| 402 | - self::CATEGORY_ATOMIC_ELEMENTS, | |
| 403 | - ] ); | |
| 404 | - } | |
| 387 | + $this->promote_category_after( self::CATEGORY_ANGIE_WIDGETS, [ self::CATEGORY_ATOMIC_FORM, self::CATEGORY_ATOMIC_ELEMENTS ] ); | |
| 388 | + $this->promote_category_after( self::CATEGORY_CUSTOM_WIDGETS, [ self::CATEGORY_ATOMIC_FORM, self::CATEGORY_ATOMIC_ELEMENTS ] ); | |
| 405 | 389 | |
| 406 | 390 | $this->categories['wordpress'] = [ |
| 407 | 391 | 'title' => esc_html__( 'WordPress', 'elementor' ), |
| 408 | 392 | 'icon' => 'eicon-wordpress', |