| @@ -56,18 +56,17 @@ | ||
| 56 | 56 | protected function init_fields() { |
| 57 | 57 | $fields = []; |
| 58 | 58 | |
| 59 | 59 | $fields['border'] = [ |
| 60 | - 'label' => esc_html__( 'Border Type', 'elementor' ), | |
| 60 | + 'label' => _x( 'Border Type', 'Border Control', 'elementor' ), | |
| 61 | 61 | 'type' => Controls_Manager::SELECT, |
| 62 | 62 | 'options' => [ |
| 63 | - '' => esc_html__( 'Default', 'elementor' ), | |
| 64 | - 'none' => esc_html__( 'None', 'elementor' ), | |
| 65 | - 'solid' => esc_html__( 'Solid', 'elementor' ), | |
| 66 | - 'double' => esc_html__( 'Double', 'elementor' ), | |
| 67 | - 'dotted' => esc_html__( 'Dotted', 'elementor' ), | |
| 68 | - 'dashed' => esc_html__( 'Dashed', 'elementor' ), | |
| 69 | - 'groove' => esc_html__( 'Groove', 'elementor' ), | |
| 63 | + '' => __( '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' ), | |
| 70 | 69 | ], |
| 71 | 70 | 'selectors' => [ |
| 72 | 71 | '{{SELECTOR}}' => 'border-style: {{VALUE}};', |
| 73 | 72 | ], |
| @@ -73,22 +72,21 @@ | ||
| 73 | 72 | ], |
| 74 | 73 | ]; |
| 75 | 74 | |
| 76 | 75 | $fields['width'] = [ |
| 77 | - 'label' => esc_html__( 'Border Width', 'elementor' ), | |
| 76 | + 'label' => _x( 'Width', 'Border Control', 'elementor' ), | |
| 78 | 77 | 'type' => Controls_Manager::DIMENSIONS, |
| 79 | - 'size_units' => [ 'px', 'em', 'rem', 'vw', 'custom' ], | |
| 80 | 78 | 'selectors' => [ |
| 81 | 79 | '{{SELECTOR}}' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', |
| 82 | 80 | ], |
| 83 | 81 | 'condition' => [ |
| 84 | - 'border!' => [ '', 'none' ], | |
| 82 | + 'border!' => '', | |
| 85 | 83 | ], |
| 86 | 84 | 'responsive' => true, |
| 87 | 85 | ]; |
| 88 | 86 | |
| 89 | 87 | $fields['color'] = [ |
| 90 | - 'label' => esc_html__( 'Border Color', 'elementor' ), | |
| 88 | + 'label' => _x( 'Color', 'Border Control', 'elementor' ), | |
| 91 | 89 | 'type' => Controls_Manager::COLOR, |
| 92 | 90 | 'default' => '', |
| 93 | 91 | 'selectors' => [ |
| 94 | 92 | '{{SELECTOR}}' => 'border-color: {{VALUE}};', |
| @@ -93,9 +91,9 @@ | ||
| 93 | 91 | 'selectors' => [ |
| 94 | 92 | '{{SELECTOR}}' => 'border-color: {{VALUE}};', |
| 95 | 93 | ], |
| 96 | 94 | 'condition' => [ |
| 97 | - 'border!' => [ '', 'none' ], | |
| 95 | + 'border!' => '', | |
| 98 | 96 | ], |
| 99 | 97 | ]; |
| 100 | 98 | |
| 101 | 99 | return $fields; |