| @@ -68,9 +68,9 @@ | ||
| 68 | 68 | ?> |
| 69 | 69 | <div class="elementor-control-field"> |
| 70 | 70 | <label for="<?php $this->print_control_uid(); ?>" class="elementor-control-title">{{{ data.label }}}</label> |
| 71 | 71 | <div class="elementor-control-input-wrapper elementor-control-dynamic-switcher-wrapper"> |
| 72 | - <input id="<?php $this->print_control_uid(); ?>" type="number" min="{{ data.min }}" max="{{ data.max }}" step="{{ data.step }}" class="tooltip-target elementor-control-tag-area elementor-control-unit-2" data-tooltip="{{ data.title }}" data-setting="{{ data.name }}" placeholder="{{ view.getControlPlaceholder() }}" /> | |
| 72 | + <input id="<?php $this->print_control_uid(); ?>" type="number" min="{{ data.min }}" max="{{ data.max }}" step="{{ data.step }}" class="tooltip-target elementor-control-tag-area elementor-control-unit-2" data-tooltip="{{ data.title }}" title="{{ data.title }}" data-setting="{{ data.name }}" placeholder="{{ view.getControlPlaceholder() }}" /> | |
| 73 | 73 | </div> |
| 74 | 74 | </div> |
| 75 | 75 | <# if ( data.description ) { #> |
| 76 | 76 | <div class="elementor-control-field-description">{{{ data.description }}}</div> |
| @@ -75,36 +75,6 @@ | ||
| 75 | 75 | <# if ( data.description ) { #> |
| 76 | 76 | <div class="elementor-control-field-description">{{{ data.description }}}</div> |
| 77 | 77 | <# } #> |
| 78 | 78 | <?php |
| 79 | - } | |
| 80 | - | |
| 81 | - public function get_value( $control, $settings ) { | |
| 82 | - $value = parent::get_value( $control, $settings ); | |
| 83 | - | |
| 84 | - if ( '' === $value || null === $value ) { | |
| 85 | - return $value; | |
| 86 | - } | |
| 87 | - | |
| 88 | - if ( ! is_numeric( $value ) ) { | |
| 89 | - return ! empty( $control['default'] ) ? $control['default'] : ''; | |
| 90 | - } | |
| 91 | - | |
| 92 | - return $value; | |
| 93 | - } | |
| 94 | - | |
| 95 | - public function get_style_value( $css_property, $control_value, array $control_data ) { | |
| 96 | - if ( 'DEFAULT' === $css_property ) { | |
| 97 | - return $control_data['default']; | |
| 98 | - } | |
| 99 | - | |
| 100 | - if ( '' === $control_value || null === $control_value ) { | |
| 101 | - return $control_value; | |
| 102 | - } | |
| 103 | - | |
| 104 | - if ( ! is_numeric( $control_value ) ) { | |
| 105 | - return ! empty( $control_data['default'] ) ? $control_data['default'] : ''; | |
| 106 | - } | |
| 107 | - | |
| 108 | - return $control_value; | |
| 109 | 79 | } |
| 110 | 80 | } |