| @@ -267,27 +267,21 @@ | ||
| 267 | 267 | */ |
| 268 | 268 | protected function print_editor_template_content( $name ) { |
| 269 | 269 | ?> |
| 270 | 270 | <# |
| 271 | - const tabs = elementor.config.settings.<?php | |
| 272 | - // PHPCS - the variable $name does not contain a user input value. | |
| 273 | - echo $name; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 274 | - ?>.tabs; | |
| 271 | + const tabs = elementor.config.settings.<?php echo $name; ?>.tabs; | |
| 275 | 272 | |
| 276 | 273 | if ( Object.values( tabs ).length > 1 ) { #> |
| 277 | 274 | <div class="elementor-panel-navigation"> |
| 278 | 275 | <# _.each( tabs, function( tabTitle, tabSlug ) { |
| 279 | - $e.bc.ensureTab( 'panel/<?php | |
| 280 | - // PHPCS - the variable $name does not contain a user input value. | |
| 281 | - echo $name; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 282 | - ?>-settings', tabSlug ); #> | |
| 283 | - <button class="elementor-component-tab elementor-panel-navigation-tab elementor-tab-control-{{ tabSlug }}" data-tab="{{ tabSlug }}"> | |
| 284 | - <span>{{{ tabTitle }}}</span> | |
| 285 | - </button> | |
| 276 | + $e.bc.ensureTab( 'panel/<?php echo $name; ?>-settings', tabSlug ); #> | |
| 277 | + <div class="elementor-component-tab elementor-panel-navigation-tab elementor-tab-control-{{ tabSlug }}" data-tab="{{ tabSlug }}"> | |
| 278 | + <a href="#">{{{ tabTitle }}}</a> | |
| 279 | + </div> | |
| 286 | 280 | <# } ); #> |
| 287 | 281 | </div> |
| 288 | 282 | <# } #> |
| 289 | - <div id="elementor-panel-<?php echo esc_attr( $name ); ?>-settings-controls"></div> | |
| 283 | + <div id="elementor-panel-<?php echo $name; ?>-settings-controls"></div> | |
| 290 | 284 | <?php |
| 291 | 285 | } |
| 292 | 286 | |
| 293 | 287 | /** |