| @@ -77,9 +77,9 @@ | ||
| 77 | 77 | */ |
| 78 | 78 | public function content_template() { |
| 79 | 79 | if ( ! $this->is_image_editor_supports() ) : ?> |
| 80 | 80 | <div class="elementor-panel-alert elementor-panel-alert-danger"> |
| 81 | - <?php echo esc_html__( 'The server does not have ImageMagick or GD installed and/or enabled! Any of these libraries are required for WordPress to be able to resize images. Please contact your server administrator to enable this before continuing.', 'elementor' ); ?> | |
| 81 | + <?php echo __( 'The server does not have ImageMagick or GD installed and/or enabled! Any of these libraries are required for WordPress to be able to resize images. Please contact your server administrator to enable this before continuing.', 'elementor' ); ?> | |
| 82 | 82 | </div> |
| 83 | 83 | <?php |
| 84 | 84 | return; |
| 85 | 85 | endif; |
| @@ -90,17 +90,19 @@ | ||
| 90 | 90 | <div class="elementor-control-field"> |
| 91 | 91 | <label class="elementor-control-title">{{{ data.label }}}</label> |
| 92 | 92 | <div class="elementor-control-input-wrapper"> |
| 93 | 93 | <div class="elementor-image-dimensions-field elementor-control-unit-2"> |
| 94 | - <input id="<?php $this->print_control_uid( 'width' ); ?>" type="number" data-setting="width" /> | |
| 95 | - <label for="<?php $this->print_control_uid( 'width' ); ?>" class="elementor-image-dimensions-field-description"><?php echo esc_html__( 'Width', 'elementor' ); ?></label> | |
| 94 | + <?php $control_uid = $this->get_control_uid( 'width' ); ?> | |
| 95 | + <input id="<?php echo $control_uid; ?>" type="text" data-setting="width" /> | |
| 96 | + <label for="<?php echo $control_uid; ?>" class="elementor-image-dimensions-field-description"><?php echo __( 'Width', 'elementor' ); ?></label> | |
| 96 | 97 | </div> |
| 97 | 98 | <div class="elementor-image-dimensions-separator">x</div> |
| 98 | 99 | <div class="elementor-image-dimensions-field elementor-control-unit-2"> |
| 99 | - <input id="<?php $this->print_control_uid( 'height' ); ?>" type="number" data-setting="height" /> | |
| 100 | - <label for="<?php $this->print_control_uid( 'height' ); ?>" class="elementor-image-dimensions-field-description"><?php echo esc_html__( 'Height', 'elementor' ); ?></label> | |
| 100 | + <?php $control_uid = $this->get_control_uid( 'height' ); ?> | |
| 101 | + <input id="<?php echo $control_uid; ?>" type="text" data-setting="height" /> | |
| 102 | + <label for="<?php echo $control_uid; ?>" class="elementor-image-dimensions-field-description"><?php echo __( 'Height', 'elementor' ); ?></label> | |
| 101 | 103 | </div> |
| 102 | - <button class="elementor-button elementor-image-dimensions-apply-button"><?php echo esc_html__( 'Apply', 'elementor' ); ?></button> | |
| 104 | + <button class="elementor-button elementor-button-success elementor-image-dimensions-apply-button"><?php echo __( 'Apply', 'elementor' ); ?></button> | |
| 103 | 105 | </div> |
| 104 | 106 | </div> |
| 105 | 107 | <?php |
| 106 | 108 | } |