Tweak: Remove upsell messages for Elementor v3.0.12 and bellow [ED-11459] (#308)

* Use correct theme name

* Tweak: Remove upsell messages for Elementor v3.0.12 and bellow
This commit is contained in:
Rami Yushuvaev 2023-07-20 04:32:40 -07:00 committed by GitHub
parent fb27ace68f
commit d68f854f7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 15 deletions

View file

@ -1,5 +1,5 @@
/** /**
* Elementor Hello Theme Makefile * Hello Elementor theme Makefile
*/ */
'use strict'; 'use strict';



View file

@ -10,7 +10,7 @@ export default class ControlsHook extends $e.modules.hookUI.After {
} }


/** /**
* Get Hello Theme Controls * Get Hello Elementor Theme Controls
* *
* Returns an object in which the keys are control IDs, and the values are the selectors of the elements that need * Returns an object in which the keys are control IDs, and the values are the selectors of the elements that need
* to be targeted in the apply() method. * to be targeted in the apply() method.

View file

@ -62,14 +62,6 @@ class Elementor_Upsell extends \WP_Customize_Control {
esc_html__( 'Activate Elementor', 'hello-elementor' ), esc_html__( 'Activate Elementor', 'hello-elementor' ),
get_template_directory_uri() . '/assets/images/go-pro.svg' get_template_directory_uri() . '/assets/images/go-pro.svg'
); );
} elseif ( defined( 'ELEMENTOR_VERSION' ) && version_compare( ELEMENTOR_VERSION, '3.0.12', '<' ) ) {
$customizer_content .= $this->get_customizer_upsell_html(
esc_html__( 'Update Elementor', 'hello-elementor' ),
esc_html__( 'You need Elementor version 3.1.0 or above to create a cross-site Header and Footer.', 'hello-elementor' ),
wp_nonce_url( 'update-core.php' ),
esc_html__( 'Update Elementor', 'hello-elementor' ),
get_template_directory_uri() . '/assets/images/go-pro.svg'
);
} elseif ( ! hello_header_footer_experiment_active() ) { } elseif ( ! hello_header_footer_experiment_active() ) {
$customizer_content .= $this->get_customizer_upsell_html( $customizer_content .= $this->get_customizer_upsell_html(
esc_html__( 'Set Your Header &amp; Footer', 'hello-elementor' ), esc_html__( 'Set Your Header &amp; Footer', 'hello-elementor' ),

View file

@ -199,7 +199,7 @@ function hello_get_footer_display() {
} }


/** /**
* Add Hello Theme Header & Footer to Experiments. * Add Hello Elementor theme Header & Footer to Experiments.
*/ */
add_action( 'elementor/experiments/default-features-registered', function( \Elementor\Core\Experiments\Manager $experiments_manager ) { add_action( 'elementor/experiments/default-features-registered', function( \Elementor\Core\Experiments\Manager $experiments_manager ) {
$experiments_manager->add_feature( [ $experiments_manager->add_feature( [

View file

@ -1,6 +1,6 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<ruleset name="WordPress.Elementor"> <ruleset name="WordPress.Elementor">
<description>Hello Theme Coding Standard</description> <description>Hello Elementor Theme Coding Standard</description>


<arg name="parallel" value="8" /> <arg name="parallel" value="8" />



View file

@ -98,7 +98,7 @@ Source: https://stocksnap.io/photo/4B83RD7BV9
* Fix: Fatal error when kit doesn't exist or needs to be recreated ([#175](https://github.com/elementor/hello-theme/issues/175)) * Fix: Fatal error when kit doesn't exist or needs to be recreated ([#175](https://github.com/elementor/hello-theme/issues/175))


= 2.5.0 - 2022-01-26 = = 2.5.0 - 2022-01-26 =
* Tweak: Added keyboard navigation to Hello theme menus * Tweak: Added keyboard navigation to Hello Elementor theme menus
* Tweak: Added Skip Links and `#content` for the main wrapper for better accessibility ([#133](https://github.com/elementor/hello-theme/issues/133)) * Tweak: Added Skip Links and `#content` for the main wrapper for better accessibility ([#133](https://github.com/elementor/hello-theme/issues/133))
* Tweak: Added underline for text links in Post Content for better accessibility * Tweak: Added underline for text links in Post Content for better accessibility
* Tweak: Removed `outline: none` from inputs for better accessibility * Tweak: Removed `outline: none` from inputs for better accessibility
@ -107,11 +107,11 @@ Source: https://stocksnap.io/photo/4B83RD7BV9
= 2.4.2 - 2021-12-20 = = 2.4.2 - 2021-12-20 =
* Tweak: Use HTTPS in XFN profile link to prevent mixed content error ([Topic](https://wordpress.org/support/topic/url-scheme-in-xfn-profile-link/)) * Tweak: Use HTTPS in XFN profile link to prevent mixed content error ([Topic](https://wordpress.org/support/topic/url-scheme-in-xfn-profile-link/))
* Tweak: Remove comments in `style.min.css` output ([#179](https://github.com/elementor/hello-theme/issues/179)) * Tweak: Remove comments in `style.min.css` output ([#179](https://github.com/elementor/hello-theme/issues/179))
* Tweak: Promoted Hello Theme Header & Footer experiment status to Stable * Tweak: Promoted Hello Elementor theme Header & Footer experiment status to Stable
* Tweak: Added compatibility for upcoming WordPress version 5.9 * Tweak: Added compatibility for upcoming WordPress version 5.9


= 2.4.1 - 2021-07-07 = = 2.4.1 - 2021-07-07 =
* Fix: Hello Theme Header & Footer experiment should be inactive for existing sites * Fix: Hello Elementor theme Header & Footer experiment should be inactive for existing sites


= 2.4.0 - 2021-06-29 = = 2.4.0 - 2021-06-29 =
* New: Introducing Header and Footer site elements as an Elementor Experiment * New: Introducing Header and Footer site elements as an Elementor Experiment