| @@ -120,11 +120,9 @@ | ||
| 120 | 120 | private function install_compare( $version ) { |
| 121 | 121 | $installs_history = Upgrade_Manager::get_installs_history(); |
| 122 | 122 | |
| 123 | 123 | if ( empty( $installs_history ) ) { |
| 124 | - // Fresh installation: upgrade manager hasn't written history yet on this first request. | |
| 125 | - // Use the current plugin version as the effective first-install version. | |
| 126 | - return version_compare( ELEMENTOR_VERSION, $version, '>=' ); | |
| 124 | + return false; | |
| 127 | 125 | } |
| 128 | 126 | |
| 129 | 127 | $cleaned_version = preg_replace( '/-(beta|cloud|dev)\d*$/', '', key( $installs_history ) ); |
| 130 | 128 | |
| @@ -342,13 +340,15 @@ | ||
| 342 | 340 | $this->add_feature( [ |
| 343 | 341 | 'name' => 'container', |
| 344 | 342 | 'title' => esc_html__( 'Container', 'elementor' ), |
| 345 | 343 | 'description' => sprintf( |
| 346 | - /* translators: 1: Link opening tag, 2: Link closing tag, 3: Link opening tag, 4: Link closing tag */ | |
| 347 | - esc_html__( 'Create advanced layouts and responsive designs with %1$sFlexbox%2$s and %3$sGrid%4$s container elements.', 'elementor' ), | |
| 344 | + /* translators: 1: Link opening tag, 2: Link closing tag, 3: Link opening tag, 4: Link closing tag, 5: Link opening tag, 6: Link closing tag */ | |
| 345 | + esc_html__( 'Create advanced layouts and responsive designs with %1$sFlexbox%2$s and %3$sGrid%4$s container elements. Give it a try using the %5$sContainer playground%6$s.', 'elementor' ), | |
| 348 | 346 | '<a target="_blank" href="https://go.elementor.com/wp-dash-flex-container/">', |
| 349 | 347 | '</a>', |
| 350 | 348 | '<a target="_blank" href="https://go.elementor.com/wp-dash-grid-container/">', |
| 349 | + '</a>', | |
| 350 | + '<a target="_blank" href="https://go.elementor.com/wp-dash-flex-container-playground/">', | |
| 351 | 351 | '</a>' |
| 352 | 352 | ), |
| 353 | 353 | 'release_status' => self::RELEASE_STATUS_STABLE, |
| 354 | 354 | 'default' => self::STATE_INACTIVE, |
| @@ -376,17 +376,8 @@ | ||
| 376 | 376 | 'default_active' => true, |
| 377 | 377 | 'minimum_installation_version' => '3.30.0', |
| 378 | 378 | ], |
| 379 | 379 | ] ); |
| 380 | - | |
| 381 | - $this->add_feature( [ | |
| 382 | - 'name' => 'e_panel_promotions', | |
| 383 | - 'title' => esc_html__( 'Panel Promotions', 'elementor' ), | |
| 384 | - 'description' => esc_html__( 'Enable experimental rendering for targeted promotions within the elements panels.', 'elementor' ), | |
| 385 | - 'release_status' => self::RELEASE_STATUS_DEV, | |
| 386 | - 'default' => self::STATE_ACTIVE, | |
| 387 | - 'type' => self::TYPE_HIDDEN, | |
| 388 | - ] ); | |
| 389 | 380 | } |
| 390 | 381 | |
| 391 | 382 | /** |
| 392 | 383 | * Init States |
| @@ -647,8 +638,9 @@ | ||
| 647 | 638 | private function get_feature_settings_label_html( array $feature ) { |
| 648 | 639 | ob_start(); |
| 649 | 640 | |
| 650 | 641 | $is_feature_active = $this->is_feature_active( $feature['name'] ); |
| 642 | + $is_editor_one_enabled = $this->is_feature_active( 'e_editor_one' ); | |
| 651 | 643 | |
| 652 | 644 | $indicator_classes = 'e-experiment__title__indicator'; |
| 653 | 645 | |
| 654 | 646 | if ( $is_feature_active ) { |
| @@ -662,9 +654,12 @@ | ||
| 662 | 654 | <div class="<?php echo $indicator_classes; ?>" data-tooltip="<?php echo $indicator_tooltip; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"></div> |
| 663 | 655 | <label class="e-experiment__title__label" for="e-experiment-<?php echo $feature['name']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php echo $feature['title']; ?></label> |
| 664 | 656 | <?php foreach ( $feature['tags'] as $tag ) { ?> |
| 665 | 657 | <?php |
| 666 | - $tag_classes = 'e-experiment__title__tag e-experiment__title__tag__' . $tag['type'] . ' e-editor-one'; | |
| 658 | + $tag_classes = 'e-experiment__title__tag e-experiment__title__tag__' . $tag['type']; | |
| 659 | + if ( $is_editor_one_enabled ) { | |
| 660 | + $tag_classes .= ' e-editor-one'; | |
| 661 | + } | |
| 667 | 662 | ?> |
| 668 | 663 | <span class="<?php echo esc_attr( $tag_classes ); ?>"><?php echo $tag['label']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></span> |
| 669 | 664 | <?php } ?> |
| 670 | 665 | <?php if ( $feature['deprecated'] ) { ?> |