| @@ -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,9 +17,9 @@ | ||
| 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 | 24 | public function get_group() { |
| 25 | 25 | return 'theme-style'; |
| @@ -29,9 +29,9 @@ | ||
| 29 | 29 | return 'eicon-image'; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | public function get_help_url() { |
| 33 | - return 'https://go.elementor.com/global-theme-style-images/'; | |
| 33 | + return 'https://go.elementor.com/global-theme-style-images'; | |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | protected function register_tab_controls() { |
| 37 | 37 | $image_selectors = [ |
| @@ -47,9 +47,9 @@ | ||
| 47 | 47 | |
| 48 | 48 | $this->start_controls_section( |
| 49 | 49 | 'section_images', |
| 50 | 50 | [ |
| 51 | - 'label' => esc_html__( 'Images', 'elementor' ), | |
| 51 | + 'label' => __( 'Images', 'elementor' ), | |
| 52 | 52 | 'tab' => $this->get_id(), |
| 53 | 53 | ] |
| 54 | 54 | ); |
| 55 | 55 | |
| @@ -59,9 +59,9 @@ | ||
| 59 | 59 | |
| 60 | 60 | $this->start_controls_tab( |
| 61 | 61 | 'tab_image_normal', |
| 62 | 62 | [ |
| 63 | - 'label' => esc_html__( 'Normal', 'elementor' ), | |
| 63 | + 'label' => __( 'Normal', 'elementor' ), | |
| 64 | 64 | ] |
| 65 | 65 | ); |
| 66 | 66 | |
| 67 | 67 | $this->add_group_control( |
| @@ -79,11 +79,11 @@ | ||
| 79 | 79 | |
| 80 | 80 | $this->add_responsive_control( |
| 81 | 81 | 'image_border_radius', |
| 82 | 82 | [ |
| 83 | - 'label' => esc_html__( 'Border Radius', 'elementor' ), | |
| 83 | + 'label' => __( 'Border Radius', 'elementor' ), | |
| 84 | 84 | 'type' => Controls_Manager::DIMENSIONS, |
| 85 | - 'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ], | |
| 85 | + 'size_units' => [ 'px', '%' ], | |
| 86 | 86 | 'selectors' => [ |
| 87 | 87 | $image_selectors => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', |
| 88 | 88 | ], |
| 89 | 89 | ] |
| @@ -91,9 +91,9 @@ | ||
| 91 | 91 | |
| 92 | 92 | $this->add_control( |
| 93 | 93 | 'image_opacity', |
| 94 | 94 | [ |
| 95 | - 'label' => esc_html__( 'Opacity', 'elementor' ), | |
| 95 | + 'label' => __( 'Opacity', 'elementor' ), | |
| 96 | 96 | 'type' => Controls_Manager::SLIDER, |
| 97 | 97 | 'range' => [ |
| 98 | 98 | 'px' => [ |
| 99 | 99 | 'max' => 1, |
| @@ -130,9 +130,9 @@ | ||
| 130 | 130 | |
| 131 | 131 | $this->start_controls_tab( |
| 132 | 132 | 'tab_image_hover', |
| 133 | 133 | [ |
| 134 | - 'label' => esc_html__( 'Hover', 'elementor' ), | |
| 134 | + 'label' => __( 'Hover', 'elementor' ), | |
| 135 | 135 | ] |
| 136 | 136 | ); |
| 137 | 137 | |
| 138 | 138 | $this->add_group_control( |
| @@ -150,11 +150,11 @@ | ||
| 150 | 150 | |
| 151 | 151 | $this->add_responsive_control( |
| 152 | 152 | 'image_hover_border_radius', |
| 153 | 153 | [ |
| 154 | - 'label' => esc_html__( 'Border Radius', 'elementor' ), | |
| 154 | + 'label' => __( 'Border Radius', 'elementor' ), | |
| 155 | 155 | 'type' => Controls_Manager::DIMENSIONS, |
| 156 | - 'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ], | |
| 156 | + 'size_units' => [ 'px', '%' ], | |
| 157 | 157 | 'selectors' => [ |
| 158 | 158 | $image_hover_selectors => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', |
| 159 | 159 | ], |
| 160 | 160 | ] |
| @@ -162,9 +162,9 @@ | ||
| 162 | 162 | |
| 163 | 163 | $this->add_control( |
| 164 | 164 | 'image_hover_opacity', |
| 165 | 165 | [ |
| 166 | - 'label' => esc_html__( 'Opacity', 'elementor' ), | |
| 166 | + 'label' => __( 'Opacity', 'elementor' ), | |
| 167 | 167 | 'type' => Controls_Manager::SLIDER, |
| 168 | 168 | 'range' => [ |
| 169 | 169 | 'px' => [ |
| 170 | 170 | 'max' => 1, |
| @@ -199,13 +199,12 @@ | ||
| 199 | 199 | |
| 200 | 200 | $this->add_control( |
| 201 | 201 | 'image_hover_transition', |
| 202 | 202 | [ |
| 203 | - 'label' => esc_html__( 'Transition Duration', 'elementor' ) . ' (s)', | |
| 203 | + 'label' => __( 'Transition Duration', 'elementor' ) . ' (s)', | |
| 204 | 204 | 'type' => Controls_Manager::SLIDER, |
| 205 | 205 | 'range' => [ |
| 206 | 206 | 'px' => [ |
| 207 | - 'min' => 0, | |
| 208 | 207 | 'max' => 3, |
| 209 | 208 | 'step' => 0.1, |
| 210 | 209 | ], |
| 211 | 210 | ], |