| @@ -39,8 +39,9 @@ | ||
| 39 | 39 | * @since 1.0.0 |
| 40 | 40 | * @access public |
| 41 | 41 | */ |
| 42 | 42 | public function content_template() { |
| 43 | + $preset_control_uid = $this->get_control_uid( '{{ preset.key }}' ); | |
| 43 | 44 | ?> |
| 44 | 45 | <div class="elementor-control-field"> |
| 45 | 46 | <div class="elementor-control-input-wrapper"> |
| 46 | 47 | <# |
| @@ -49,10 +50,10 @@ | ||
| 49 | 50 | if ( morePresets.length ) { #> |
| 50 | 51 | <div class="elementor-control-structure-presets"> |
| 51 | 52 | <# _.each( morePresets, function( preset ) { #> |
| 52 | 53 | <div class="elementor-control-structure-preset-wrapper"> |
| 53 | - <input id="<?php $this->print_control_uid( '{{ preset.key }}' ); ?>" type="radio" name="elementor-control-structure-preset-{{ data._cid }}" data-setting="structure" value="{{ preset.key }}"> | |
| 54 | - <label for="<?php $this->print_control_uid( '{{ preset.key }}' ); ?>" class="elementor-control-structure-preset"> | |
| 54 | + <input id="<?php echo $preset_control_uid; ?>" type="radio" name="elementor-control-structure-preset-{{ data._cid }}" data-setting="structure" value="{{ preset.key }}"> | |
| 55 | + <label for="<?php echo $preset_control_uid; ?>" class="elementor-control-structure-preset"> | |
| 55 | 56 | {{{ elementor.presetsFactory.getPresetSVG( preset.preset, 102, 42 ).outerHTML }}} |
| 56 | 57 | </label> |
| 57 | 58 | <div class="elementor-control-structure-preset-title">{{{ preset.preset.join( ', ' ) }}}</div> |
| 58 | 59 | </div> |
| @@ -61,9 +62,9 @@ | ||
| 61 | 62 | <# } #> |
| 62 | 63 | </div> |
| 63 | 64 | <div class="elementor-control-structure-reset"> |
| 64 | 65 | <i class="eicon-undo" aria-hidden="true"></i> |
| 65 | - <?php echo esc_html__( 'Reset', 'elementor' ); ?> | |
| 66 | + <?php echo __( 'Reset', 'elementor' ); ?> | |
| 66 | 67 | </div> |
| 67 | 68 | </div> |
| 68 | 69 | <# if ( data.description ) { #> |
| 69 | 70 | <div class="elementor-control-field-description">{{{ data.description }}}</div> |
| @@ -83,8 +84,9 @@ | ||
| 83 | 84 | * @return array Control default settings. |
| 84 | 85 | */ |
| 85 | 86 | protected function get_default_settings() { |
| 86 | 87 | return [ |
| 88 | + 'separator' => 'none', | |
| 87 | 89 | 'label_block' => true, |
| 88 | 90 | 'show_label' => false, |
| 89 | 91 | ]; |
| 90 | 92 | } |