| @@ -63,16 +63,17 @@ | ||
| 63 | 63 | * @since 1.0.0 |
| 64 | 64 | * @access public |
| 65 | 65 | */ |
| 66 | 66 | public function content_template() { |
| 67 | + $control_uid = $this->get_control_uid(); | |
| 67 | 68 | ?> |
| 68 | 69 | <div class="elementor-control-field"> |
| 69 | 70 | <# if ( data.label ) {#> |
| 70 | - <label for="<?php $this->print_control_uid(); ?>" class="elementor-control-title">{{{ data.label }}}</label> | |
| 71 | + <label for="<?php echo $control_uid; ?>" class="elementor-control-title">{{{ data.label }}}</label> | |
| 71 | 72 | <# } #> |
| 72 | 73 | <div class="elementor-control-input-wrapper elementor-control-unit-5"> |
| 73 | 74 | <# var multiple = ( data.multiple ) ? 'multiple' : ''; #> |
| 74 | - <select id="<?php $this->print_control_uid(); ?>" class="elementor-select2" type="select2" {{ multiple }} data-setting="{{ data.name }}"> | |
| 75 | + <select id="<?php echo $control_uid; ?>" class="elementor-select2" type="select2" {{ multiple }} data-setting="{{ data.name }}"> | |
| 75 | 76 | <# _.each( data.options, function( option_title, option_value ) { |
| 76 | 77 | var value = data.controlValue; |
| 77 | 78 | if ( typeof value == 'string' ) { |
| 78 | 79 | var selected = ( option_value === value ) ? 'selected' : ''; |
| @@ -80,9 +81,9 @@ | ||
| 80 | 81 | var value = _.values( value ); |
| 81 | 82 | var selected = ( -1 !== value.indexOf( option_value ) ) ? 'selected' : ''; |
| 82 | 83 | } |
| 83 | 84 | #> |
| 84 | - <option {{ selected }} value="{{ _.escape( option_value ) }}">{{{ _.escape( option_title ) }}}</option> | |
| 85 | + <option {{ selected }} value="{{ option_value }}">{{{ option_title }}}</option> | |
| 85 | 86 | <# } ); #> |
| 86 | 87 | </select> |
| 87 | 88 | </div> |
| 88 | 89 | </div> |