PluginProbe
Elementor Website Builder – more than just a page builder / 3.9.0
Elementor Website Builder – more than just a page builder v3.9.0
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | includes/controls/groups/border.php +12 -11 3.8.13.9.0 View file →
@@ -56,17 +56,18 @@
56 56 protected function init_fields() {
57 57 $fields = [];
58 58
59 59 $fields['border'] = [
60 - 'label' => _x( 'Border Type', 'Border Control', 'elementor' ),
60 + 'label' => esc_html_x( 'Border Type', 'Border Control', 'elementor' ),
61 61 'type' => Controls_Manager::SELECT,
62 62 'options' => [
63 - '' => esc_html__( 'None', 'elementor' ),
64 - 'solid' => _x( 'Solid', 'Border Control', 'elementor' ),
65 - 'double' => _x( 'Double', 'Border Control', 'elementor' ),
66 - 'dotted' => _x( 'Dotted', 'Border Control', 'elementor' ),
67 - 'dashed' => _x( 'Dashed', 'Border Control', 'elementor' ),
68 - 'groove' => _x( 'Groove', 'Border Control', 'elementor' ),
63 + '' => esc_html__( 'Default', 'elementor' ),
64 + 'none' => esc_html__( 'None', 'elementor' ),
65 + 'solid' => esc_html_x( 'Solid', 'Border Control', 'elementor' ),
66 + 'double' => esc_html_x( 'Double', 'Border Control', 'elementor' ),
67 + 'dotted' => esc_html_x( 'Dotted', 'Border Control', 'elementor' ),
68 + 'dashed' => esc_html_x( 'Dashed', 'Border Control', 'elementor' ),
69 + 'groove' => esc_html_x( 'Groove', 'Border Control', 'elementor' ),
69 70 ],
70 71 'selectors' => [
71 72 '{{SELECTOR}}' => 'border-style: {{VALUE}};',
72 73 ],
@@ -72,21 +73,21 @@
72 73 ],
73 74 ];
74 75
75 76 $fields['width'] = [
76 - 'label' => _x( 'Width', 'Border Control', 'elementor' ),
77 + 'label' => esc_html_x( 'Width', 'Border Control', 'elementor' ),
77 78 'type' => Controls_Manager::DIMENSIONS,
78 79 'selectors' => [
79 80 '{{SELECTOR}}' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
80 81 ],
81 82 'condition' => [
82 - 'border!' => '',
83 + 'border!' => [ '', 'none' ],
83 84 ],
84 85 'responsive' => true,
85 86 ];
86 87
87 88 $fields['color'] = [
88 - 'label' => _x( 'Color', 'Border Control', 'elementor' ),
89 + 'label' => esc_html_x( 'Color', 'Border Control', 'elementor' ),
89 90 'type' => Controls_Manager::COLOR,
90 91 'default' => '',
91 92 'selectors' => [
92 93 '{{SELECTOR}}' => 'border-color: {{VALUE}};',
@@ -91,9 +92,9 @@
91 92 'selectors' => [
92 93 '{{SELECTOR}}' => 'border-color: {{VALUE}};',
93 94 ],
94 95 'condition' => [
95 - 'border!' => '',
96 + 'border!' => [ '', 'none' ],
96 97 ],
97 98 ];
98 99
99 100 return $fields;