| @@ -22,8 +22,10 @@ | ||
| 22 | 22 | const CATEGORY_FAVORITES = 'favorites'; |
| 23 | 23 | const CATEGORY_ANGIE_WIDGETS = 'angie-widgets'; |
| 24 | 24 | const CATEGORY_CUSTOM_WIDGETS = 'custom-widgets'; |
| 25 | 25 | const CATEGORY_BASIC = 'basic'; |
| 26 | + const CATEGORY_PRO_ELEMENTS = 'pro-elements'; | |
| 27 | + const CATEGORY_WORDPRESS = 'wordpress'; | |
| 26 | 28 | |
| 27 | 29 | /** |
| 28 | 30 | * Element types. |
| 29 | 31 | * |
| @@ -302,9 +304,9 @@ | ||
| 302 | 304 | 'basic' => [ |
| 303 | 305 | 'title' => esc_html__( 'Basic', 'elementor' ), |
| 304 | 306 | 'icon' => 'eicon-font', |
| 305 | 307 | ], |
| 306 | - 'pro-elements' => [ | |
| 308 | + self::CATEGORY_PRO_ELEMENTS => [ | |
| 307 | 309 | 'title' => esc_html__( 'Pro', 'elementor' ), |
| 308 | 310 | 'promotion' => [ |
| 309 | 311 | 'url' => esc_url( 'https://go.elementor.com/go-pro-section-pro-widget-panel/' ), |
| 310 | 312 | ], |
| @@ -390,8 +392,17 @@ | ||
| 390 | 392 | : [ self::CATEGORY_BASIC ]; |
| 391 | 393 | |
| 392 | 394 | $this->promote_category_after( self::CATEGORY_ANGIE_WIDGETS, $after_candidates ); |
| 393 | 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 | + } | |
| 394 | 405 | |
| 395 | 406 | $this->categories['wordpress'] = [ |
| 396 | 407 | 'title' => esc_html__( 'WordPress', 'elementor' ), |
| 397 | 408 | 'icon' => 'eicon-wordpress', |