PluginProbe
Elementor Website Builder – more than just a page builder / 3.28.0-dev3
Elementor Website Builder – more than just a page builder v3.28.0-dev3
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/visual-choice.php +7 -22 4.2.23.28.0-dev3 View file →
@@ -24,30 +24,15 @@
24 24 <div class="elementor-control-field">
25 25 <label class="elementor-control-title">{{{ data.label }}}</label>
26 26 <div class="elementor-control-input-wrapper">
27 27 <div class="elementor-visual-choice-choices" style="--elementor-visual-choice-columns: {{ data.columns }};">
28 - <#
29 - _.each( data.options, function( options, value ) {
30 - choiceType = options.type || 'image';
31 - #>
32 - <div class="elementor-visual-choice-element elementor-visual-choice-element-{{ choiceType }}" style="--elementor-visual-choice-span: {{ data.toggle ? '1' : '0' }};">
33 - <input id="<?php $this->print_control_uid( $control_uid_input_type ); ?>" type="radio" name="elementor-visual-choice-{{ data.name }}-{{ data._cid }}" value="{{ value }}" class="elementor-screen-only">
34 - <label class="elementor-visual-choice-label tooltip-target" for="<?php $this->print_control_uid( $control_uid_input_type ); ?>" data-tooltip="{{ options.title }}">
35 - <#
36 - switch ( choiceType ) {
37 - case 'button':
38 - #>
39 - <div class="elementor-button">{{{ options.title }}}</div>
40 - <#
41 - break;
42 - case 'image':
43 - default:
44 - #>
45 - <img src="{{ options.image }}" aria-hidden="true" alt="{{ options.title }}" data-hover="{{ value }}" />
46 - <span class="elementor-screen-only">{{{ options.title }}}</span>
47 - <#
48 - };
49 - #>
28 +
29 + <# _.each( data.options, function( options, value ) { #>
30 + <div class="elementor-visual-choice-element">
31 + <input id="<?php $this->print_control_uid( $control_uid_input_type ); ?>" type="radio" name="elementor-visual-choice-{{ data.name }}-{{ data._cid }}" value="{{ value }}">
32 + <label class="elementor-visual-choice-label tooltip-target" for="<?php $this->print_control_uid( $control_uid_input_type ); ?>" data-tooltip="{{ options.title }}" title="{{ options.title }}">
33 + <img class="elementor-visual-choice-image" src="{{ options.image }}" aria-hidden="true" alt="{{ options.title }}" data-hover="{{ value }}" />
34 + <span class="elementor-screen-only">{{{ options.title }}}</span>
50 35 </label>
51 36 </div>
52 37 <# } ); #>
53 38 </div>