PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.0-dev4
Elementor Website Builder – more than just a page builder v4.0.0-dev4
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 +2 -14 4.0.84.0.0-dev4 View file →
@@ -20,9 +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 24
26 25 /**
27 26 * Element types.
28 27 *
@@ -335,24 +334,14 @@
335 334 ],
336 335 ],
337 336 ];
338 337
339 - 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' ) ) {
340 339 $atomic_form_category = [
341 340 'title' => esc_html__( 'Atomic Form', 'elementor' ),
341 + 'hideIfEmpty' => true,
342 342 ];
343 343
344 - if ( Utils::has_pro() && Plugin::$instance->experiments->is_feature_active( 'e_pro_atomic_form' ) ) {
345 - $atomic_form_category['hideIfEmpty'] = true;
346 - } elseif ( ! Utils::has_pro() ) {
347 - $atomic_form_category['hideIfEmpty'] = false;
348 - $atomic_form_category['promotion'] = [
349 - 'url' => esc_url( 'https://go.elementor.com/go-pro-atomic-form-section/' ),
350 - ];
351 - } else {
352 - $atomic_form_category['hideIfEmpty'] = true;
353 - }
354 -
355 344 $this->categories = array_merge(
356 345 [ self::CATEGORY_ATOMIC_ELEMENTS => $this->categories[ self::CATEGORY_ATOMIC_ELEMENTS ] ],
357 346 [ self::CATEGORY_ATOMIC_FORM => $atomic_form_category ],
358 347 array_diff_key( $this->categories, [ self::CATEGORY_ATOMIC_ELEMENTS => true ] )
@@ -384,9 +373,8 @@
384 373 */
385 374 do_action( 'elementor/elements/categories_registered', $this );
386 375
387 376 $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 ] );
389 377
390 378 $this->categories['wordpress'] = [
391 379 'title' => esc_html__( 'WordPress', 'elementor' ),
392 380 'icon' => 'eicon-wordpress',