Skip to content

Commit

Permalink
Merge branch 'master' into feature/TMZ-279-header-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mserino authored Jan 22, 2025
2 parents 75a42f6 + 3ae06f0 commit c8bdc2c
Show file tree
Hide file tree
Showing 9 changed files with 62 additions and 56 deletions.
4 changes: 2 additions & 2 deletions hello-plus.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Puts the PLUS in Elementor's Hello+ themes
* Plugin URI: https://elementor.com
* Author: Elementor.com
* Version: 1.1.1
* Version: 1.1.2
* License: GPL-3
* License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
*
Expand All @@ -29,7 +29,7 @@
exit; // Exit if accessed directly.
}

define( 'HELLOPLUS_VERSION', '1.1.1' );
define( 'HELLOPLUS_VERSION', '1.1.2' );
define( 'HELLO_PLUS_VERSION', HELLOPLUS_VERSION );

define( 'HELLOPLUS__FILE__', __FILE__ );
Expand Down
8 changes: 4 additions & 4 deletions modules/admin/classes/ajax/setup-wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

class Setup_Wizard {

public function __construct() {
add_action( 'wp_ajax_helloplus_setup_wizard', [ $this, 'ajax_setup_wizard' ] );
}

public function ajax_setup_wizard() {
check_ajax_referer( 'updates', 'nonce' );

Expand Down Expand Up @@ -44,4 +40,8 @@ public function ajax_setup_wizard() {
wp_send_json_error( [ 'message' => __( 'Invalid step.', 'hello-plus' ) ] );
}
}

public function __construct() {
add_action( 'wp_ajax_helloplus_setup_wizard', [ $this, 'ajax_setup_wizard' ] );
}
}
4 changes: 4 additions & 0 deletions modules/admin/components/admin-menu-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public function redirect_on_first_activation() {
return;
}

if ( ! is_admin() ) {
return;
}

delete_transient( self::SETUP_WIZARD_TRANSIENT_NAME );

if ( Utils::are_we_on_elementor_domains() ) {
Expand Down
12 changes: 6 additions & 6 deletions modules/admin/components/api-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ class Api_Controller {

protected $ajax_classes = [];

public function __construct() {
$this->endpoints['onboarding-settings'] = new Onboarding_Settings();

$this->ajax_classes['setup-wizard'] = new Setup_Wizard();
}

public function get_endpoint( string $endpoint ) {
if ( ! isset( $this->endpoints[ $endpoint ] ) ) {
throw new \Exception( esc_html__( 'Endpoint not found', 'hello-plus' ) );
}

return $this->endpoints[ $endpoint ];
}

public function __construct() {
$this->endpoints['onboarding-settings'] = new Onboarding_Settings();

$this->ajax_classes['setup-wizard'] = new Setup_Wizard();
}
}
9 changes: 4 additions & 5 deletions modules/admin/components/scripts-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
}

class Scripts_Controller {

public function __construct() {
add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_hello_plus_onboarding_scripts' ] );
}

public function enqueue_hello_plus_onboarding_scripts() {
$screen = get_current_screen();

Expand Down Expand Up @@ -44,4 +39,8 @@ public function enqueue_hello_plus_onboarding_scripts() {

wp_set_script_translations( $handle, 'hello-plus' );
}

public function __construct() {
add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_hello_plus_onboarding_scripts' ] );
}
}
68 changes: 34 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"slug": "hello-plus",
"homepage": "https://elementor.com/",
"description": "A quick-start theme for Elementor.",
"version": "1.1.1",
"version": "1.1.2",
"scripts": {
"start": "wp-scripts start",
"build": "wp-scripts build",
Expand Down
1 change: 0 additions & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
}

use HelloPlus\Includes\Module_Base;
use HelloPlus\Includes\Utils;

/**
* Theme's main class,
Expand Down
10 changes: 7 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: elemntor
Tags: elementor, themes, hello themes, hello plus, widgets
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 1.1.1
Stable tag: 1.1.2
Requires PHP: 7.4
License: GPL-3
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
Expand Down Expand Up @@ -79,8 +79,12 @@ To install Hello+, follow the steps below:
For documentation and tutorials, visit our [Knowledge Base](https://elementor.com/help/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme).

== Changelog ==
= 1.1.0 - 2025-01-14 =
* Fix: Flex-Hero widget control labels & icons mismatch
= 1.1.2 - 2025-01-21 =
* Tweak: Onboarding wizard improvements

= 1.1.1 - 2025-01-16 =
* Tweak: Flex-Hero widget allow inline editing
* Fix: Flex-Hero widget drop shadow

= 1.1.0 - 2025-01-14 =
* New: Flex-Hero widget
Expand Down

0 comments on commit c8bdc2c

Please sign in to comment.