PluginProbe
Elementor Website Builder – more than just a page builder / 3.9.2
Elementor Website Builder – more than just a page builder v3.9.2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/controls/base-units.php +5 -30 4.0.73.9.2 View file →
@@ -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 }