@@ -13,28 +13,28 @@ discard block |
||
13 | 13 | * the visitor has not yet entered the password we will |
14 | 14 | * return early without loading the comments. |
15 | 15 | */ |
16 | -if ( post_password_required() ) { |
|
16 | +if (post_password_required()) { |
|
17 | 17 | return; |
18 | 18 | } |
19 | 19 | |
20 | -if ( $comments ) { |
|
20 | +if ($comments) { |
|
21 | 21 | ?> |
22 | 22 | |
23 | 23 | <div class="comments" id="comments"> |
24 | 24 | |
25 | 25 | <?php |
26 | - $comments_number = absint( get_comments_number() ); |
|
26 | + $comments_number = absint(get_comments_number()); |
|
27 | 27 | ?> |
28 | 28 | |
29 | 29 | <div class="comments-header section-inner small max-percentage"> |
30 | 30 | |
31 | 31 | <h2 class="comment-reply-title"> |
32 | 32 | <?php |
33 | - if ( ! have_comments() ) { |
|
34 | - _e( 'Leave a comment', 'twentytwenty' ); |
|
35 | - } elseif ( 1 === $comments_number ) { |
|
33 | + if ( ! have_comments()) { |
|
34 | + _e('Leave a comment', 'twentytwenty'); |
|
35 | + } elseif (1 === $comments_number) { |
|
36 | 36 | /* translators: %s: Post title. */ |
37 | - printf( _x( 'One reply on “%s”', 'comments title', 'twentytwenty' ), get_the_title() ); |
|
37 | + printf(_x('One reply on “%s”', 'comments title', 'twentytwenty'), get_the_title()); |
|
38 | 38 | } else { |
39 | 39 | printf( |
40 | 40 | /* translators: 1: Number of comments, 2: Post title. */ |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | 'comments title', |
46 | 46 | 'twentytwenty' |
47 | 47 | ), |
48 | - number_format_i18n( $comments_number ), |
|
48 | + number_format_i18n($comments_number), |
|
49 | 49 | get_the_title() |
50 | 50 | ); |
51 | 51 | } |
@@ -71,22 +71,22 @@ discard block |
||
71 | 71 | 'echo' => false, |
72 | 72 | 'end_size' => 0, |
73 | 73 | 'mid_size' => 0, |
74 | - 'next_text' => __( 'Newer Comments', 'twentytwenty' ) . ' <span aria-hidden="true">→</span>', |
|
75 | - 'prev_text' => '<span aria-hidden="true">←</span> ' . __( 'Older Comments', 'twentytwenty' ), |
|
74 | + 'next_text' => __('Newer Comments', 'twentytwenty').' <span aria-hidden="true">→</span>', |
|
75 | + 'prev_text' => '<span aria-hidden="true">←</span> '.__('Older Comments', 'twentytwenty'), |
|
76 | 76 | ) |
77 | 77 | ); |
78 | 78 | |
79 | - if ( $comment_pagination ) { |
|
79 | + if ($comment_pagination) { |
|
80 | 80 | $pagination_classes = ''; |
81 | 81 | |
82 | 82 | // If we're only showing the "Next" link, add a class indicating so. |
83 | - if ( false === strpos( $comment_pagination, 'prev page-numbers' ) ) { |
|
83 | + if (false === strpos($comment_pagination, 'prev page-numbers')) { |
|
84 | 84 | $pagination_classes = ' only-next'; |
85 | 85 | } |
86 | 86 | ?> |
87 | 87 | |
88 | - <nav class="comments-pagination pagination<?php echo $pagination_classes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output ?>" aria-label="<?php esc_attr_e( 'Comments', 'twentytwenty' ); ?>"> |
|
89 | - <?php echo wp_kses_post( $comment_pagination ); ?> |
|
88 | + <nav class="comments-pagination pagination<?php echo $pagination_classes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output ?>" aria-label="<?php esc_attr_e('Comments', 'twentytwenty'); ?>"> |
|
89 | + <?php echo wp_kses_post($comment_pagination); ?> |
|
90 | 90 | </nav> |
91 | 91 | |
92 | 92 | <?php |
@@ -100,9 +100,9 @@ discard block |
||
100 | 100 | <?php |
101 | 101 | } |
102 | 102 | |
103 | -if ( comments_open() || pings_open() ) { |
|
103 | +if (comments_open() || pings_open()) { |
|
104 | 104 | |
105 | - if ( $comments ) { |
|
105 | + if ($comments) { |
|
106 | 106 | echo '<hr class="styled-separator is-style-wide" aria-hidden="true" />'; |
107 | 107 | } |
108 | 108 | |
@@ -114,9 +114,9 @@ discard block |
||
114 | 114 | ) |
115 | 115 | ); |
116 | 116 | |
117 | -} elseif ( is_single() ) { |
|
117 | +} elseif (is_single()) { |
|
118 | 118 | |
119 | - if ( $comments ) { |
|
119 | + if ($comments) { |
|
120 | 120 | echo '<hr class="styled-separator is-style-wide" aria-hidden="true" />'; |
121 | 121 | } |
122 | 122 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | <div class="comment-respond" id="respond"> |
126 | 126 | |
127 | - <p class="comments-closed"><?php _e( 'Comments are closed.', 'twentytwenty' ); ?></p> |
|
127 | + <p class="comments-closed"><?php _e('Comments are closed.', 'twentytwenty'); ?></p> |
|
128 | 128 | |
129 | 129 | </div><!-- #respond --> |
130 | 130 |
@@ -14,14 +14,14 @@ discard block |
||
14 | 14 | |
15 | 15 | <div class="section-inner thin error404-content"> |
16 | 16 | |
17 | - <h1 class="entry-title"><?php _e( 'Page Not Found', 'twentytwenty' ); ?></h1> |
|
17 | + <h1 class="entry-title"><?php _e('Page Not Found', 'twentytwenty'); ?></h1> |
|
18 | 18 | |
19 | - <div class="intro-text"><p><?php _e( 'The page you were looking for could not be found. It might have been removed, renamed, or did not exist in the first place.', 'twentytwenty' ); ?></p></div> |
|
19 | + <div class="intro-text"><p><?php _e('The page you were looking for could not be found. It might have been removed, renamed, or did not exist in the first place.', 'twentytwenty'); ?></p></div> |
|
20 | 20 | |
21 | 21 | <?php |
22 | 22 | get_search_form( |
23 | 23 | array( |
24 | - 'aria_label' => __( '404 not found', 'twentytwenty' ), |
|
24 | + 'aria_label' => __('404 not found', 'twentytwenty'), |
|
25 | 25 | ) |
26 | 26 | ); |
27 | 27 | ?> |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | </main><!-- #site-content --> |
32 | 32 | |
33 | -<?php get_template_part( 'template-parts/footer-menus-widgets' ); ?> |
|
33 | +<?php get_template_part('template-parts/footer-menus-widgets'); ?> |
|
34 | 34 | |
35 | 35 | <?php |
36 | 36 | get_footer(); |
@@ -7,12 +7,12 @@ discard block |
||
7 | 7 | * @since Twenty Twenty 1.0 |
8 | 8 | */ |
9 | 9 | |
10 | -if ( has_post_thumbnail() && ! post_password_required() ) { |
|
10 | +if (has_post_thumbnail() && ! post_password_required()) { |
|
11 | 11 | |
12 | 12 | $featured_media_inner_classes = ''; |
13 | 13 | |
14 | 14 | // Make the featured media thinner on archive pages. |
15 | - if ( ! is_singular() ) { |
|
15 | + if ( ! is_singular()) { |
|
16 | 16 | $featured_media_inner_classes .= ' medium'; |
17 | 17 | } |
18 | 18 | ?> |
@@ -26,10 +26,10 @@ discard block |
||
26 | 26 | |
27 | 27 | $caption = get_the_post_thumbnail_caption(); |
28 | 28 | |
29 | - if ( $caption ) { |
|
29 | + if ($caption) { |
|
30 | 30 | ?> |
31 | 31 | |
32 | - <figcaption class="wp-caption-text"><?php echo wp_kses_post( $caption ); ?></figcaption> |
|
32 | + <figcaption class="wp-caption-text"><?php echo wp_kses_post($caption); ?></figcaption> |
|
33 | 33 | |
34 | 34 | <?php |
35 | 35 | } |
@@ -7,26 +7,26 @@ |
||
7 | 7 | * @since Twenty Twenty 1.0 |
8 | 8 | */ |
9 | 9 | |
10 | -if ( (bool) get_the_author_meta( 'description' ) && (bool) get_theme_mod( 'show_author_bio', true ) ) : ?> |
|
10 | +if ((bool) get_the_author_meta('description') && (bool) get_theme_mod('show_author_bio', true)) : ?> |
|
11 | 11 | <div class="author-bio"> |
12 | 12 | <div class="author-title-wrapper"> |
13 | 13 | <div class="author-avatar vcard"> |
14 | - <?php echo get_avatar( get_the_author_meta( 'ID' ), 160 ); ?> |
|
14 | + <?php echo get_avatar(get_the_author_meta('ID'), 160); ?> |
|
15 | 15 | </div> |
16 | 16 | <h2 class="author-title heading-size-4"> |
17 | 17 | <?php |
18 | 18 | printf( |
19 | 19 | /* translators: %s: Author name. */ |
20 | - __( 'By %s', 'twentytwenty' ), |
|
21 | - esc_html( get_the_author() ) |
|
20 | + __('By %s', 'twentytwenty'), |
|
21 | + esc_html(get_the_author()) |
|
22 | 22 | ); |
23 | 23 | ?> |
24 | 24 | </h2> |
25 | 25 | </div><!-- .author-name --> |
26 | 26 | <div class="author-description"> |
27 | - <?php echo wp_kses_post( wpautop( get_the_author_meta( 'description' ) ) ); ?> |
|
28 | - <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> |
|
29 | - <?php _e( 'View Archive <span aria-hidden="true">→</span>', 'twentytwenty' ); ?> |
|
27 | + <?php echo wp_kses_post(wpautop(get_the_author_meta('description'))); ?> |
|
28 | + <a class="author-link" href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" rel="author"> |
|
29 | + <?php _e('View Archive <span aria-hidden="true">→</span>', 'twentytwenty'); ?> |
|
30 | 30 | </a> |
31 | 31 | </div><!-- .author-description --> |
32 | 32 | </div><!-- .author-bio --> |
@@ -10,42 +10,42 @@ |
||
10 | 10 | $next_post = get_next_post(); |
11 | 11 | $prev_post = get_previous_post(); |
12 | 12 | |
13 | -if ( $next_post || $prev_post ) { |
|
13 | +if ($next_post || $prev_post) { |
|
14 | 14 | |
15 | 15 | $pagination_classes = ''; |
16 | 16 | |
17 | - if ( ! $next_post ) { |
|
17 | + if ( ! $next_post) { |
|
18 | 18 | $pagination_classes = ' only-one only-prev'; |
19 | - } elseif ( ! $prev_post ) { |
|
19 | + } elseif ( ! $prev_post) { |
|
20 | 20 | $pagination_classes = ' only-one only-next'; |
21 | 21 | } |
22 | 22 | |
23 | 23 | ?> |
24 | 24 | |
25 | - <nav class="pagination-single section-inner<?php echo esc_attr( $pagination_classes ); ?>" aria-label="<?php esc_attr_e( 'Post', 'twentytwenty' ); ?>"> |
|
25 | + <nav class="pagination-single section-inner<?php echo esc_attr($pagination_classes); ?>" aria-label="<?php esc_attr_e('Post', 'twentytwenty'); ?>"> |
|
26 | 26 | |
27 | 27 | <hr class="styled-separator is-style-wide" aria-hidden="true" /> |
28 | 28 | |
29 | 29 | <div class="pagination-single-inner"> |
30 | 30 | |
31 | 31 | <?php |
32 | - if ( $prev_post ) { |
|
32 | + if ($prev_post) { |
|
33 | 33 | ?> |
34 | 34 | |
35 | - <a class="previous-post" href="<?php echo esc_url( get_permalink( $prev_post->ID ) ); ?>"> |
|
35 | + <a class="previous-post" href="<?php echo esc_url(get_permalink($prev_post->ID)); ?>"> |
|
36 | 36 | <span class="arrow" aria-hidden="true">←</span> |
37 | - <span class="title"><span class="title-inner"><?php echo wp_kses_post( get_the_title( $prev_post->ID ) ); ?></span></span> |
|
37 | + <span class="title"><span class="title-inner"><?php echo wp_kses_post(get_the_title($prev_post->ID)); ?></span></span> |
|
38 | 38 | </a> |
39 | 39 | |
40 | 40 | <?php |
41 | 41 | } |
42 | 42 | |
43 | - if ( $next_post ) { |
|
43 | + if ($next_post) { |
|
44 | 44 | ?> |
45 | 45 | |
46 | - <a class="next-post" href="<?php echo esc_url( get_permalink( $next_post->ID ) ); ?>"> |
|
46 | + <a class="next-post" href="<?php echo esc_url(get_permalink($next_post->ID)); ?>"> |
|
47 | 47 | <span class="arrow" aria-hidden="true">→</span> |
48 | - <span class="title"><span class="title-inner"><?php echo wp_kses_post( get_the_title( $next_post->ID ) ); ?></span></span> |
|
48 | + <span class="title"><span class="title-inner"><?php echo wp_kses_post(get_the_title($next_post->ID)); ?></span></span> |
|
49 | 49 | </a> |
50 | 50 | <?php |
51 | 51 | } |
@@ -8,14 +8,14 @@ discard block |
||
8 | 8 | * @since Twenty Twenty 1.0 |
9 | 9 | */ |
10 | 10 | |
11 | -$has_footer_menu = has_nav_menu( 'footer' ); |
|
12 | -$has_social_menu = has_nav_menu( 'social' ); |
|
11 | +$has_footer_menu = has_nav_menu('footer'); |
|
12 | +$has_social_menu = has_nav_menu('social'); |
|
13 | 13 | |
14 | -$has_sidebar_1 = is_active_sidebar( 'sidebar-1' ); |
|
15 | -$has_sidebar_2 = is_active_sidebar( 'sidebar-2' ); |
|
14 | +$has_sidebar_1 = is_active_sidebar('sidebar-1'); |
|
15 | +$has_sidebar_2 = is_active_sidebar('sidebar-2'); |
|
16 | 16 | |
17 | 17 | // Only output the container if there are elements to display. |
18 | -if ( $has_footer_menu || $has_social_menu || $has_sidebar_1 || $has_sidebar_2 ) { |
|
18 | +if ($has_footer_menu || $has_social_menu || $has_sidebar_1 || $has_sidebar_2) { |
|
19 | 19 | ?> |
20 | 20 | |
21 | 21 | <div class="footer-nav-widgets-wrapper header-footer-group"> |
@@ -29,12 +29,12 @@ discard block |
||
29 | 29 | $footer_top_classes .= $has_footer_menu ? ' has-footer-menu' : ''; |
30 | 30 | $footer_top_classes .= $has_social_menu ? ' has-social-menu' : ''; |
31 | 31 | |
32 | - if ( $has_footer_menu || $has_social_menu ) { |
|
32 | + if ($has_footer_menu || $has_social_menu) { |
|
33 | 33 | ?> |
34 | 34 | <div class="footer-top<?php echo $footer_top_classes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output ?>"> |
35 | - <?php if ( $has_footer_menu ) { ?> |
|
35 | + <?php if ($has_footer_menu) { ?> |
|
36 | 36 | |
37 | - <nav aria-label="<?php esc_attr_e( 'Footer', 'twentytwenty' ); ?>" class="footer-menu-wrapper"> |
|
37 | + <nav aria-label="<?php esc_attr_e('Footer', 'twentytwenty'); ?>" class="footer-menu-wrapper"> |
|
38 | 38 | |
39 | 39 | <ul class="footer-menu reset-list-style"> |
40 | 40 | <?php |
@@ -52,9 +52,9 @@ discard block |
||
52 | 52 | </nav><!-- .site-nav --> |
53 | 53 | |
54 | 54 | <?php } ?> |
55 | - <?php if ( $has_social_menu ) { ?> |
|
55 | + <?php if ($has_social_menu) { ?> |
|
56 | 56 | |
57 | - <nav aria-label="<?php esc_attr_e( 'Social links', 'twentytwenty' ); ?>" class="footer-social-wrapper"> |
|
57 | + <nav aria-label="<?php esc_attr_e('Social links', 'twentytwenty'); ?>" class="footer-social-wrapper"> |
|
58 | 58 | |
59 | 59 | <ul class="social-menu footer-social reset-list-style social-icons fill-children-current-color"> |
60 | 60 | |
@@ -84,24 +84,24 @@ discard block |
||
84 | 84 | |
85 | 85 | <?php } ?> |
86 | 86 | |
87 | - <?php if ( $has_sidebar_1 || $has_sidebar_2 ) { ?> |
|
87 | + <?php if ($has_sidebar_1 || $has_sidebar_2) { ?> |
|
88 | 88 | |
89 | 89 | <aside class="footer-widgets-outer-wrapper"> |
90 | 90 | |
91 | 91 | <div class="footer-widgets-wrapper"> |
92 | 92 | |
93 | - <?php if ( $has_sidebar_1 ) { ?> |
|
93 | + <?php if ($has_sidebar_1) { ?> |
|
94 | 94 | |
95 | 95 | <div class="footer-widgets column-one grid-item"> |
96 | - <?php dynamic_sidebar( 'sidebar-1' ); ?> |
|
96 | + <?php dynamic_sidebar('sidebar-1'); ?> |
|
97 | 97 | </div> |
98 | 98 | |
99 | 99 | <?php } ?> |
100 | 100 | |
101 | - <?php if ( $has_sidebar_2 ) { ?> |
|
101 | + <?php if ($has_sidebar_2) { ?> |
|
102 | 102 | |
103 | 103 | <div class="footer-widgets column-two grid-item"> |
104 | - <?php dynamic_sidebar( 'sidebar-2' ); ?> |
|
104 | + <?php dynamic_sidebar('sidebar-2'); ?> |
|
105 | 105 | </div> |
106 | 106 | |
107 | 107 | <?php } ?> |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | */ |
9 | 9 | |
10 | 10 | ?> |
11 | -<div class="search-modal cover-modal header-footer-group" data-modal-target-string=".search-modal" role="dialog" aria-modal="true" aria-label="<?php esc_attr_e( 'Search', 'twentytwenty' ); ?>"> |
|
11 | +<div class="search-modal cover-modal header-footer-group" data-modal-target-string=".search-modal" role="dialog" aria-modal="true" aria-label="<?php esc_attr_e('Search', 'twentytwenty'); ?>"> |
|
12 | 12 | |
13 | 13 | <div class="search-modal-inner modal-inner"> |
14 | 14 | |
@@ -17,14 +17,14 @@ discard block |
||
17 | 17 | <?php |
18 | 18 | get_search_form( |
19 | 19 | array( |
20 | - 'aria_label' => __( 'Search for:', 'twentytwenty' ), |
|
20 | + 'aria_label' => __('Search for:', 'twentytwenty'), |
|
21 | 21 | ) |
22 | 22 | ); |
23 | 23 | ?> |
24 | 24 | |
25 | 25 | <button class="toggle search-untoggle close-search-toggle fill-children-current-color" data-toggle-target=".search-modal" data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field"> |
26 | - <span class="screen-reader-text"><?php _e( 'Close search', 'twentytwenty' ); ?></span> |
|
27 | - <?php twentytwenty_the_theme_svg( 'cross' ); ?> |
|
26 | + <span class="screen-reader-text"><?php _e('Close search', 'twentytwenty'); ?></span> |
|
27 | + <?php twentytwenty_the_theme_svg('cross'); ?> |
|
28 | 28 | </button><!-- .search-toggle --> |
29 | 29 | |
30 | 30 | </div><!-- .section-inner --> |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | * Translators: This text contains HTML to allow the text to be shorter on small screens. |
17 | 17 | * The text inside the span with the class nav-short will be hidden on small screens. |
18 | 18 | */ |
19 | - __( 'Newer <span class="nav-short">Posts</span>', 'twentytwenty' ) |
|
19 | + __('Newer <span class="nav-short">Posts</span>', 'twentytwenty') |
|
20 | 20 | ); |
21 | 21 | $next_text = sprintf( |
22 | 22 | '<span class="nav-next-text">%s</span> %s', |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * Translators: This text contains HTML to allow the text to be shorter on small screens. |
25 | 25 | * The text inside the span with the class nav-short will be hidden on small screens. |
26 | 26 | */ |
27 | - __( 'Older <span class="nav-short">Posts</span>', 'twentytwenty' ), |
|
27 | + __('Older <span class="nav-short">Posts</span>', 'twentytwenty'), |
|
28 | 28 | '<span aria-hidden="true">→</span>' |
29 | 29 | ); |
30 | 30 | |
@@ -37,16 +37,16 @@ discard block |
||
37 | 37 | ); |
38 | 38 | |
39 | 39 | // If we're not outputting the previous page link, prepend a placeholder with `visibility: hidden` to take its place. |
40 | -if ( strpos( $posts_pagination, 'prev page-numbers' ) === false ) { |
|
41 | - $posts_pagination = str_replace( '<div class="nav-links">', '<div class="nav-links"><span class="prev page-numbers placeholder" aria-hidden="true">' . $prev_text . '</span>', $posts_pagination ); |
|
40 | +if (strpos($posts_pagination, 'prev page-numbers') === false) { |
|
41 | + $posts_pagination = str_replace('<div class="nav-links">', '<div class="nav-links"><span class="prev page-numbers placeholder" aria-hidden="true">'.$prev_text.'</span>', $posts_pagination); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | // If we're not outputting the next page link, append a placeholder with `visibility: hidden` to take its place. |
45 | -if ( strpos( $posts_pagination, 'next page-numbers' ) === false ) { |
|
46 | - $posts_pagination = str_replace( '</div>', '<span class="next page-numbers placeholder" aria-hidden="true">' . $next_text . '</span></div>', $posts_pagination ); |
|
45 | +if (strpos($posts_pagination, 'next page-numbers') === false) { |
|
46 | + $posts_pagination = str_replace('</div>', '<span class="next page-numbers placeholder" aria-hidden="true">'.$next_text.'</span></div>', $posts_pagination); |
|
47 | 47 | } |
48 | 48 | |
49 | -if ( $posts_pagination ) { ?> |
|
49 | +if ($posts_pagination) { ?> |
|
50 | 50 | |
51 | 51 | <div class="pagination-wrapper section-inner"> |
52 | 52 |
@@ -18,8 +18,8 @@ discard block |
||
18 | 18 | <div class="menu-top"> |
19 | 19 | |
20 | 20 | <button class="toggle close-nav-toggle fill-children-current-color" data-toggle-target=".menu-modal" data-toggle-body-class="showing-menu-modal" data-set-focus=".menu-modal"> |
21 | - <span class="toggle-text"><?php _e( 'Close Menu', 'twentytwenty' ); ?></span> |
|
22 | - <?php twentytwenty_the_theme_svg( 'cross' ); ?> |
|
21 | + <span class="toggle-text"><?php _e('Close Menu', 'twentytwenty'); ?></span> |
|
22 | + <?php twentytwenty_the_theme_svg('cross'); ?> |
|
23 | 23 | </button><!-- .nav-toggle --> |
24 | 24 | |
25 | 25 | <?php |
@@ -27,29 +27,29 @@ discard block |
||
27 | 27 | $mobile_menu_location = ''; |
28 | 28 | |
29 | 29 | // If the mobile menu location is not set, use the primary and expanded locations as fallbacks, in that order. |
30 | - if ( has_nav_menu( 'mobile' ) ) { |
|
30 | + if (has_nav_menu('mobile')) { |
|
31 | 31 | $mobile_menu_location = 'mobile'; |
32 | - } elseif ( has_nav_menu( 'primary' ) ) { |
|
32 | + } elseif (has_nav_menu('primary')) { |
|
33 | 33 | $mobile_menu_location = 'primary'; |
34 | - } elseif ( has_nav_menu( 'expanded' ) ) { |
|
34 | + } elseif (has_nav_menu('expanded')) { |
|
35 | 35 | $mobile_menu_location = 'expanded'; |
36 | 36 | } |
37 | 37 | |
38 | - if ( has_nav_menu( 'expanded' ) ) { |
|
38 | + if (has_nav_menu('expanded')) { |
|
39 | 39 | |
40 | 40 | $expanded_nav_classes = ''; |
41 | 41 | |
42 | - if ( 'expanded' === $mobile_menu_location ) { |
|
42 | + if ('expanded' === $mobile_menu_location) { |
|
43 | 43 | $expanded_nav_classes .= ' mobile-menu'; |
44 | 44 | } |
45 | 45 | |
46 | 46 | ?> |
47 | 47 | |
48 | - <nav class="expanded-menu<?php echo esc_attr( $expanded_nav_classes ); ?>" aria-label="<?php echo esc_attr_x( 'Expanded', 'menu', 'twentytwenty' ); ?>"> |
|
48 | + <nav class="expanded-menu<?php echo esc_attr($expanded_nav_classes); ?>" aria-label="<?php echo esc_attr_x('Expanded', 'menu', 'twentytwenty'); ?>"> |
|
49 | 49 | |
50 | 50 | <ul class="modal-menu reset-list-style"> |
51 | 51 | <?php |
52 | - if ( has_nav_menu( 'expanded' ) ) { |
|
52 | + if (has_nav_menu('expanded')) { |
|
53 | 53 | wp_nav_menu( |
54 | 54 | array( |
55 | 55 | 'container' => '', |
@@ -67,15 +67,15 @@ discard block |
||
67 | 67 | <?php |
68 | 68 | } |
69 | 69 | |
70 | - if ( 'expanded' !== $mobile_menu_location ) { |
|
70 | + if ('expanded' !== $mobile_menu_location) { |
|
71 | 71 | ?> |
72 | 72 | |
73 | - <nav class="mobile-menu" aria-label="<?php echo esc_attr_x( 'Mobile', 'menu', 'twentytwenty' ); ?>"> |
|
73 | + <nav class="mobile-menu" aria-label="<?php echo esc_attr_x('Mobile', 'menu', 'twentytwenty'); ?>"> |
|
74 | 74 | |
75 | 75 | <ul class="modal-menu reset-list-style"> |
76 | 76 | |
77 | 77 | <?php |
78 | - if ( $mobile_menu_location ) { |
|
78 | + if ($mobile_menu_location) { |
|
79 | 79 | |
80 | 80 | wp_nav_menu( |
81 | 81 | array( |
@@ -112,9 +112,9 @@ discard block |
||
112 | 112 | |
113 | 113 | <div class="menu-bottom"> |
114 | 114 | |
115 | - <?php if ( has_nav_menu( 'social' ) ) { ?> |
|
115 | + <?php if (has_nav_menu('social')) { ?> |
|
116 | 116 | |
117 | - <nav aria-label="<?php esc_attr_e( 'Expanded Social links', 'twentytwenty' ); ?>"> |
|
117 | + <nav aria-label="<?php esc_attr_e('Expanded Social links', 'twentytwenty'); ?>"> |
|
118 | 118 | <ul class="social-menu reset-list-style social-icons fill-children-current-color"> |
119 | 119 | |
120 | 120 | <?php |