| @@ -7,9 +7,9 @@ | ||
| 7 | 7 | use Elementor\Group_Control_Box_Shadow; |
| 8 | 8 | use Elementor\Group_Control_Css_Filter; |
| 9 | 9 | |
| 10 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | - exit; // Exit if accessed directly. | |
| 11 | + exit; // Exit if accessed directly | |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | class Theme_Style_Images extends Tab_Base { |
| 15 | 15 | |
| @@ -17,23 +17,11 @@ | ||
| 17 | 17 | return 'theme-style-images'; |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | public function get_title() { |
| 21 | - return esc_html__( 'Images', 'elementor' ); | |
| 21 | + return __( 'Images', 'elementor' ); | |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - public function get_group() { | |
| 25 | - return 'theme-style'; | |
| 26 | - } | |
| 27 | - | |
| 28 | - public function get_icon() { | |
| 29 | - return 'eicon-image'; | |
| 30 | - } | |
| 31 | - | |
| 32 | - public function get_help_url() { | |
| 33 | - return 'https://go.elementor.com/global-theme-style-images/'; | |
| 34 | - } | |
| 35 | - | |
| 36 | 24 | protected function register_tab_controls() { |
| 37 | 25 | $image_selectors = [ |
| 38 | 26 | '{{WRAPPER}} img', |
| 39 | 27 | ]; |
| @@ -47,9 +35,9 @@ | ||
| 47 | 35 | |
| 48 | 36 | $this->start_controls_section( |
| 49 | 37 | 'section_images', |
| 50 | 38 | [ |
| 51 | - 'label' => esc_html__( 'Images', 'elementor' ), | |
| 39 | + 'label' => __( 'Images', 'elementor' ), | |
| 52 | 40 | 'tab' => $this->get_id(), |
| 53 | 41 | ] |
| 54 | 42 | ); |
| 55 | 43 | |
| @@ -59,9 +47,9 @@ | ||
| 59 | 47 | |
| 60 | 48 | $this->start_controls_tab( |
| 61 | 49 | 'tab_image_normal', |
| 62 | 50 | [ |
| 63 | - 'label' => esc_html__( 'Normal', 'elementor' ), | |
| 51 | + 'label' => __( 'Normal', 'elementor' ), | |
| 64 | 52 | ] |
| 65 | 53 | ); |
| 66 | 54 | |
| 67 | 55 | $this->add_group_control( |
| @@ -79,11 +67,11 @@ | ||
| 79 | 67 | |
| 80 | 68 | $this->add_responsive_control( |
| 81 | 69 | 'image_border_radius', |
| 82 | 70 | [ |
| 83 | - 'label' => esc_html__( 'Border Radius', 'elementor' ), | |
| 71 | + 'label' => __( 'Border Radius', 'elementor' ), | |
| 84 | 72 | 'type' => Controls_Manager::DIMENSIONS, |
| 85 | - 'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ], | |
| 73 | + 'size_units' => [ 'px', '%' ], | |
| 86 | 74 | 'selectors' => [ |
| 87 | 75 | $image_selectors => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', |
| 88 | 76 | ], |
| 89 | 77 | ] |
| @@ -91,9 +79,9 @@ | ||
| 91 | 79 | |
| 92 | 80 | $this->add_control( |
| 93 | 81 | 'image_opacity', |
| 94 | 82 | [ |
| 95 | - 'label' => esc_html__( 'Opacity', 'elementor' ), | |
| 83 | + 'label' => __( 'Opacity', 'elementor' ), | |
| 96 | 84 | 'type' => Controls_Manager::SLIDER, |
| 97 | 85 | 'range' => [ |
| 98 | 86 | 'px' => [ |
| 99 | 87 | 'max' => 1, |
| @@ -130,9 +118,9 @@ | ||
| 130 | 118 | |
| 131 | 119 | $this->start_controls_tab( |
| 132 | 120 | 'tab_image_hover', |
| 133 | 121 | [ |
| 134 | - 'label' => esc_html__( 'Hover', 'elementor' ), | |
| 122 | + 'label' => __( 'Hover', 'elementor' ), | |
| 135 | 123 | ] |
| 136 | 124 | ); |
| 137 | 125 | |
| 138 | 126 | $this->add_group_control( |
| @@ -150,11 +138,11 @@ | ||
| 150 | 138 | |
| 151 | 139 | $this->add_responsive_control( |
| 152 | 140 | 'image_hover_border_radius', |
| 153 | 141 | [ |
| 154 | - 'label' => esc_html__( 'Border Radius', 'elementor' ), | |
| 142 | + 'label' => __( 'Border Radius', 'elementor' ), | |
| 155 | 143 | 'type' => Controls_Manager::DIMENSIONS, |
| 156 | - 'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ], | |
| 144 | + 'size_units' => [ 'px', '%' ], | |
| 157 | 145 | 'selectors' => [ |
| 158 | 146 | $image_hover_selectors => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', |
| 159 | 147 | ], |
| 160 | 148 | ] |
| @@ -162,9 +150,9 @@ | ||
| 162 | 150 | |
| 163 | 151 | $this->add_control( |
| 164 | 152 | 'image_hover_opacity', |
| 165 | 153 | [ |
| 166 | - 'label' => esc_html__( 'Opacity', 'elementor' ), | |
| 154 | + 'label' => __( 'Opacity', 'elementor' ), | |
| 167 | 155 | 'type' => Controls_Manager::SLIDER, |
| 168 | 156 | 'range' => [ |
| 169 | 157 | 'px' => [ |
| 170 | 158 | 'max' => 1, |
| @@ -199,13 +187,12 @@ | ||
| 199 | 187 | |
| 200 | 188 | $this->add_control( |
| 201 | 189 | 'image_hover_transition', |
| 202 | 190 | [ |
| 203 | - 'label' => esc_html__( 'Transition Duration', 'elementor' ) . ' (s)', | |
| 191 | + 'label' => __( 'Transition Duration', 'elementor' ) . ' (s)', | |
| 204 | 192 | 'type' => Controls_Manager::SLIDER, |
| 205 | 193 | 'range' => [ |
| 206 | 194 | 'px' => [ |
| 207 | - 'min' => 0, | |
| 208 | 195 | 'max' => 3, |
| 209 | 196 | 'step' => 0.1, |
| 210 | 197 | ], |
| 211 | 198 | ], |