| @@ -64,24 +64,24 @@ | ||
| 64 | 64 | */ |
| 65 | 65 | public function get_sliders() { |
| 66 | 66 | return [ |
| 67 | 67 | 'horizontal' => [ |
| 68 | - 'label' => esc_html__( 'Horizontal', 'elementor' ), | |
| 68 | + 'label' => __( 'Horizontal', 'elementor' ), | |
| 69 | 69 | 'min' => -100, |
| 70 | 70 | 'max' => 100, |
| 71 | 71 | ], |
| 72 | 72 | 'vertical' => [ |
| 73 | - 'label' => esc_html__( 'Vertical', 'elementor' ), | |
| 73 | + 'label' => __( 'Vertical', 'elementor' ), | |
| 74 | 74 | 'min' => -100, |
| 75 | 75 | 'max' => 100, |
| 76 | 76 | ], |
| 77 | 77 | 'blur' => [ |
| 78 | - 'label' => esc_html__( 'Blur', 'elementor' ), | |
| 78 | + 'label' => __( 'Blur', 'elementor' ), | |
| 79 | 79 | 'min' => 0, |
| 80 | 80 | 'max' => 100, |
| 81 | 81 | ], |
| 82 | 82 | 'spread' => [ |
| 83 | - 'label' => esc_html__( 'Spread', 'elementor' ), | |
| 83 | + 'label' => __( 'Spread', 'elementor' ), | |
| 84 | 84 | 'min' => -100, |
| 85 | 85 | 'max' => 100, |
| 86 | 86 | ], |
| 87 | 87 | ]; |
| @@ -100,9 +100,9 @@ | ||
| 100 | 100 | public function content_template() { |
| 101 | 101 | ?> |
| 102 | 102 | <div class="elementor-shadow-box"> |
| 103 | 103 | <div class="elementor-control-field elementor-color-picker-wrapper"> |
| 104 | - <label class="elementor-control-title"><?php echo esc_html__( 'Color', 'elementor' ); ?></label> | |
| 104 | + <label class="elementor-control-title"><?php echo __( 'Color', 'elementor' ); ?></label> | |
| 105 | 105 | <div class="elementor-control-input-wrapper elementor-control-unit-1"> |
| 106 | 106 | <div class="elementor-color-picker-placeholder"></div> |
| 107 | 107 | </div> |
| 108 | 108 | </div> |
| @@ -107,18 +107,16 @@ | ||
| 107 | 107 | </div> |
| 108 | 108 | </div> |
| 109 | 109 | <?php |
| 110 | 110 | foreach ( $this->get_sliders() as $slider_name => $slider ) : |
| 111 | + $control_uid = $this->get_control_uid( $slider_name ); | |
| 111 | 112 | ?> |
| 112 | 113 | <div class="elementor-shadow-slider elementor-control-type-slider"> |
| 113 | - <label for="<?php $this->print_control_uid( $slider_name ); ?>" class="elementor-control-title"><?php | |
| 114 | - // PHPCS - the value of $slider['label'] is already escaped. | |
| 115 | - echo $slider['label']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 116 | - ?></label> | |
| 114 | + <label for="<?php echo esc_attr( $control_uid ); ?>" class="elementor-control-title"><?php echo $slider['label']; ?></label> | |
| 117 | 115 | <div class="elementor-control-input-wrapper"> |
| 118 | 116 | <div class="elementor-slider" data-input="<?php echo esc_attr( $slider_name ); ?>"></div> |
| 119 | 117 | <div class="elementor-slider-input elementor-control-unit-2"> |
| 120 | - <input id="<?php $this->print_control_uid( $slider_name ); ?>" type="number" min="<?php echo esc_attr( $slider['min'] ); ?>" max="<?php echo esc_attr( $slider['max'] ); ?>" data-setting="<?php echo esc_attr( $slider_name ); ?>"/> | |
| 118 | + <input id="<?php echo esc_attr( $control_uid ); ?>" type="number" min="<?php echo esc_attr( $slider['min'] ); ?>" max="<?php echo esc_attr( $slider['max'] ); ?>" data-setting="<?php echo esc_attr( $slider_name ); ?>"/> | |
| 121 | 119 | </div> |
| 122 | 120 | </div> |
| 123 | 121 | </div> |
| 124 | 122 | <?php endforeach; ?> |