PluginProbe
Elementor Website Builder – more than just a page builder / 3.2.0
Elementor Website Builder – more than just a page builder v3.2.0
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/select2.php +4 -3 4.1.43.2.0 View file →
@@ -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>