From 8bc8dcbb45450203a05e86e08c2c9c5d95d99b17 Mon Sep 17 00:00:00 2001 From: Nurit Shahar <43785095+nuritsha@users.noreply.github.com> Date: Sun, 2 Feb 2025 11:19:41 +0200 Subject: [PATCH] Tweak: Plugin description [TMZ-357] (#181) * Tweak: Plugin description [TMZ-357] * fix --- classes/ehp-button.php | 6 ++++-- hello-plus.php | 2 +- readme.txt | 6 +++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/classes/ehp-button.php b/classes/ehp-button.php index c0949848..05684412 100644 --- a/classes/ehp-button.php +++ b/classes/ehp-button.php @@ -22,9 +22,11 @@ class Ehp_Button { private $context = []; private $defaults = []; - private $widget_settings = []; private ?Widget_Base $widget = null; + // initialized on render: + private $widget_settings = []; + const EHP_PREFIX = 'ehp-'; const CLASSNAME_BUTTON = 'ehp-button'; const CLASSNAME_BUTTON_TYPE_PREFIX = 'ehp-button--'; @@ -36,6 +38,7 @@ public function set_context( array $context ) { public function render() { $type = $this->context['type'] ?? ''; $widget_name = $this->context['widget_name']; + $this->widget_settings = $this->widget->get_settings_for_display(); $button_text = $this->get_control_value( 'button_text', '', 'cta_button_text' ); $button_link = $this->get_control_value( 'button_link', [], 'cta_button_link' ); @@ -651,6 +654,5 @@ public function __construct( Widget_Base $widget, $context = [], $defaults = [] $this->widget = $widget; $this->context = $context; $this->defaults = $defaults; - $this->widget_settings = $widget->get_settings_for_display(); } } diff --git a/hello-plus.php b/hello-plus.php index 9ae16571..53ed4077 100644 --- a/hello-plus.php +++ b/hello-plus.php @@ -12,7 +12,7 @@ * * @package HelloPlus * - * Hello+ Plugin is a free WordPress plugin crafted for seamless use with Elementor’s Hello Themes, + * Hello+ Plugin is a free WordPress plugin crafted for seamless use with Elementor’s Hello Biz Theme, * tailored to help beginner web creators, but far from limited to just them, to build professional websites with ease. * It features a guided setup, dedicated kits, streamlined management tools, * and specialized widgets (Hello Widgets) to ensure a fast, efficient site-building experience diff --git a/readme.txt b/readme.txt index 2a650b5e..bfb5b78f 100644 --- a/readme.txt +++ b/readme.txt @@ -9,16 +9,16 @@ License: GPL-3 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html Resources URI: https://github.com/elementor/hello-plus -Hello+ is a free WordPress plugin designed to work seamlessly with Elementor’s Hello Themes. It adds the Plus in the Hello themes. +Hello+ is a free WordPress plugin designed to work seamlessly with Elementor’s Hello Biz Theme. It adds the Plus in the Hello Biz theme. == Description == -Hello+ is a free WordPress plugin designed to work seamlessly with Elementor’s Hello Themes (e.g. [Hello Biz](https://wordpress.org/themes/hello-biz/)). +Hello+ is a free WordPress plugin designed to work seamlessly with Elementor’s [Hello Biz](https://wordpress.org/themes/hello-biz/) Theme. It provides a robust foundation for users to craft unique designs using Elementor’s drag-and-drop site builder and the Hello Themes. Hello+ offers a guided setup, purpose-built design kits, streamlined management tools, and specialized Hello Widgets to deliver a fast and efficient site-building experience. -Hello+ is designed to complement Elementor’s Hello Themes (e.g. [Hello Biz](https://wordpress.org/themes/hello-biz/)), +Hello+ is designed to complement Elementor’s [Hello Biz](https://wordpress.org/themes/hello-biz/) Theme, an essential companion that must be installed alongside Hello+ for optimal functionality. Click [here](https://wordpress.org/themes/hello-biz/) to install Hello Biz.