|
24 | 24 | ?>
|
25 | 25 | <header id="site-header" class="site-header dynamic-header <?php echo esc_attr( hello_get_header_layout_class() ); ?>" role="banner">
|
26 | 26 | <div class="header-inner">
|
27 |
| - <div class="site-branding show-<?php echo hello_elementor_get_setting( 'hello_header_logo_type' ); ?>"> |
| 27 | + <div class="site-branding show-<?php echo esc_attr( hello_elementor_get_setting( 'hello_header_logo_type' ) ); ?>"> |
28 | 28 | <?php if ( has_custom_logo() && ( 'title' !== hello_elementor_get_setting( 'hello_header_logo_type' ) || $is_editor ) ) : ?>
|
29 |
| - <div class="site-logo <?php echo hello_show_or_hide( 'hello_header_logo_display' ); ?>"> |
| 29 | + <div class="site-logo <?php echo esc_attr( hello_show_or_hide( 'hello_header_logo_display' ) ); ?>"> |
30 | 30 | <?php the_custom_logo(); ?>
|
31 | 31 | </div>
|
32 | 32 | <?php endif;
|
33 | 33 |
|
34 | 34 | if ( $site_name && ( 'logo' !== hello_elementor_get_setting( 'hello_header_logo_type' ) || $is_editor ) ) : ?>
|
35 |
| - <h1 class="site-title <?php echo hello_show_or_hide( 'hello_header_logo_display' ); ?>"> |
| 35 | + <h1 class="site-title <?php echo esc_attr( hello_show_or_hide( 'hello_header_logo_display' ) ); ?>"> |
36 | 36 | <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_attr_e( 'Home', 'hello-elementor' ); ?>" rel="home">
|
37 | 37 | <?php echo esc_html( $site_name ); ?>
|
38 | 38 | </a>
|
39 | 39 | </h1>
|
40 | 40 | <?php endif;
|
41 | 41 |
|
42 | 42 | if ( $tagline && ( hello_elementor_get_setting( 'hello_header_tagline_display' ) || $is_editor ) ) : ?>
|
43 |
| - <p class="site-description <?php echo hello_show_or_hide( 'hello_header_tagline_display' ); ?> "> |
| 43 | + <p class="site-description <?php echo esc_attr( hello_show_or_hide( 'hello_header_tagline_display' ) ); ?>"> |
44 | 44 | <?php echo esc_html( $tagline ); ?>
|
45 | 45 | </p>
|
46 | 46 | <?php endif; ?>
|
47 | 47 | </div>
|
48 | 48 |
|
49 | 49 | <?php if ( $header_nav_menu ) : ?>
|
50 |
| - <nav class="site-navigation <?php echo hello_show_or_hide( 'hello_header_menu_display' ); ?>" role="navigation"> |
51 |
| - <?php echo $header_nav_menu; ?> |
| 50 | + <nav class="site-navigation <?php echo esc_attr( hello_show_or_hide( 'hello_header_menu_display' ) ); ?>" role="navigation"> |
| 51 | + <?php |
| 52 | + // PHPCS - escaped by WordPress with "wp_nav_menu" |
| 53 | + echo $header_nav_menu; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 54 | + ?> |
52 | 55 | </nav>
|
53 |
| - <div class="site-navigation-toggle-holder <?php echo hello_show_or_hide( 'hello_header_menu_display' ); ?>"> |
| 56 | + <div class="site-navigation-toggle-holder <?php echo esc_attr( hello_show_or_hide( 'hello_header_menu_display' ) ); ?>"> |
54 | 57 | <div class="site-navigation-toggle">
|
55 | 58 | <i class="eicon-menu-bar"></i>
|
56 | 59 | <span class="elementor-screen-only">Menu</span>
|
57 | 60 | </div>
|
58 | 61 | </div>
|
59 |
| - <nav class="site-navigation-dropdown <?php echo hello_show_or_hide( 'hello_header_menu_display' ); ?>" role="navigation"> |
60 |
| - <?php echo $header_nav_menu; ?> |
| 62 | + <nav class="site-navigation-dropdown <?php echo esc_attr( hello_show_or_hide( 'hello_header_menu_display' ) ); ?>" role="navigation"> |
| 63 | + <?php |
| 64 | + // PHPCS - escaped by WordPress with "wp_nav_menu" |
| 65 | + echo $header_nav_menu; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 66 | + ?> |
61 | 67 | </nav>
|
62 | 68 | <?php endif; ?>
|
63 | 69 | </div>
|
|
0 commit comments