| @@ -121,39 +121,14 @@ | ||
| 121 | 121 | */ |
| 122 | 122 | protected function print_units_template() { |
| 123 | 123 | ?> |
| 124 | 124 | <# 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> | |
| 125 | + <div class="elementor-units-choices"> | |
| 126 | + <# _.each( data.size_units, function( unit ) { #> | |
| 127 | + <input id="elementor-choose-{{ data._cid + data.name + unit }}" type="radio" name="elementor-choose-{{ data.name + data._cid }}" data-setting="unit" value="{{ unit }}"> | |
| 128 | + <label class="elementor-units-choices-label" for="elementor-choose-{{ data._cid + data.name + unit }}">{{{ unit }}}</label> | |
| 129 | + <# } ); #> | |
| 145 | 130 | </div> |
| 146 | 131 | <# } #> |
| 147 | 132 | <?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 | 133 | } |
| 159 | 134 | } |