| @@ -122,25 +122,13 @@ | ||
| 122 | 122 | protected function print_units_template() { |
| 123 | 123 | ?> |
| 124 | 124 | <# if ( data.size_units && data.size_units.length > 1 ) { #> |
| 125 | 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> | |
| 126 | + <div class="e-units-switcher"><span></span><i class="eicon-edit"></i><i class="eicon-angle-right"></i></div> | |
| 132 | 127 | <div class="e-units-choices"> |
| 133 | 128 | <# _.each( data.size_units, function( unit ) { #> |
| 134 | 129 | <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> | |
| 130 | + <label class="elementor-units-choices-label" for="elementor-choose-{{ data._cid + data.name + unit }}" data-choose="{{{ unit }}}"><span>{{{ unit }}}</span><i class="eicon-edit"></i></label> | |
| 143 | 131 | <# } ); #> |
| 144 | 132 | </div> |
| 145 | 133 | </div> |
| 146 | 134 | <# } #> |