| @@ -71,23 +71,8 @@ | ||
| 71 | 71 | 'min' => 0, |
| 72 | 72 | 'max' => 360, |
| 73 | 73 | 'step' => 1, |
| 74 | 74 | ], |
| 75 | - 'grad' => [ | |
| 76 | - 'min' => 0, | |
| 77 | - 'max' => 400, | |
| 78 | - 'step' => 1, | |
| 79 | - ], | |
| 80 | - 'rad' => [ | |
| 81 | - 'min' => 0, | |
| 82 | - 'max' => 6.2832, | |
| 83 | - 'step' => 0.0001, | |
| 84 | - ], | |
| 85 | - 'turn' => [ | |
| 86 | - 'min' => 0, | |
| 87 | - 'max' => 1, | |
| 88 | - 'step' => 0.01, | |
| 89 | - ], | |
| 90 | 75 | 'vh' => [ |
| 91 | 76 | 'min' => 0, |
| 92 | 77 | 'max' => 100, |
| 93 | 78 | 'step' => 1, |
| @@ -96,18 +81,8 @@ | ||
| 96 | 81 | 'min' => 0, |
| 97 | 82 | 'max' => 100, |
| 98 | 83 | 'step' => 1, |
| 99 | 84 | ], |
| 100 | - 's' => [ | |
| 101 | - 'min' => 0, | |
| 102 | - 'max' => 3, | |
| 103 | - 'step' => 0.1, | |
| 104 | - ], | |
| 105 | - 'ms' => [ | |
| 106 | - 'min' => 0, | |
| 107 | - 'max' => 3000, | |
| 108 | - 'step' => 100, | |
| 109 | - ], | |
| 110 | 85 | ], |
| 111 | 86 | ]; |
| 112 | 87 | } |
| 113 | 88 | |
| @@ -121,39 +96,14 @@ | ||
| 121 | 96 | */ |
| 122 | 97 | protected function print_units_template() { |
| 123 | 98 | ?> |
| 124 | 99 | <# if ( data.size_units && data.size_units.length > 1 ) { #> |
| 125 | - <div class="e-units-wrapper"> | |
| 126 | - <div class="e-units-switcher"> | |
| 127 | - <span></span> | |
| 128 | - <i class="eicon-edit" aria-hidden="true"></i> | |
| 129 | - <i class="eicon-angle-right" aria-hidden="true"></i> | |
| 130 | - <span class="elementor-screen-only"><?php echo esc_html__( 'Switch units', 'elementor' ); ?></span> | |
| 131 | - </div> | |
| 132 | - <div class="e-units-choices"> | |
| 133 | - <# _.each( data.size_units, function( unit ) { #> | |
| 134 | - <input id="elementor-choose-{{ data._cid + data.name + unit }}" type="radio" name="elementor-choose-{{ data.name + data._cid }}" data-setting="unit" value="{{ unit }}"> | |
| 135 | - <label class="elementor-units-choices-label" for="elementor-choose-{{ data._cid + data.name + unit }}" data-choose="{{{ unit }}}"> | |
| 136 | - <# if ( 'custom' === unit ) { #> | |
| 137 | - <i class="eicon-edit" aria-hidden="true"></i> | |
| 138 | - <span class="elementor-screen-only"><?php echo esc_html__( 'Custom unit', 'elementor' ); ?></span> | |
| 139 | - <# } else { #> | |
| 140 | - <span>{{{ unit }}}</span> | |
| 141 | - <# } #> | |
| 142 | - </label> | |
| 143 | - <# } ); #> | |
| 144 | - </div> | |
| 100 | + <div class="elementor-units-choices"> | |
| 101 | + <# _.each( data.size_units, function( unit ) { #> | |
| 102 | + <input id="elementor-choose-{{ data._cid + data.name + unit }}" type="radio" name="elementor-choose-{{ data.name }}" data-setting="unit" value="{{ unit }}"> | |
| 103 | + <label class="elementor-units-choices-label" for="elementor-choose-{{ data._cid + data.name + unit }}">{{{ unit }}}</label> | |
| 104 | + <# } ); #> | |
| 145 | 105 | </div> |
| 146 | 106 | <# } #> |
| 147 | 107 | <?php |
| 148 | - } | |
| 149 | - | |
| 150 | - public function get_style_value( $css_property, $control_value, array $control_data ) { | |
| 151 | - $return_value = parent::get_style_value( $css_property, $control_value, $control_data ); | |
| 152 | - | |
| 153 | - if ( 'UNIT' === $css_property && 'custom' === $return_value ) { | |
| 154 | - $return_value = '__EMPTY__'; | |
| 155 | - } | |
| 156 | - | |
| 157 | - return $return_value; | |
| 158 | 108 | } |
| 159 | 109 | } |