From 982f182f7898df7422a77cb0d111e293528a96eb Mon Sep 17 00:00:00 2001 From: Rami Yushuvaev <92088692+rami-elementor@users.noreply.github.com> Date: Mon, 23 Dec 2024 00:39:14 -0800 Subject: [PATCH] Group Control - advanced example using `fields_options` (#304) --- src/editor-controls/group-control.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/editor-controls/group-control.md b/src/editor-controls/group-control.md index 85b0e8b..62ba94e 100644 --- a/src/editor-controls/group-control.md +++ b/src/editor-controls/group-control.md @@ -111,15 +111,15 @@ class Elementor_Test_Widget extends \Elementor\Widget_Base { $this->add_group_control( \Elementor\Group_Control_Border::get_type(), [ - 'name' => 'some_border', - 'label' => __( 'Box Border', 'textdomain' ), + 'name' => 'box_border', + 'label' => esc_html__( 'Box Border', 'textdomain' ), 'fields_options' => [ 'border' => [ - 'label' => __( 'Box Border Type', 'textdomain' ), + 'label' => esc_html__( 'Box Border Type', 'textdomain' ), 'default' => 'solid', ], 'width' => [ - 'label' => __( 'Box Border Width', 'textdomain' ), + 'label' => esc_html__( 'Box Border Width', 'textdomain' ), 'default' => [ 'top' => '1', 'right' => '2', @@ -129,7 +129,7 @@ class Elementor_Test_Widget extends \Elementor\Widget_Base { ], ], 'color' => [ - 'label' => __( 'Box Border Color', 'textdomain' ), + 'label' => esc_html__( 'Box Border Color', 'textdomain' ), 'default' => '#D4D4D4', ], ],