From cfc921a39fa4e430ce17bdf3e35dd3e16ad6b574 Mon Sep 17 00:00:00 2001 From: Nurit Date: Mon, 2 Dec 2024 20:21:48 +0200 Subject: [PATCH 1/4] Tweak: Use eicons [TMZ-212] --- modules/content/widgets/cta.php | 2 +- modules/content/widgets/hero.php | 2 +- modules/forms/widgets/form.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/content/widgets/cta.php b/modules/content/widgets/cta.php index 546e7915..1e2fe5f5 100644 --- a/modules/content/widgets/cta.php +++ b/modules/content/widgets/cta.php @@ -39,7 +39,7 @@ public function get_keywords(): array { } public function get_icon(): string { - return 'eicon-single-page'; + return 'eicon-ehp-cta'; } public function get_style_depends(): array { diff --git a/modules/content/widgets/hero.php b/modules/content/widgets/hero.php index 7400e74a..e5d7c60c 100644 --- a/modules/content/widgets/hero.php +++ b/modules/content/widgets/hero.php @@ -41,7 +41,7 @@ public function get_keywords(): array { } public function get_icon(): string { - return 'eicon-single-page'; + return 'eicon-ehp-hero'; } public function get_style_depends(): array { diff --git a/modules/forms/widgets/form.php b/modules/forms/widgets/form.php index c20b1d51..a5fa5b4e 100644 --- a/modules/forms/widgets/form.php +++ b/modules/forms/widgets/form.php @@ -30,7 +30,7 @@ public function get_title() { } public function get_icon() { - return 'eicon-form-horizontal'; + return 'eicon-ehp-forms'; } public function get_keywords() { From 9c2e259a3f25776c3adb2ae49d6f5f4189d8aecc Mon Sep 17 00:00:00 2001 From: Nurit Date: Tue, 3 Dec 2024 16:36:55 +0200 Subject: [PATCH 2/4] zigzag icon --- modules/content/widgets/zig-zag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/content/widgets/zig-zag.php b/modules/content/widgets/zig-zag.php index 906dd287..d00e5f70 100644 --- a/modules/content/widgets/zig-zag.php +++ b/modules/content/widgets/zig-zag.php @@ -38,7 +38,7 @@ public function get_keywords(): array { } public function get_icon(): string { - return 'eicon-time-line'; + return 'eicon-ehp-zigzag'; } public function get_style_depends(): array { From 7a40f7f259eb1af39e0410a8c6917482b41313fe Mon Sep 17 00:00:00 2001 From: Nurit Date: Wed, 4 Dec 2024 18:22:31 +0200 Subject: [PATCH 3/4] lint --- .../classes/render/widget-form-render.php | 40 +++++++++---------- modules/template-parts/templates/header.php | 6 +-- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/modules/forms/classes/render/widget-form-render.php b/modules/forms/classes/render/widget-form-render.php index 64a56752..6d30012d 100644 --- a/modules/forms/classes/render/widget-form-render.php +++ b/modules/forms/classes/render/widget-form-render.php @@ -39,19 +39,19 @@ public function render() { } ?> -
widget->print_render_attribute_string( 'form' ); ?>> + widget->print_render_attribute_string( 'form' ); ?>> render_text_container(); ?> - - - + + + - + -
widget->print_render_attribute_string( 'wrapper' ); ?>> +
widget->print_render_attribute_string( 'wrapper' ); ?>> settings['form_fields'] as $item_index => $item ) : $item['input_size'] = $this->settings['input_size']; @@ -91,14 +91,14 @@ public function render() { $print_label = ! in_array( $item['field_type'], [ 'hidden', 'html', 'step' ], true ); ?> -
widget->print_render_attribute_string( 'field-group' . $item_index ); ?>> +
widget->print_render_attribute_string( 'field-group' . $item_index ); ?>> + widget->add_render_attribute( 'input' . $item_index, 'class', 'elementor-field-textual' ); ?> - widget->print_render_attribute_string( 'input' . $item_index ); ?>> + widget->print_render_attribute_string( 'input' . $item_index ); ?>> widget ); endswitch; ?> -
+
render_button(); ?> -
- +
+ -
widget->print_render_attribute_string( 'submit-group' ); ?>> - -
+ + settings['text_description']; $has_description = ! empty( $description_text ); ?> -
+
%3$s', Elementor_Utils::validate_html_tag( $heading_tag ), 'class="ehp-form__heading"', esc_html( $heading_text ) ); // Escaped above @@ -276,9 +276,9 @@ protected function render_text_container(): void { } ?> -

+

-
+
> - + - + <title> <?php echo esc_html( wp_get_document_title() ); ?> - + From 31823d086c86d39408c185ddaf35227c058b2c02 Mon Sep 17 00:00:00 2001 From: Nurit Date: Wed, 4 Dec 2024 18:24:28 +0200 Subject: [PATCH 4/4] lint --- modules/forms/classes/render/widget-form-render.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/forms/classes/render/widget-form-render.php b/modules/forms/classes/render/widget-form-render.php index 6d30012d..19646f4f 100644 --- a/modules/forms/classes/render/widget-form-render.php +++ b/modules/forms/classes/render/widget-form-render.php @@ -95,10 +95,10 @@ public function render() { - render_button(); ?> - +