| @@ -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> |