PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.0-dev3
Elementor Website Builder – more than just a page builder v4.0.0-dev3
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/managers/elements.php +3 -20 4.2.0-dev24.0.0-dev3 View file →
@@ -20,10 +20,8 @@
20 20 const CATEGORY_ATOMIC_ELEMENTS = 'v4-elements';
21 21 const CATEGORY_ATOMIC_FORM = 'atomic-form';
22 22 const CATEGORY_FAVORITES = 'favorites';
23 23 const CATEGORY_ANGIE_WIDGETS = 'angie-widgets';
24 - const CATEGORY_CUSTOM_WIDGETS = 'custom-widgets';
25 - const CATEGORY_BASIC = 'basic';
26 24
27 25 /**
28 26 * Element types.
29 27 *
@@ -336,24 +334,14 @@
336 334 ],
337 335 ],
338 336 ];
339 337
340 - 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' ) ) {
341 339 $atomic_form_category = [
342 340 'title' => esc_html__( 'Atomic Form', 'elementor' ),
341 + 'hideIfEmpty' => true,
343 342 ];
344 343
345 - if ( Utils::has_pro() && Plugin::$instance->experiments->is_feature_active( 'e_pro_atomic_form' ) ) {
346 - $atomic_form_category['hideIfEmpty'] = true;
347 - } elseif ( ! Utils::has_pro() ) {
348 - $atomic_form_category['hideIfEmpty'] = false;
349 - $atomic_form_category['promotion'] = [
350 - 'url' => esc_url( 'https://go.elementor.com/go-pro-atomic-form-section/' ),
351 - ];
352 - } else {
353 - $atomic_form_category['hideIfEmpty'] = true;
354 - }
355 -
356 344 $this->categories = array_merge(
357 345 [ self::CATEGORY_ATOMIC_ELEMENTS => $this->categories[ self::CATEGORY_ATOMIC_ELEMENTS ] ],
358 346 [ self::CATEGORY_ATOMIC_FORM => $atomic_form_category ],
359 347 array_diff_key( $this->categories, [ self::CATEGORY_ATOMIC_ELEMENTS => true ] )
@@ -384,14 +372,9 @@
384 372 * @param Elements_Manager $this Elements manager instance.
385 373 */
386 374 do_action( 'elementor/elements/categories_registered', $this );
387 375
388 - $after_candidates = Plugin::$instance->experiments->is_feature_active( 'e_atomic_elements' )
389 - ? [ self::CATEGORY_ATOMIC_FORM, self::CATEGORY_ATOMIC_ELEMENTS ]
390 - : [ self::CATEGORY_BASIC ];
391 -
392 - $this->promote_category_after( self::CATEGORY_ANGIE_WIDGETS, $after_candidates );
393 - $this->promote_category_after( self::CATEGORY_CUSTOM_WIDGETS, $after_candidates );
376 + $this->promote_category_after( self::CATEGORY_ANGIE_WIDGETS, [ self::CATEGORY_ATOMIC_FORM, self::CATEGORY_ATOMIC_ELEMENTS ] );
394 377
395 378 $this->categories['wordpress'] = [
396 379 'title' => esc_html__( 'WordPress', 'elementor' ),
397 380 'icon' => 'eicon-wordpress',