Completed
Branch master (d2f79a)
by
unknown
07:00 queued 14s
created
themes/twentytwenty/footer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -22,21 +22,21 @@  discard block
 block discarded – undo
22 22
 							<?php
23 23
 							echo date_i18n(
24 24
 								/* translators: Copyright date format, see https://www.php.net/manual/datetime.format.php */
25
-								_x( 'Y', 'copyright date format', 'twentytwenty' )
25
+								_x('Y', 'copyright date format', 'twentytwenty')
26 26
 							);
27 27
 							?>
28
-							<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
28
+							<a href="<?php echo esc_url(home_url('/')); ?>"><?php bloginfo('name'); ?></a>
29 29
 						</p><!-- .footer-copyright -->
30 30
 
31 31
 						<?php
32
-						if ( function_exists( 'the_privacy_policy_link' ) ) {
33
-							the_privacy_policy_link( '<p class="privacy-policy">', '</p>' );
32
+						if (function_exists('the_privacy_policy_link')) {
33
+							the_privacy_policy_link('<p class="privacy-policy">', '</p>');
34 34
 						}
35 35
 						?>
36 36
 
37 37
 						<p class="powered-by-wordpress">
38
-							<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwenty' ) ); ?>">
39
-								<?php _e( 'Powered by WordPress', 'twentytwenty' ); ?>
38
+							<a href="<?php echo esc_url(__('https://wordpress.org/', 'twentytwenty')); ?>">
39
+								<?php _e('Powered by WordPress', 'twentytwenty'); ?>
40 40
 							</a>
41 41
 						</p><!-- .powered-by-wordpress -->
42 42
 
@@ -46,13 +46,13 @@  discard block
 block discarded – undo
46 46
 						<span class="to-the-top-long">
47 47
 							<?php
48 48
 							/* translators: %s: HTML character for up arrow. */
49
-							printf( __( 'To the top %s', 'twentytwenty' ), '<span class="arrow" aria-hidden="true">&uarr;</span>' );
49
+							printf(__('To the top %s', 'twentytwenty'), '<span class="arrow" aria-hidden="true">&uarr;</span>');
50 50
 							?>
51 51
 						</span><!-- .to-the-top-long -->
52 52
 						<span class="to-the-top-short">
53 53
 							<?php
54 54
 							/* translators: %s: HTML character for up arrow. */
55
-							printf( __( 'Up %s', 'twentytwenty' ), '<span class="arrow" aria-hidden="true">&uarr;</span>' );
55
+							printf(__('Up %s', 'twentytwenty'), '<span class="arrow" aria-hidden="true">&uarr;</span>');
56 56
 							?>
57 57
 						</span><!-- .to-the-top-short -->
58 58
 					</a><!-- .to-the-top -->
Please login to merge, or discard this patch.
themes/twentytwenty/inc/custom-css.php 1 patch
Spacing   +55 added lines, -55 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  * @since Twenty Twenty 1.0
8 8
  */
9 9
 
10
-if ( ! function_exists( 'twentytwenty_generate_css' ) ) {
10
+if ( ! function_exists('twentytwenty_generate_css')) {
11 11
 
12 12
 	/**
13 13
 	 * Generate CSS.
@@ -21,21 +21,21 @@  discard block
 block discarded – undo
21 21
 	 * @param string $suffix   The CSS suffix.
22 22
 	 * @param bool   $display  Print the styles.
23 23
 	 */
24
-	function twentytwenty_generate_css( $selector, $style, $value, $prefix = '', $suffix = '', $display = true ) {
24
+	function twentytwenty_generate_css($selector, $style, $value, $prefix = '', $suffix = '', $display = true) {
25 25
 
26 26
 		$return = '';
27 27
 
28 28
 		/*
29 29
 		 * Bail early if we have no $selector elements or properties and $value.
30 30
 		 */
31
-		if ( ! $value || ! $selector ) {
31
+		if ( ! $value || ! $selector) {
32 32
 
33 33
 			return;
34 34
 		}
35 35
 
36
-		$return = sprintf( '%s { %s: %s; }', $selector, $style, $prefix . $value . $suffix );
36
+		$return = sprintf('%s { %s: %s; }', $selector, $style, $prefix.$value.$suffix);
37 37
 
38
-		if ( $display ) {
38
+		if ($display) {
39 39
 
40 40
 			echo $return; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- We need to double check this, but for now, we want to pass PHPCS ;)
41 41
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	}
47 47
 }
48 48
 
49
-if ( ! function_exists( 'twentytwenty_get_customizer_css' ) ) {
49
+if ( ! function_exists('twentytwenty_get_customizer_css')) {
50 50
 
51 51
 	/**
52 52
 	 * Get CSS Built from Customizer Options.
@@ -56,28 +56,28 @@  discard block
 block discarded – undo
56 56
 	 *
57 57
 	 * @param string $type Whether to return CSS for the "front-end", "block-editor", or "classic-editor".
58 58
 	 */
59
-	function twentytwenty_get_customizer_css( $type = 'front-end' ) {
59
+	function twentytwenty_get_customizer_css($type = 'front-end') {
60 60
 
61 61
 		// Get variables.
62
-		$body              = sanitize_hex_color( twentytwenty_get_color_for_area( 'content', 'text' ) );
62
+		$body              = sanitize_hex_color(twentytwenty_get_color_for_area('content', 'text'));
63 63
 		$body_default      = '#000000';
64
-		$secondary         = sanitize_hex_color( twentytwenty_get_color_for_area( 'content', 'secondary' ) );
64
+		$secondary         = sanitize_hex_color(twentytwenty_get_color_for_area('content', 'secondary'));
65 65
 		$secondary_default = '#6d6d6d';
66
-		$borders           = sanitize_hex_color( twentytwenty_get_color_for_area( 'content', 'borders' ) );
66
+		$borders           = sanitize_hex_color(twentytwenty_get_color_for_area('content', 'borders'));
67 67
 		$borders_default   = '#dcd7ca';
68
-		$accent            = sanitize_hex_color( twentytwenty_get_color_for_area( 'content', 'accent' ) );
68
+		$accent            = sanitize_hex_color(twentytwenty_get_color_for_area('content', 'accent'));
69 69
 		$accent_default    = '#cd2653';
70 70
 
71 71
 		// Header.
72
-		$header_footer_background         = sanitize_hex_color( twentytwenty_get_color_for_area( 'header-footer', 'background' ) );
72
+		$header_footer_background         = sanitize_hex_color(twentytwenty_get_color_for_area('header-footer', 'background'));
73 73
 		$header_footer_background_default = '#ffffff';
74 74
 
75 75
 		// Cover.
76
-		$cover         = sanitize_hex_color( get_theme_mod( 'cover_template_overlay_text_color' ) );
76
+		$cover         = sanitize_hex_color(get_theme_mod('cover_template_overlay_text_color'));
77 77
 		$cover_default = '#ffffff';
78 78
 
79 79
 		// Background.
80
-		$background         = sanitize_hex_color_no_hash( get_theme_mod( 'background_color' ) );
80
+		$background         = sanitize_hex_color_no_hash(get_theme_mod('background_color'));
81 81
 		$background_default = 'f5efe0';
82 82
 
83 83
 		ob_start();
@@ -93,98 +93,98 @@  discard block
 block discarded – undo
93 93
 		 */
94 94
 
95 95
 		// Front-End Styles.
96
-		if ( 'front-end' === $type ) {
96
+		if ('front-end' === $type) {
97 97
 
98 98
 			// Auto-calculated colors.
99 99
 			$elements_definitions = twentytwenty_get_elements_array();
100
-			foreach ( $elements_definitions as $context => $props ) {
101
-				foreach ( $props as $key => $definitions ) {
102
-					foreach ( $definitions as $property => $elements ) {
100
+			foreach ($elements_definitions as $context => $props) {
101
+				foreach ($props as $key => $definitions) {
102
+					foreach ($definitions as $property => $elements) {
103 103
 						/*
104 104
 						 * If we don't have an elements array or it is empty
105 105
 						 * then skip this iteration early;
106 106
 						 */
107
-						if ( ! is_array( $elements ) || empty( $elements ) ) {
107
+						if ( ! is_array($elements) || empty($elements)) {
108 108
 							continue;
109 109
 						}
110
-						$val = twentytwenty_get_color_for_area( $context, $key );
111
-						if ( $val ) {
112
-							twentytwenty_generate_css( implode( ',', $elements ), $property, $val );
110
+						$val = twentytwenty_get_color_for_area($context, $key);
111
+						if ($val) {
112
+							twentytwenty_generate_css(implode(',', $elements), $property, $val);
113 113
 						}
114 114
 					}
115 115
 				}
116 116
 			}
117 117
 
118
-			if ( $cover && $cover !== $cover_default ) {
119
-				twentytwenty_generate_css( '.overlay-header .header-inner', 'color', $cover );
120
-				twentytwenty_generate_css( '.cover-header .entry-header *', 'color', $cover );
118
+			if ($cover && $cover !== $cover_default) {
119
+				twentytwenty_generate_css('.overlay-header .header-inner', 'color', $cover);
120
+				twentytwenty_generate_css('.cover-header .entry-header *', 'color', $cover);
121 121
 			}
122 122
 
123 123
 			// Block Editor Styles.
124
-		} elseif ( 'block-editor' === $type ) {
124
+		} elseif ('block-editor' === $type) {
125 125
 
126 126
 			// Colors.
127 127
 			// Accent color.
128
-			if ( $accent && $accent !== $accent_default ) {
129
-				twentytwenty_generate_css( ':root .has-accent-color, .editor-styles-wrapper a, .editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter, .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link, .editor-styles-wrapper .wp-block-pullquote::before, .editor-styles-wrapper .wp-block-file .wp-block-file__textlink', 'color', $accent );
130
-				twentytwenty_generate_css( '.editor-styles-wrapper .wp-block-quote', 'border-color', $accent, '' );
131
-				twentytwenty_generate_css( '.has-accent-background-color, .editor-styles-wrapper .wp-block-button__link, .editor-styles-wrapper .wp-block-file__button', 'background-color', $accent );
128
+			if ($accent && $accent !== $accent_default) {
129
+				twentytwenty_generate_css(':root .has-accent-color, .editor-styles-wrapper a, .editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter, .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link, .editor-styles-wrapper .wp-block-pullquote::before, .editor-styles-wrapper .wp-block-file .wp-block-file__textlink', 'color', $accent);
130
+				twentytwenty_generate_css('.editor-styles-wrapper .wp-block-quote', 'border-color', $accent, '');
131
+				twentytwenty_generate_css('.has-accent-background-color, .editor-styles-wrapper .wp-block-button__link, .editor-styles-wrapper .wp-block-file__button', 'background-color', $accent);
132 132
 			}
133 133
 
134 134
 			// Background color.
135
-			if ( $background && $background !== $background_default ) {
136
-				twentytwenty_generate_css( '.editor-styles-wrapper', 'background-color', '#' . $background );
137
-				twentytwenty_generate_css( '.has-background.has-primary-background-color:not(.has-text-color),.has-background.has-primary-background-color *:not(.has-text-color),.has-background.has-accent-background-color:not(.has-text-color),.has-background.has-accent-background-color *:not(.has-text-color)', 'color', '#' . $background );
135
+			if ($background && $background !== $background_default) {
136
+				twentytwenty_generate_css('.editor-styles-wrapper', 'background-color', '#'.$background);
137
+				twentytwenty_generate_css('.has-background.has-primary-background-color:not(.has-text-color),.has-background.has-primary-background-color *:not(.has-text-color),.has-background.has-accent-background-color:not(.has-text-color),.has-background.has-accent-background-color *:not(.has-text-color)', 'color', '#'.$background);
138 138
 			}
139 139
 
140 140
 			// Borders color.
141
-			if ( $borders && $borders !== $borders_default ) {
142
-				twentytwenty_generate_css( '.editor-styles-wrapper .wp-block-code, .editor-styles-wrapper pre, .editor-styles-wrapper .wp-block-preformatted pre, .editor-styles-wrapper .wp-block-verse pre, .editor-styles-wrapper fieldset, .editor-styles-wrapper .wp-block-table, .editor-styles-wrapper .wp-block-table *, .editor-styles-wrapper .wp-block-table.is-style-stripes, .editor-styles-wrapper .wp-block-latest-posts.is-grid li', 'border-color', $borders );
143
-				twentytwenty_generate_css( '.editor-styles-wrapper .wp-block-table caption, .editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(odd)', 'background-color', $borders );
141
+			if ($borders && $borders !== $borders_default) {
142
+				twentytwenty_generate_css('.editor-styles-wrapper .wp-block-code, .editor-styles-wrapper pre, .editor-styles-wrapper .wp-block-preformatted pre, .editor-styles-wrapper .wp-block-verse pre, .editor-styles-wrapper fieldset, .editor-styles-wrapper .wp-block-table, .editor-styles-wrapper .wp-block-table *, .editor-styles-wrapper .wp-block-table.is-style-stripes, .editor-styles-wrapper .wp-block-latest-posts.is-grid li', 'border-color', $borders);
143
+				twentytwenty_generate_css('.editor-styles-wrapper .wp-block-table caption, .editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(odd)', 'background-color', $borders);
144 144
 			}
145 145
 
146 146
 			// Text color.
147
-			if ( $body && $body !== $body_default ) {
148
-				twentytwenty_generate_css( 'body .editor-styles-wrapper, .editor-post-title__block .editor-post-title__input, .editor-post-title__block .editor-post-title__input:focus', 'color', $body );
147
+			if ($body && $body !== $body_default) {
148
+				twentytwenty_generate_css('body .editor-styles-wrapper, .editor-post-title__block .editor-post-title__input, .editor-post-title__block .editor-post-title__input:focus', 'color', $body);
149 149
 			}
150 150
 
151 151
 			// Secondary color.
152
-			if ( $secondary && $secondary !== $secondary_default ) {
153
-				twentytwenty_generate_css( '.editor-styles-wrapper figcaption, .editor-styles-wrapper cite, .editor-styles-wrapper .wp-block-quote__citation, .editor-styles-wrapper .wp-block-quote cite, .editor-styles-wrapper .wp-block-quote footer, .editor-styles-wrapper .wp-block-pullquote__citation, .editor-styles-wrapper .wp-block-pullquote cite, .editor-styles-wrapper .wp-block-pullquote footer, .editor-styles-wrapper ul.wp-block-archives li, .editor-styles-wrapper ul.wp-block-categories li, .editor-styles-wrapper ul.wp-block-latest-posts li, .editor-styles-wrapper ul.wp-block-categories__list li, .editor-styles-wrapper .wp-block-latest-comments time, .editor-styles-wrapper .wp-block-latest-posts time', 'color', $secondary );
152
+			if ($secondary && $secondary !== $secondary_default) {
153
+				twentytwenty_generate_css('.editor-styles-wrapper figcaption, .editor-styles-wrapper cite, .editor-styles-wrapper .wp-block-quote__citation, .editor-styles-wrapper .wp-block-quote cite, .editor-styles-wrapper .wp-block-quote footer, .editor-styles-wrapper .wp-block-pullquote__citation, .editor-styles-wrapper .wp-block-pullquote cite, .editor-styles-wrapper .wp-block-pullquote footer, .editor-styles-wrapper ul.wp-block-archives li, .editor-styles-wrapper ul.wp-block-categories li, .editor-styles-wrapper ul.wp-block-latest-posts li, .editor-styles-wrapper ul.wp-block-categories__list li, .editor-styles-wrapper .wp-block-latest-comments time, .editor-styles-wrapper .wp-block-latest-posts time', 'color', $secondary);
154 154
 			}
155 155
 
156 156
 			// Header Footer Background Color.
157
-			if ( $header_footer_background && $header_footer_background !== $header_footer_background_default ) {
158
-				twentytwenty_generate_css( '.editor-styles-wrapper .wp-block-pullquote::before', 'background-color', $header_footer_background );
157
+			if ($header_footer_background && $header_footer_background !== $header_footer_background_default) {
158
+				twentytwenty_generate_css('.editor-styles-wrapper .wp-block-pullquote::before', 'background-color', $header_footer_background);
159 159
 			}
160
-		} elseif ( 'classic-editor' === $type ) {
160
+		} elseif ('classic-editor' === $type) {
161 161
 
162 162
 			// Colors.
163 163
 			// Accent color.
164
-			if ( $accent && $accent !== $accent_default ) {
165
-				twentytwenty_generate_css( 'body#tinymce.wp-editor.content a, body#tinymce.wp-editor.content a:focus, body#tinymce.wp-editor.content a:hover', 'color', $accent );
166
-				twentytwenty_generate_css( 'body#tinymce.wp-editor.content blockquote, body#tinymce.wp-editor.content .wp-block-quote', 'border-color', $accent, '', ' !important' );
167
-				twentytwenty_generate_css( 'body#tinymce.wp-editor.content button, body#tinymce.wp-editor.content .faux-button, body#tinymce.wp-editor.content .wp-block-button__link, body#tinymce.wp-editor.content .wp-block-file__button, body#tinymce.wp-editor.content input[type=\'button\'], body#tinymce.wp-editor.content input[type=\'reset\'], body#tinymce.wp-editor.content input[type=\'submit\']', 'background-color', $accent );
164
+			if ($accent && $accent !== $accent_default) {
165
+				twentytwenty_generate_css('body#tinymce.wp-editor.content a, body#tinymce.wp-editor.content a:focus, body#tinymce.wp-editor.content a:hover', 'color', $accent);
166
+				twentytwenty_generate_css('body#tinymce.wp-editor.content blockquote, body#tinymce.wp-editor.content .wp-block-quote', 'border-color', $accent, '', ' !important');
167
+				twentytwenty_generate_css('body#tinymce.wp-editor.content button, body#tinymce.wp-editor.content .faux-button, body#tinymce.wp-editor.content .wp-block-button__link, body#tinymce.wp-editor.content .wp-block-file__button, body#tinymce.wp-editor.content input[type=\'button\'], body#tinymce.wp-editor.content input[type=\'reset\'], body#tinymce.wp-editor.content input[type=\'submit\']', 'background-color', $accent);
168 168
 			}
169 169
 
170 170
 			// Background color.
171
-			if ( $background && $background !== $background_default ) {
172
-				twentytwenty_generate_css( 'body#tinymce.wp-editor.content', 'background-color', '#' . $background );
171
+			if ($background && $background !== $background_default) {
172
+				twentytwenty_generate_css('body#tinymce.wp-editor.content', 'background-color', '#'.$background);
173 173
 			}
174 174
 
175 175
 			// Text color.
176
-			if ( $body && $body !== $body_default ) {
177
-				twentytwenty_generate_css( 'body#tinymce.wp-editor.content', 'color', $body );
176
+			if ($body && $body !== $body_default) {
177
+				twentytwenty_generate_css('body#tinymce.wp-editor.content', 'color', $body);
178 178
 			}
179 179
 
180 180
 			// Secondary color.
181
-			if ( $secondary && $secondary !== $secondary_default ) {
182
-				twentytwenty_generate_css( 'body#tinymce.wp-editor.content hr:not(.is-style-dots), body#tinymce.wp-editor.content cite, body#tinymce.wp-editor.content figcaption, body#tinymce.wp-editor.content .wp-caption-text, body#tinymce.wp-editor.content .wp-caption-dd, body#tinymce.wp-editor.content .gallery-caption', 'color', $secondary );
181
+			if ($secondary && $secondary !== $secondary_default) {
182
+				twentytwenty_generate_css('body#tinymce.wp-editor.content hr:not(.is-style-dots), body#tinymce.wp-editor.content cite, body#tinymce.wp-editor.content figcaption, body#tinymce.wp-editor.content .wp-caption-text, body#tinymce.wp-editor.content .wp-caption-dd, body#tinymce.wp-editor.content .gallery-caption', 'color', $secondary);
183 183
 			}
184 184
 
185 185
 			// Borders color.
186
-			if ( $borders && $borders !== $borders_default ) {
187
-				twentytwenty_generate_css( 'body#tinymce.wp-editor.content pre, body#tinymce.wp-editor.content hr, body#tinymce.wp-editor.content fieldset,body#tinymce.wp-editor.content input, body#tinymce.wp-editor.content textarea', 'border-color', $borders );
186
+			if ($borders && $borders !== $borders_default) {
187
+				twentytwenty_generate_css('body#tinymce.wp-editor.content pre, body#tinymce.wp-editor.content hr, body#tinymce.wp-editor.content fieldset,body#tinymce.wp-editor.content input, body#tinymce.wp-editor.content textarea', 'border-color', $borders);
188 188
 			}
189 189
 		}
190 190
 
Please login to merge, or discard this patch.
themes/twentytwenty/inc/svg-icons.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  * @since Twenty Twenty 1.0
8 8
  */
9 9
 
10
-if ( ! function_exists( 'twentytwenty_the_theme_svg' ) ) {
10
+if ( ! function_exists('twentytwenty_the_theme_svg')) {
11 11
 	/**
12 12
 	 * Output and Get Theme SVG.
13 13
 	 * Output and get the SVG markup for an icon in the TwentyTwenty_SVG_Icons class.
@@ -18,12 +18,12 @@  discard block
 block discarded – undo
18 18
 	 * @param string $group    The group the icon belongs to.
19 19
 	 * @param string $color    Color code.
20 20
 	 */
21
-	function twentytwenty_the_theme_svg( $svg_name, $group = 'ui', $color = '' ) {
22
-		echo twentytwenty_get_theme_svg( $svg_name, $group, $color ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in twentytwenty_get_theme_svg().
21
+	function twentytwenty_the_theme_svg($svg_name, $group = 'ui', $color = '') {
22
+		echo twentytwenty_get_theme_svg($svg_name, $group, $color); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in twentytwenty_get_theme_svg().
23 23
 	}
24 24
 }
25 25
 
26
-if ( ! function_exists( 'twentytwenty_get_theme_svg' ) ) {
26
+if ( ! function_exists('twentytwenty_get_theme_svg')) {
27 27
 
28 28
 	/**
29 29
 	 * Get information about the SVG icon.
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
 	 * @param string $group    The group the icon belongs to.
35 35
 	 * @param string $color    Color code.
36 36
 	 */
37
-	function twentytwenty_get_theme_svg( $svg_name, $group = 'ui', $color = '' ) {
37
+	function twentytwenty_get_theme_svg($svg_name, $group = 'ui', $color = '') {
38 38
 
39 39
 		// Make sure that only our allowed tags and attributes are included.
40 40
 		$svg = wp_kses(
41
-			TwentyTwenty_SVG_Icons::get_svg( $svg_name, $group, $color ),
41
+			TwentyTwenty_SVG_Icons::get_svg($svg_name, $group, $color),
42 42
 			array(
43 43
 				'svg'     => array(
44 44
 					'class'       => true,
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 			)
67 67
 		);
68 68
 
69
-		if ( ! $svg ) {
69
+		if ( ! $svg) {
70 70
 			return false;
71 71
 		}
72 72
 		return $svg;
Please login to merge, or discard this patch.
themes/twentytwenty/inc/template-tags.php 1 patch
Spacing   +127 added lines, -127 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
  * @param bool  $display Display or return the HTML.
32 32
  * @return string Compiled HTML based on our arguments.
33 33
  */
34
-function twentytwenty_site_logo( $args = array(), $display = true ) {
34
+function twentytwenty_site_logo($args = array(), $display = true) {
35 35
 	$logo       = get_custom_logo();
36
-	$site_title = get_bloginfo( 'name' );
36
+	$site_title = get_bloginfo('name');
37 37
 	$contents   = '';
38 38
 	$classname  = '';
39 39
 
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
 		'title_class' => 'site-title',
45 45
 		'home_wrap'   => '<h1 class="%1$s">%2$s</h1>',
46 46
 		'single_wrap' => '<div class="%1$s faux-heading">%2$s</div>',
47
-		'condition'   => ( is_front_page() || is_home() ) && ! is_page(),
47
+		'condition'   => (is_front_page() || is_home()) && ! is_page(),
48 48
 	);
49 49
 
50
-	$args = wp_parse_args( $args, $defaults );
50
+	$args = wp_parse_args($args, $defaults);
51 51
 
52 52
 	/**
53 53
 	 * Filters the arguments for `twentytwenty_site_logo()`.
@@ -57,19 +57,19 @@  discard block
 block discarded – undo
57 57
 	 * @param array $args     Parsed arguments.
58 58
 	 * @param array $defaults Function's default arguments.
59 59
 	 */
60
-	$args = apply_filters( 'twentytwenty_site_logo_args', $args, $defaults );
60
+	$args = apply_filters('twentytwenty_site_logo_args', $args, $defaults);
61 61
 
62
-	if ( has_custom_logo() ) {
63
-		$contents  = sprintf( $args['logo'], $logo, esc_html( $site_title ) );
62
+	if (has_custom_logo()) {
63
+		$contents  = sprintf($args['logo'], $logo, esc_html($site_title));
64 64
 		$classname = $args['logo_class'];
65 65
 	} else {
66
-		$contents  = sprintf( $args['title'], esc_url( get_home_url( null, '/' ) ), esc_html( $site_title ) );
66
+		$contents  = sprintf($args['title'], esc_url(get_home_url(null, '/')), esc_html($site_title));
67 67
 		$classname = $args['title_class'];
68 68
 	}
69 69
 
70 70
 	$wrap = $args['condition'] ? 'home_wrap' : 'single_wrap';
71 71
 
72
-	$html = sprintf( $args[ $wrap ], $classname, $contents );
72
+	$html = sprintf($args[$wrap], $classname, $contents);
73 73
 
74 74
 	/**
75 75
 	 * Filters the arguments for `twentytwenty_site_logo()`.
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
 	 * @param string $classname Class name based on current view, home or single.
82 82
 	 * @param string $contents  HTML for site title or logo.
83 83
 	 */
84
-	$html = apply_filters( 'twentytwenty_site_logo', $html, $args, $classname, $contents );
84
+	$html = apply_filters('twentytwenty_site_logo', $html, $args, $classname, $contents);
85 85
 
86
-	if ( ! $display ) {
86
+	if ( ! $display) {
87 87
 		return $html;
88 88
 	}
89 89
 
@@ -99,16 +99,16 @@  discard block
 block discarded – undo
99 99
  * @param bool $display Display or return the HTML.
100 100
  * @return string The HTML to display.
101 101
  */
102
-function twentytwenty_site_description( $display = true ) {
103
-	$description = get_bloginfo( 'description' );
102
+function twentytwenty_site_description($display = true) {
103
+	$description = get_bloginfo('description');
104 104
 
105
-	if ( ! $description ) {
105
+	if ( ! $description) {
106 106
 		return;
107 107
 	}
108 108
 
109 109
 	$wrapper = '<div class="site-description">%s</div><!-- .site-description -->';
110 110
 
111
-	$html = sprintf( $wrapper, esc_html( $description ) );
111
+	$html = sprintf($wrapper, esc_html($description));
112 112
 
113 113
 	/**
114 114
 	 * Filters the HTML for the site description.
@@ -119,9 +119,9 @@  discard block
 block discarded – undo
119 119
 	 * @param string $description Site description via `bloginfo()`.
120 120
 	 * @param string $wrapper     The format used in case you want to reuse it in a `sprintf()`.
121 121
 	 */
122
-	$html = apply_filters( 'twentytwenty_site_description', $html, $description, $wrapper );
122
+	$html = apply_filters('twentytwenty_site_description', $html, $description, $wrapper);
123 123
 
124
-	if ( ! $display ) {
124
+	if ( ! $display) {
125 125
 		return $html;
126 126
 	}
127 127
 
@@ -140,14 +140,14 @@  discard block
 block discarded – undo
140 140
  * @param object $comment Comment data.
141 141
  * @return bool
142 142
  */
143
-function twentytwenty_is_comment_by_post_author( $comment = null ) {
143
+function twentytwenty_is_comment_by_post_author($comment = null) {
144 144
 
145
-	if ( is_object( $comment ) && $comment->user_id > 0 ) {
145
+	if (is_object($comment) && $comment->user_id > 0) {
146 146
 
147
-		$user = get_userdata( $comment->user_id );
148
-		$post = get_post( $comment->comment_post_ID );
147
+		$user = get_userdata($comment->user_id);
148
+		$post = get_post($comment->comment_post_ID);
149 149
 
150
-		if ( ! empty( $user ) && ! empty( $post ) ) {
150
+		if ( ! empty($user) && ! empty($post)) {
151 151
 
152 152
 			return $comment->user_id === $post->post_author;
153 153
 
@@ -168,14 +168,14 @@  discard block
 block discarded – undo
168 168
  * @param string $link Link to the top of the page.
169 169
  * @return string Link to the top of the page.
170 170
  */
171
-function twentytwenty_filter_comment_reply_link( $link ) {
171
+function twentytwenty_filter_comment_reply_link($link) {
172 172
 
173
-	$link = str_replace( 'class=\'', 'class=\'do-not-scroll ', $link );
173
+	$link = str_replace('class=\'', 'class=\'do-not-scroll ', $link);
174 174
 	return $link;
175 175
 
176 176
 }
177 177
 
178
-add_filter( 'comment_reply_link', 'twentytwenty_filter_comment_reply_link' );
178
+add_filter('comment_reply_link', 'twentytwenty_filter_comment_reply_link');
179 179
 
180 180
 /**
181 181
  * Post Meta
@@ -191,9 +191,9 @@  discard block
 block discarded – undo
191 191
  * @param int    $post_id  The ID of the post for which the post meta should be output.
192 192
  * @param string $location Which post meta location to output – single or preview.
193 193
  */
194
-function twentytwenty_the_post_meta( $post_id = null, $location = 'single-top' ) {
194
+function twentytwenty_the_post_meta($post_id = null, $location = 'single-top') {
195 195
 
196
-	echo twentytwenty_get_post_meta( $post_id, $location ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in twentytwenty_get_post_meta().
196
+	echo twentytwenty_get_post_meta($post_id, $location); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in twentytwenty_get_post_meta().
197 197
 
198 198
 }
199 199
 
@@ -206,35 +206,35 @@  discard block
 block discarded – undo
206 206
  * @param int    $post_id Post ID.
207 207
  * @param string $text    Anchor text.
208 208
  */
209
-function twentytwenty_edit_post_link( $link, $post_id, $text ) {
210
-	if ( is_admin() ) {
209
+function twentytwenty_edit_post_link($link, $post_id, $text) {
210
+	if (is_admin()) {
211 211
 		return $link;
212 212
 	}
213 213
 
214
-	$edit_url = get_edit_post_link( $post_id );
214
+	$edit_url = get_edit_post_link($post_id);
215 215
 
216
-	if ( ! $edit_url ) {
216
+	if ( ! $edit_url) {
217 217
 		return;
218 218
 	}
219 219
 
220 220
 	$text = sprintf(
221 221
 		wp_kses(
222 222
 			/* translators: %s: Post title. Only visible to screen readers. */
223
-			__( 'Edit <span class="screen-reader-text">%s</span>', 'twentytwenty' ),
223
+			__('Edit <span class="screen-reader-text">%s</span>', 'twentytwenty'),
224 224
 			array(
225 225
 				'span' => array(
226 226
 					'class' => array(),
227 227
 				),
228 228
 			)
229 229
 		),
230
-		get_the_title( $post_id )
230
+		get_the_title($post_id)
231 231
 	);
232 232
 
233
-	return '<div class="post-meta-wrapper post-meta-edit-link-wrapper"><ul class="post-meta"><li class="post-edit meta-wrapper"><span class="meta-icon">' . twentytwenty_get_theme_svg( 'edit' ) . '</span><span class="meta-text"><a href="' . esc_url( $edit_url ) . '">' . $text . '</a></span></li></ul><!-- .post-meta --></div><!-- .post-meta-wrapper -->';
233
+	return '<div class="post-meta-wrapper post-meta-edit-link-wrapper"><ul class="post-meta"><li class="post-edit meta-wrapper"><span class="meta-icon">'.twentytwenty_get_theme_svg('edit').'</span><span class="meta-text"><a href="'.esc_url($edit_url).'">'.$text.'</a></span></li></ul><!-- .post-meta --></div><!-- .post-meta-wrapper -->';
234 234
 
235 235
 }
236 236
 
237
-add_filter( 'edit_post_link', 'twentytwenty_edit_post_link', 10, 3 );
237
+add_filter('edit_post_link', 'twentytwenty_edit_post_link', 10, 3);
238 238
 
239 239
 /**
240 240
  * Retrieves the post meta.
@@ -244,10 +244,10 @@  discard block
 block discarded – undo
244 244
  * @param int    $post_id  The ID of the post.
245 245
  * @param string $location The location where the meta is shown.
246 246
  */
247
-function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) {
247
+function twentytwenty_get_post_meta($post_id = null, $location = 'single-top') {
248 248
 
249 249
 	// Require post ID.
250
-	if ( ! $post_id ) {
250
+	if ( ! $post_id) {
251 251
 		return;
252 252
 	}
253 253
 
@@ -261,10 +261,10 @@  discard block
 block discarded – undo
261 261
 	 *
262 262
 	 * @param array Array of post types.
263 263
 	 */
264
-	$disallowed_post_types = apply_filters( 'twentytwenty_disallowed_post_types_for_meta_output', array( 'page' ) );
264
+	$disallowed_post_types = apply_filters('twentytwenty_disallowed_post_types_for_meta_output', array('page'));
265 265
 
266 266
 	// Check whether the post type is allowed to output post meta.
267
-	if ( in_array( get_post_type( $post_id ), $disallowed_post_types, true ) ) {
267
+	if (in_array(get_post_type($post_id), $disallowed_post_types, true)) {
268 268
 		return;
269 269
 	}
270 270
 
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 	$post_meta_classes         = '';
273 273
 
274 274
 	// Get the post meta settings for the location specified.
275
-	if ( 'single-top' === $location ) {
275
+	if ('single-top' === $location) {
276 276
 		/**
277 277
 		 * Filters post meta info visibility.
278 278
 		 *
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
 
300 300
 		$post_meta_wrapper_classes = ' post-meta-single post-meta-single-top';
301 301
 
302
-	} elseif ( 'single-bottom' === $location ) {
302
+	} elseif ('single-bottom' === $location) {
303 303
 
304 304
 		/**
305 305
 		 * Filters post tags visibility.
@@ -324,22 +324,22 @@  discard block
 block discarded – undo
324 324
 	}
325 325
 
326 326
 	// If the post meta setting has the value 'empty', it's explicitly empty and the default post meta shouldn't be output.
327
-	if ( $post_meta && ! in_array( 'empty', $post_meta, true ) ) {
327
+	if ($post_meta && ! in_array('empty', $post_meta, true)) {
328 328
 
329 329
 		// Make sure we don't output an empty container.
330 330
 		$has_meta = false;
331 331
 
332 332
 		global $post;
333
-		$the_post = get_post( $post_id );
334
-		setup_postdata( $the_post );
333
+		$the_post = get_post($post_id);
334
+		setup_postdata($the_post);
335 335
 
336 336
 		ob_start();
337 337
 
338 338
 		?>
339 339
 
340
-		<div class="post-meta-wrapper<?php echo esc_attr( $post_meta_wrapper_classes ); ?>">
340
+		<div class="post-meta-wrapper<?php echo esc_attr($post_meta_wrapper_classes); ?>">
341 341
 
342
-			<ul class="post-meta<?php echo esc_attr( $post_meta_classes ); ?>">
342
+			<ul class="post-meta<?php echo esc_attr($post_meta_classes); ?>">
343 343
 
344 344
 				<?php
345 345
 
@@ -356,24 +356,24 @@  discard block
 block discarded – undo
356 356
 				 * @param string $location  The location where the meta is shown.
357 357
 				 *                          Accepts 'single-top' or 'single-bottom'.
358 358
 				 */
359
-				do_action( 'twentytwenty_start_of_post_meta_list', $post_id, $post_meta, $location );
359
+				do_action('twentytwenty_start_of_post_meta_list', $post_id, $post_meta, $location);
360 360
 
361 361
 				// Author.
362
-				if ( post_type_supports( get_post_type( $post_id ), 'author' ) && in_array( 'author', $post_meta, true ) ) {
362
+				if (post_type_supports(get_post_type($post_id), 'author') && in_array('author', $post_meta, true)) {
363 363
 
364 364
 					$has_meta = true;
365 365
 					?>
366 366
 					<li class="post-author meta-wrapper">
367 367
 						<span class="meta-icon">
368
-							<span class="screen-reader-text"><?php _e( 'Post author', 'twentytwenty' ); ?></span>
369
-							<?php twentytwenty_the_theme_svg( 'user' ); ?>
368
+							<span class="screen-reader-text"><?php _e('Post author', 'twentytwenty'); ?></span>
369
+							<?php twentytwenty_the_theme_svg('user'); ?>
370 370
 						</span>
371 371
 						<span class="meta-text">
372 372
 							<?php
373 373
 							printf(
374 374
 								/* translators: %s: Author name. */
375
-								__( 'By %s', 'twentytwenty' ),
376
-								'<a href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author_meta( 'display_name' ) ) . '</a>'
375
+								__('By %s', 'twentytwenty'),
376
+								'<a href="'.esc_url(get_author_posts_url(get_the_author_meta('ID'))).'">'.esc_html(get_the_author_meta('display_name')).'</a>'
377 377
 							);
378 378
 							?>
379 379
 						</span>
@@ -383,17 +383,17 @@  discard block
 block discarded – undo
383 383
 				}
384 384
 
385 385
 				// Post date.
386
-				if ( in_array( 'post-date', $post_meta, true ) ) {
386
+				if (in_array('post-date', $post_meta, true)) {
387 387
 
388 388
 					$has_meta = true;
389 389
 					?>
390 390
 					<li class="post-date meta-wrapper">
391 391
 						<span class="meta-icon">
392
-							<span class="screen-reader-text"><?php _e( 'Post date', 'twentytwenty' ); ?></span>
393
-							<?php twentytwenty_the_theme_svg( 'calendar' ); ?>
392
+							<span class="screen-reader-text"><?php _e('Post date', 'twentytwenty'); ?></span>
393
+							<?php twentytwenty_the_theme_svg('calendar'); ?>
394 394
 						</span>
395 395
 						<span class="meta-text">
396
-							<a href="<?php the_permalink(); ?>"><?php the_time( get_option( 'date_format' ) ); ?></a>
396
+							<a href="<?php the_permalink(); ?>"><?php the_time(get_option('date_format')); ?></a>
397 397
 						</span>
398 398
 					</li>
399 399
 					<?php
@@ -401,17 +401,17 @@  discard block
 block discarded – undo
401 401
 				}
402 402
 
403 403
 				// Categories.
404
-				if ( in_array( 'categories', $post_meta, true ) && has_category() ) {
404
+				if (in_array('categories', $post_meta, true) && has_category()) {
405 405
 
406 406
 					$has_meta = true;
407 407
 					?>
408 408
 					<li class="post-categories meta-wrapper">
409 409
 						<span class="meta-icon">
410
-							<span class="screen-reader-text"><?php _e( 'Categories', 'twentytwenty' ); ?></span>
411
-							<?php twentytwenty_the_theme_svg( 'folder' ); ?>
410
+							<span class="screen-reader-text"><?php _e('Categories', 'twentytwenty'); ?></span>
411
+							<?php twentytwenty_the_theme_svg('folder'); ?>
412 412
 						</span>
413 413
 						<span class="meta-text">
414
-							<?php _ex( 'In', 'A string that is output before one or more categories', 'twentytwenty' ); ?> <?php the_category( ', ' ); ?>
414
+							<?php _ex('In', 'A string that is output before one or more categories', 'twentytwenty'); ?> <?php the_category(', '); ?>
415 415
 						</span>
416 416
 					</li>
417 417
 					<?php
@@ -419,17 +419,17 @@  discard block
 block discarded – undo
419 419
 				}
420 420
 
421 421
 				// Tags.
422
-				if ( in_array( 'tags', $post_meta, true ) && has_tag() ) {
422
+				if (in_array('tags', $post_meta, true) && has_tag()) {
423 423
 
424 424
 					$has_meta = true;
425 425
 					?>
426 426
 					<li class="post-tags meta-wrapper">
427 427
 						<span class="meta-icon">
428
-							<span class="screen-reader-text"><?php _e( 'Tags', 'twentytwenty' ); ?></span>
429
-							<?php twentytwenty_the_theme_svg( 'tag' ); ?>
428
+							<span class="screen-reader-text"><?php _e('Tags', 'twentytwenty'); ?></span>
429
+							<?php twentytwenty_the_theme_svg('tag'); ?>
430 430
 						</span>
431 431
 						<span class="meta-text">
432
-							<?php the_tags( '', ', ', '' ); ?>
432
+							<?php the_tags('', ', ', ''); ?>
433 433
 						</span>
434 434
 					</li>
435 435
 					<?php
@@ -437,13 +437,13 @@  discard block
 block discarded – undo
437 437
 				}
438 438
 
439 439
 				// Comments link.
440
-				if ( in_array( 'comments', $post_meta, true ) && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
440
+				if (in_array('comments', $post_meta, true) && ! post_password_required() && (comments_open() || get_comments_number())) {
441 441
 
442 442
 					$has_meta = true;
443 443
 					?>
444 444
 					<li class="post-comment-link meta-wrapper">
445 445
 						<span class="meta-icon">
446
-							<?php twentytwenty_the_theme_svg( 'comment' ); ?>
446
+							<?php twentytwenty_the_theme_svg('comment'); ?>
447 447
 						</span>
448 448
 						<span class="meta-text">
449 449
 							<?php comments_popup_link(); ?>
@@ -454,16 +454,16 @@  discard block
 block discarded – undo
454 454
 				}
455 455
 
456 456
 				// Sticky.
457
-				if ( in_array( 'sticky', $post_meta, true ) && is_sticky() ) {
457
+				if (in_array('sticky', $post_meta, true) && is_sticky()) {
458 458
 
459 459
 					$has_meta = true;
460 460
 					?>
461 461
 					<li class="post-sticky meta-wrapper">
462 462
 						<span class="meta-icon">
463
-							<?php twentytwenty_the_theme_svg( 'bookmark' ); ?>
463
+							<?php twentytwenty_the_theme_svg('bookmark'); ?>
464 464
 						</span>
465 465
 						<span class="meta-text">
466
-							<?php _e( 'Sticky post', 'twentytwenty' ); ?>
466
+							<?php _e('Sticky post', 'twentytwenty'); ?>
467 467
 						</span>
468 468
 					</li>
469 469
 					<?php
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
 				 * @param string $location  The location where the meta is shown.
484 484
 				 *                          Accepts 'single-top' or 'single-bottom'.
485 485
 				 */
486
-				do_action( 'twentytwenty_end_of_post_meta_list', $post_id, $post_meta, $location );
486
+				do_action('twentytwenty_end_of_post_meta_list', $post_id, $post_meta, $location);
487 487
 
488 488
 				?>
489 489
 
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
 		$meta_output = ob_get_clean();
499 499
 
500 500
 		// If there is meta to output, return it.
501
-		if ( $has_meta && $meta_output ) {
501
+		if ($has_meta && $meta_output) {
502 502
 
503 503
 			return $meta_output;
504 504
 
@@ -526,22 +526,22 @@  discard block
 block discarded – undo
526 526
  * @param int      $current_page ID of the current page.
527 527
  * @return array CSS class names.
528 528
  */
529
-function twentytwenty_filter_wp_list_pages_item_classes( $css_class, $page, $depth, $args, $current_page ) {
529
+function twentytwenty_filter_wp_list_pages_item_classes($css_class, $page, $depth, $args, $current_page) {
530 530
 
531 531
 	// Only apply to wp_list_pages() calls with match_menu_classes set to true.
532
-	$match_menu_classes = isset( $args['match_menu_classes'] );
532
+	$match_menu_classes = isset($args['match_menu_classes']);
533 533
 
534
-	if ( ! $match_menu_classes ) {
534
+	if ( ! $match_menu_classes) {
535 535
 		return $css_class;
536 536
 	}
537 537
 
538 538
 	// Add current menu item class.
539
-	if ( in_array( 'current_page_item', $css_class, true ) ) {
539
+	if (in_array('current_page_item', $css_class, true)) {
540 540
 		$css_class[] = 'current-menu-item';
541 541
 	}
542 542
 
543 543
 	// Add menu item has children class.
544
-	if ( in_array( 'page_item_has_children', $css_class, true ) ) {
544
+	if (in_array('page_item_has_children', $css_class, true)) {
545 545
 		$css_class[] = 'menu-item-has-children';
546 546
 	}
547 547
 
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
 
550 550
 }
551 551
 
552
-add_filter( 'page_css_class', 'twentytwenty_filter_wp_list_pages_item_classes', 10, 5 );
552
+add_filter('page_css_class', 'twentytwenty_filter_wp_list_pages_item_classes', 10, 5);
553 553
 
554 554
 /**
555 555
  * Adds a Sub Nav Toggle to the Expanded Menu and Mobile Menu.
@@ -561,23 +561,23 @@  discard block
 block discarded – undo
561 561
  * @param int      $depth Depth of menu item. Used for padding.
562 562
  * @return stdClass An object of wp_nav_menu() arguments.
563 563
  */
564
-function twentytwenty_add_sub_toggles_to_main_menu( $args, $item, $depth ) {
564
+function twentytwenty_add_sub_toggles_to_main_menu($args, $item, $depth) {
565 565
 
566 566
 	// Add sub menu toggles to the Expanded Menu with toggles.
567
-	if ( isset( $args->show_toggles ) && $args->show_toggles ) {
567
+	if (isset($args->show_toggles) && $args->show_toggles) {
568 568
 
569 569
 		// Wrap the menu item link contents in a div, used for positioning.
570 570
 		$args->before = '<div class="ancestor-wrapper">';
571 571
 		$args->after  = '';
572 572
 
573 573
 		// Add a toggle to items with children.
574
-		if ( in_array( 'menu-item-has-children', $item->classes, true ) ) {
574
+		if (in_array('menu-item-has-children', $item->classes, true)) {
575 575
 
576
-			$toggle_target_string = '.menu-modal .menu-item-' . $item->ID . ' > .sub-menu';
576
+			$toggle_target_string = '.menu-modal .menu-item-'.$item->ID.' > .sub-menu';
577 577
 			$toggle_duration      = twentytwenty_toggle_duration();
578 578
 
579 579
 			// Add the sub menu toggle.
580
-			$args->after .= '<button class="toggle sub-menu-toggle fill-children-current-color" data-toggle-target="' . $toggle_target_string . '" data-toggle-type="slidetoggle" data-toggle-duration="' . absint( $toggle_duration ) . '" aria-expanded="false"><span class="screen-reader-text">' . __( 'Show sub menu', 'twentytwenty' ) . '</span>' . twentytwenty_get_theme_svg( 'chevron-down' ) . '</button>';
580
+			$args->after .= '<button class="toggle sub-menu-toggle fill-children-current-color" data-toggle-target="'.$toggle_target_string.'" data-toggle-type="slidetoggle" data-toggle-duration="'.absint($toggle_duration).'" aria-expanded="false"><span class="screen-reader-text">'.__('Show sub menu', 'twentytwenty').'</span>'.twentytwenty_get_theme_svg('chevron-down').'</button>';
581 581
 
582 582
 		}
583 583
 
@@ -585,8 +585,8 @@  discard block
 block discarded – undo
585 585
 		$args->after .= '</div><!-- .ancestor-wrapper -->';
586 586
 
587 587
 		// Add sub menu icons to the primary menu without toggles.
588
-	} elseif ( 'primary' === $args->theme_location ) {
589
-		if ( in_array( 'menu-item-has-children', $item->classes, true ) ) {
588
+	} elseif ('primary' === $args->theme_location) {
589
+		if (in_array('menu-item-has-children', $item->classes, true)) {
590 590
 			$args->after = '<span class="icon"></span>';
591 591
 		} else {
592 592
 			$args->after = '';
@@ -597,7 +597,7 @@  discard block
 block discarded – undo
597 597
 
598 598
 }
599 599
 
600
-add_filter( 'nav_menu_item_args', 'twentytwenty_add_sub_toggles_to_main_menu', 10, 3 );
600
+add_filter('nav_menu_item_args', 'twentytwenty_add_sub_toggles_to_main_menu', 10, 3);
601 601
 
602 602
 /**
603 603
  * Displays SVG icons in social links menu.
@@ -610,20 +610,20 @@  discard block
 block discarded – undo
610 610
  * @param stdClass $args        An object of wp_nav_menu() arguments.
611 611
  * @return string The menu item output with social icon.
612 612
  */
613
-function twentytwenty_nav_menu_social_icons( $item_output, $item, $depth, $args ) {
613
+function twentytwenty_nav_menu_social_icons($item_output, $item, $depth, $args) {
614 614
 	// Change SVG icon inside social links menu if there is supported URL.
615
-	if ( 'social' === $args->theme_location ) {
616
-		$svg = TwentyTwenty_SVG_Icons::get_social_link_svg( $item->url );
617
-		if ( empty( $svg ) ) {
618
-			$svg = twentytwenty_get_theme_svg( 'link' );
615
+	if ('social' === $args->theme_location) {
616
+		$svg = TwentyTwenty_SVG_Icons::get_social_link_svg($item->url);
617
+		if (empty($svg)) {
618
+			$svg = twentytwenty_get_theme_svg('link');
619 619
 		}
620
-		$item_output = str_replace( $args->link_after, '</span>' . $svg, $item_output );
620
+		$item_output = str_replace($args->link_after, '</span>'.$svg, $item_output);
621 621
 	}
622 622
 
623 623
 	return $item_output;
624 624
 }
625 625
 
626
-add_filter( 'walker_nav_menu_start_el', 'twentytwenty_nav_menu_social_icons', 10, 4 );
626
+add_filter('walker_nav_menu_start_el', 'twentytwenty_nav_menu_social_icons', 10, 4);
627 627
 
628 628
 /**
629 629
  * Classes
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
 
645 645
 }
646 646
 
647
-add_action( 'wp_head', 'twentytwenty_no_js_class' );
647
+add_action('wp_head', 'twentytwenty_no_js_class');
648 648
 
649 649
 /**
650 650
  * Adds conditional body classes.
@@ -654,88 +654,88 @@  discard block
 block discarded – undo
654 654
  * @param array $classes Classes added to the body tag.
655 655
  * @return array Classes added to the body tag.
656 656
  */
657
-function twentytwenty_body_classes( $classes ) {
657
+function twentytwenty_body_classes($classes) {
658 658
 
659 659
 	global $post;
660
-	$post_type = isset( $post ) ? $post->post_type : false;
660
+	$post_type = isset($post) ? $post->post_type : false;
661 661
 
662 662
 	// Check whether we're singular.
663
-	if ( is_singular() ) {
663
+	if (is_singular()) {
664 664
 		$classes[] = 'singular';
665 665
 	}
666 666
 
667 667
 	// Check whether the current page should have an overlay header.
668
-	if ( is_page_template( array( 'templates/template-cover.php' ) ) ) {
668
+	if (is_page_template(array('templates/template-cover.php'))) {
669 669
 		$classes[] = 'overlay-header';
670 670
 	}
671 671
 
672 672
 	// Check whether the current page has full-width content.
673
-	if ( is_page_template( array( 'templates/template-full-width.php' ) ) ) {
673
+	if (is_page_template(array('templates/template-full-width.php'))) {
674 674
 		$classes[] = 'has-full-width-content';
675 675
 	}
676 676
 
677 677
 	// Check for enabled search.
678
-	if ( true === get_theme_mod( 'enable_header_search', true ) ) {
678
+	if (true === get_theme_mod('enable_header_search', true)) {
679 679
 		$classes[] = 'enable-search-modal';
680 680
 	}
681 681
 
682 682
 	// Check for post thumbnail.
683
-	if ( is_singular() && has_post_thumbnail() ) {
683
+	if (is_singular() && has_post_thumbnail()) {
684 684
 		$classes[] = 'has-post-thumbnail';
685
-	} elseif ( is_singular() ) {
685
+	} elseif (is_singular()) {
686 686
 		$classes[] = 'missing-post-thumbnail';
687 687
 	}
688 688
 
689 689
 	// Check whether we're in the customizer preview.
690
-	if ( is_customize_preview() ) {
690
+	if (is_customize_preview()) {
691 691
 		$classes[] = 'customizer-preview';
692 692
 	}
693 693
 
694 694
 	// Check if posts have single pagination.
695
-	if ( is_single() && ( get_next_post() || get_previous_post() ) ) {
695
+	if (is_single() && (get_next_post() || get_previous_post())) {
696 696
 		$classes[] = 'has-single-pagination';
697 697
 	} else {
698 698
 		$classes[] = 'has-no-pagination';
699 699
 	}
700 700
 
701 701
 	// Check if we're showing comments.
702
-	if ( $post && ( ( 'post' === $post_type || comments_open() || get_comments_number() ) && ! post_password_required() ) ) {
702
+	if ($post && (('post' === $post_type || comments_open() || get_comments_number()) && ! post_password_required())) {
703 703
 		$classes[] = 'showing-comments';
704 704
 	} else {
705 705
 		$classes[] = 'not-showing-comments';
706 706
 	}
707 707
 
708 708
 	// Check if avatars are visible.
709
-	$classes[] = get_option( 'show_avatars' ) ? 'show-avatars' : 'hide-avatars';
709
+	$classes[] = get_option('show_avatars') ? 'show-avatars' : 'hide-avatars';
710 710
 
711 711
 	// Slim page template class names (class = name - file suffix).
712
-	if ( is_page_template() ) {
713
-		$classes[] = basename( get_page_template_slug(), '.php' );
712
+	if (is_page_template()) {
713
+		$classes[] = basename(get_page_template_slug(), '.php');
714 714
 	}
715 715
 
716 716
 	// Check for the elements output in the top part of the footer.
717
-	$has_footer_menu = has_nav_menu( 'footer' );
718
-	$has_social_menu = has_nav_menu( 'social' );
719
-	$has_sidebar_1   = is_active_sidebar( 'sidebar-1' );
720
-	$has_sidebar_2   = is_active_sidebar( 'sidebar-2' );
717
+	$has_footer_menu = has_nav_menu('footer');
718
+	$has_social_menu = has_nav_menu('social');
719
+	$has_sidebar_1   = is_active_sidebar('sidebar-1');
720
+	$has_sidebar_2   = is_active_sidebar('sidebar-2');
721 721
 
722 722
 	// Add a class indicating whether those elements are output.
723
-	if ( $has_footer_menu || $has_social_menu || $has_sidebar_1 || $has_sidebar_2 ) {
723
+	if ($has_footer_menu || $has_social_menu || $has_sidebar_1 || $has_sidebar_2) {
724 724
 		$classes[] = 'footer-top-visible';
725 725
 	} else {
726 726
 		$classes[] = 'footer-top-hidden';
727 727
 	}
728 728
 
729 729
 	// Get header/footer background color.
730
-	$header_footer_background = get_theme_mod( 'header_footer_background_color', '#ffffff' );
731
-	$header_footer_background = strtolower( '#' . ltrim( $header_footer_background, '#' ) );
730
+	$header_footer_background = get_theme_mod('header_footer_background_color', '#ffffff');
731
+	$header_footer_background = strtolower('#'.ltrim($header_footer_background, '#'));
732 732
 
733 733
 	// Get content background color.
734
-	$background_color = get_theme_mod( 'background_color', 'f5efe0' );
735
-	$background_color = strtolower( '#' . ltrim( $background_color, '#' ) );
734
+	$background_color = get_theme_mod('background_color', 'f5efe0');
735
+	$background_color = strtolower('#'.ltrim($background_color, '#'));
736 736
 
737 737
 	// Add extra class if main background and header/footer background are the same color.
738
-	if ( $background_color === $header_footer_background ) {
738
+	if ($background_color === $header_footer_background) {
739 739
 		$classes[] = 'reduced-spacing';
740 740
 	}
741 741
 
@@ -743,7 +743,7 @@  discard block
 block discarded – undo
743 743
 
744 744
 }
745 745
 
746
-add_filter( 'body_class', 'twentytwenty_body_classes' );
746
+add_filter('body_class', 'twentytwenty_body_classes');
747 747
 
748 748
 /**
749 749
  * Archives
@@ -757,7 +757,7 @@  discard block
 block discarded – undo
757 757
  * @param string $title Current archive title.
758 758
  * @return string Current archive title.
759 759
  */
760
-function twentytwenty_get_the_archive_title( $title ) {
760
+function twentytwenty_get_the_archive_title($title) {
761 761
 
762 762
 	/**
763 763
 	 * Filters the regular expression used to style the word before the first colon.
@@ -774,17 +774,17 @@  discard block
 block discarded – undo
774 774
 		)
775 775
 	);
776 776
 
777
-	if ( empty( $regex ) ) {
777
+	if (empty($regex)) {
778 778
 
779 779
 		return $title;
780 780
 
781 781
 	}
782 782
 
783
-	return preg_replace( $regex['pattern'], $regex['replacement'], $title );
783
+	return preg_replace($regex['pattern'], $regex['replacement'], $title);
784 784
 
785 785
 }
786 786
 
787
-add_filter( 'get_the_archive_title', 'twentytwenty_get_the_archive_title' );
787
+add_filter('get_the_archive_title', 'twentytwenty_get_the_archive_title');
788 788
 
789 789
 /**
790 790
  * Miscellaneous
@@ -805,7 +805,7 @@  discard block
 block discarded – undo
805 805
 	 *
806 806
 	 * @param int $duration Duration in milliseconds.
807 807
 	 */
808
-	$duration = apply_filters( 'twentytwenty_toggle_duration', 250 );
808
+	$duration = apply_filters('twentytwenty_toggle_duration', 250);
809 809
 
810 810
 	return $duration;
811 811
 }
@@ -825,10 +825,10 @@  discard block
 block discarded – undo
825 825
  * @param string $prefix Prefix for the returned ID.
826 826
  * @return string Unique ID.
827 827
  */
828
-function twentytwenty_unique_id( $prefix = '' ) {
828
+function twentytwenty_unique_id($prefix = '') {
829 829
 	static $id_counter = 0;
830
-	if ( function_exists( 'wp_unique_id' ) ) {
831
-		return wp_unique_id( $prefix );
830
+	if (function_exists('wp_unique_id')) {
831
+		return wp_unique_id($prefix);
832 832
 	}
833
-	return $prefix . (string) ++$id_counter;
833
+	return $prefix.(string) ++$id_counter;
834 834
 }
Please login to merge, or discard this patch.
themes/twentytwenty/inc/block-patterns.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -13,25 +13,25 @@  discard block
 block discarded – undo
13 13
 /**
14 14
  * Register Block Pattern Category.
15 15
  */
16
-if ( function_exists( 'register_block_pattern_category' ) ) {
16
+if (function_exists('register_block_pattern_category')) {
17 17
 
18 18
 	register_block_pattern_category(
19 19
 		'twentytwenty',
20
-		array( 'label' => esc_html__( 'Twenty Twenty', 'twentytwenty' ) )
20
+		array('label' => esc_html__('Twenty Twenty', 'twentytwenty'))
21 21
 	);
22 22
 }
23 23
 
24 24
 /**
25 25
  * Register Block Patterns.
26 26
  */
27
-if ( function_exists( 'register_block_pattern' ) ) {
27
+if (function_exists('register_block_pattern')) {
28 28
 
29 29
 	// Call to Action.
30 30
 	register_block_pattern(
31 31
 		'twentytwenty/call-to-action',
32 32
 		array(
33
-			'title'         => esc_html__( 'Call to Action', 'twentytwenty' ),
34
-			'categories'    => array( 'twentytwenty' ),
33
+			'title'         => esc_html__('Call to Action', 'twentytwenty'),
34
+			'categories'    => array('twentytwenty'),
35 35
 			'viewportWidth' => 1400,
36 36
 			'content'       => implode(
37 37
 				'',
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
 					'<!-- wp:group {"align":"wide","style":{"color":{"background":"#ffffff"}}} -->',
40 40
 					'<div class="wp-block-group alignwide has-background" style="background-color:#ffffff"><div class="wp-block-group__inner-container"><!-- wp:group -->',
41 41
 					'<div class="wp-block-group"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center"} -->',
42
-					'<h2 class="has-text-align-center">' . esc_html__( 'Support the Museum and Get Exclusive Offers', 'twentytwenty' ) . '</h2>',
42
+					'<h2 class="has-text-align-center">'.esc_html__('Support the Museum and Get Exclusive Offers', 'twentytwenty').'</h2>',
43 43
 					'<!-- /wp:heading -->',
44 44
 					'<!-- wp:paragraph {"align":"center"} -->',
45
-					'<p class="has-text-align-center">' . esc_html__( 'Members get access to exclusive exhibits and sales. Our memberships cost $99.99 and are billed annually.', 'twentytwenty' ) . '</p>',
45
+					'<p class="has-text-align-center">'.esc_html__('Members get access to exclusive exhibits and sales. Our memberships cost $99.99 and are billed annually.', 'twentytwenty').'</p>',
46 46
 					'<!-- /wp:paragraph -->',
47 47
 					'<!-- wp:button {"align":"center","className":"is-style-outline"} -->',
48
-					'<div class="wp-block-button aligncenter is-style-outline"><a class="wp-block-button__link" href="#">' . esc_html__( 'Become a Member', 'twentytwenty' ) . '</a></div>',
48
+					'<div class="wp-block-button aligncenter is-style-outline"><a class="wp-block-button__link" href="#">'.esc_html__('Become a Member', 'twentytwenty').'</a></div>',
49 49
 					'<!-- /wp:button --></div></div>',
50 50
 					'<!-- /wp:group --></div></div>',
51 51
 					'<!-- /wp:group -->',
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
 	register_block_pattern(
59 59
 		'twentytwenty/double-call-to-action',
60 60
 		array(
61
-			'title'         => esc_html__( 'Double Call to Action', 'twentytwenty' ),
62
-			'categories'    => array( 'twentytwenty' ),
61
+			'title'         => esc_html__('Double Call to Action', 'twentytwenty'),
62
+			'categories'    => array('twentytwenty'),
63 63
 			'viewportWidth' => 1400,
64 64
 			'content'       => implode(
65 65
 				'',
@@ -68,14 +68,14 @@  discard block
 block discarded – undo
68 68
 					'<div class="wp-block-columns alignwide"><!-- wp:column -->',
69 69
 					'<div class="wp-block-column"><!-- wp:group {"style":{"color":{"background":"#ffffff"}}} -->',
70 70
 					'<div class="wp-block-group has-background" style="background-color:#ffffff"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center"} -->',
71
-					'<h2 class="has-text-align-center">' . esc_html__( 'The Museum', 'twentytwenty' ) . '</h2>',
71
+					'<h2 class="has-text-align-center">'.esc_html__('The Museum', 'twentytwenty').'</h2>',
72 72
 					'<!-- /wp:heading -->',
73 73
 					'<!-- wp:paragraph {"align":"center"} -->',
74
-					'<p class="has-text-align-center">' . esc_html__( 'Award-winning exhibitions featuring internationally-renowned artists.', 'twentytwenty' ) . '</p>',
74
+					'<p class="has-text-align-center">'.esc_html__('Award-winning exhibitions featuring internationally-renowned artists.', 'twentytwenty').'</p>',
75 75
 					'<!-- /wp:paragraph -->',
76 76
 					'<!-- wp:buttons {"align":"center"} -->',
77 77
 					'<div class="wp-block-buttons aligncenter"><!-- wp:button {"className":"is-style-outline"} -->',
78
-					'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link">' . esc_html__( 'Read More', 'twentytwenty' ) . '</a></div>',
78
+					'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link">'.esc_html__('Read More', 'twentytwenty').'</a></div>',
79 79
 					'<!-- /wp:button --></div>',
80 80
 					'<!-- /wp:buttons --></div></div>',
81 81
 					'<!-- /wp:group --></div>',
@@ -83,14 +83,14 @@  discard block
 block discarded – undo
83 83
 					'<!-- wp:column -->',
84 84
 					'<div class="wp-block-column"><!-- wp:group {"style":{"color":{"background":"#ffffff"}}} -->',
85 85
 					'<div class="wp-block-group has-background" style="background-color:#ffffff"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center"} -->',
86
-					'<h2 class="has-text-align-center">' . esc_html__( 'The Store', 'twentytwenty' ) . '</h2>',
86
+					'<h2 class="has-text-align-center">'.esc_html__('The Store', 'twentytwenty').'</h2>',
87 87
 					'<!-- /wp:heading -->',
88 88
 					'<!-- wp:paragraph {"align":"center"} -->',
89
-					'<p class="has-text-align-center">' . esc_html__( 'An awe-inspiring collection of books, prints, and gifts from our exhibitions.', 'twentytwenty' ) . '</p>',
89
+					'<p class="has-text-align-center">'.esc_html__('An awe-inspiring collection of books, prints, and gifts from our exhibitions.', 'twentytwenty').'</p>',
90 90
 					'<!-- /wp:paragraph -->',
91 91
 					'<!-- wp:buttons {"align":"center"} -->',
92 92
 					'<div class="wp-block-buttons aligncenter"><!-- wp:button {"className":"is-style-outline"} -->',
93
-					'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link">' . esc_html__( 'Shop Now', 'twentytwenty' ) . '</a></div>',
93
+					'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link">'.esc_html__('Shop Now', 'twentytwenty').'</a></div>',
94 94
 					'<!-- /wp:button --></div>',
95 95
 					'<!-- /wp:buttons --></div></div>',
96 96
 					'<!-- /wp:group --></div>',
@@ -105,8 +105,8 @@  discard block
 block discarded – undo
105 105
 	register_block_pattern(
106 106
 		'twentytwenty/event-details',
107 107
 		array(
108
-			'title'         => esc_html__( 'Event Details', 'twentytwenty' ),
109
-			'categories'    => array( 'twentytwenty' ),
108
+			'title'         => esc_html__('Event Details', 'twentytwenty'),
109
+			'categories'    => array('twentytwenty'),
110 110
 			'viewportWidth' => 1400,
111 111
 			'content'       => implode(
112 112
 				'',
@@ -115,17 +115,17 @@  discard block
 block discarded – undo
115 115
 					'<div class="wp-block-group alignwide has-primary-background-color has-background"><div class="wp-block-group__inner-container"><!-- wp:columns -->',
116 116
 					'<div class="wp-block-columns"><!-- wp:column -->',
117 117
 					'<div class="wp-block-column"><!-- wp:paragraph {"align":"center","textColor":"background","fontSize":"large"} -->',
118
-					'<p class="has-text-align-center has-background-color has-text-color has-large-font-size">' . wp_kses_post( __( '<em>Dates</em><br>Aug 1 — Dec 1', 'twentytwenty' ) ) . '</p>',
118
+					'<p class="has-text-align-center has-background-color has-text-color has-large-font-size">'.wp_kses_post(__('<em>Dates</em><br>Aug 1 — Dec 1', 'twentytwenty')).'</p>',
119 119
 					'<!-- /wp:paragraph --></div>',
120 120
 					'<!-- /wp:column -->',
121 121
 					'<!-- wp:column -->',
122 122
 					'<div class="wp-block-column"><!-- wp:paragraph {"align":"center","textColor":"background","fontSize":"large"} -->',
123
-					'<p class="has-text-align-center has-background-color has-text-color has-large-font-size">' . wp_kses_post( __( '<em>Location</em><br>Exhibit Hall B', 'twentytwenty' ) ) . '</p>',
123
+					'<p class="has-text-align-center has-background-color has-text-color has-large-font-size">'.wp_kses_post(__('<em>Location</em><br>Exhibit Hall B', 'twentytwenty')).'</p>',
124 124
 					'<!-- /wp:paragraph --></div>',
125 125
 					'<!-- /wp:column -->',
126 126
 					'<!-- wp:column -->',
127 127
 					'<div class="wp-block-column"><!-- wp:paragraph {"align":"center","textColor":"background","fontSize":"large"} -->',
128
-					'<p class="has-text-align-center has-background-color has-text-color has-large-font-size">' . wp_kses_post( __( '<em>Price</em><br>Included', 'twentytwenty' ) ) . '</p>',
128
+					'<p class="has-text-align-center has-background-color has-text-color has-large-font-size">'.wp_kses_post(__('<em>Price</em><br>Included', 'twentytwenty')).'</p>',
129 129
 					'<!-- /wp:paragraph --></div>',
130 130
 					'<!-- /wp:column --></div>',
131 131
 					'<!-- /wp:columns --></div></div>',
@@ -139,8 +139,8 @@  discard block
 block discarded – undo
139 139
 	register_block_pattern(
140 140
 		'twentytwenty/featured-content',
141 141
 		array(
142
-			'title'         => esc_html__( 'Featured Content', 'twentytwenty' ),
143
-			'categories'    => array( 'twentytwenty' ),
142
+			'title'         => esc_html__('Featured Content', 'twentytwenty'),
143
+			'categories'    => array('twentytwenty'),
144 144
 			'viewportWidth' => 1400,
145 145
 			'content'       => implode(
146 146
 				'',
@@ -148,30 +148,30 @@  discard block
 block discarded – undo
148 148
 					'<!-- wp:columns {"align":"wide"} -->',
149 149
 					'<div class="wp-block-columns alignwide"><!-- wp:column -->',
150 150
 					'<div class="wp-block-column"><!-- wp:image {"sizeSlug":"full"} -->',
151
-					'<figure class="wp-block-image size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/2020-three-quarters-1.png" alt="' . esc_attr__( 'Abstract Rectangles', 'twentytwenty' ) . '"/></figure>',
151
+					'<figure class="wp-block-image size-full"><img src="'.esc_url(get_template_directory_uri()).'/assets/images/2020-three-quarters-1.png" alt="'.esc_attr__('Abstract Rectangles', 'twentytwenty').'"/></figure>',
152 152
 					'<!-- /wp:image -->',
153 153
 					'<!-- wp:heading -->',
154
-					'<h2>' . esc_html__( 'Works and Days', 'twentytwenty' ) . '</h2>',
154
+					'<h2>'.esc_html__('Works and Days', 'twentytwenty').'</h2>',
155 155
 					'<!-- /wp:heading -->',
156 156
 					'<!-- wp:paragraph {"fontSize":"larger"} -->',
157
-					'<p class="has-larger-font-size">' . esc_html__( 'August 1 — December 1', 'twentytwenty' ) . '</p>',
157
+					'<p class="has-larger-font-size">'.esc_html__('August 1 — December 1', 'twentytwenty').'</p>',
158 158
 					'<!-- /wp:paragraph -->',
159 159
 					'<!-- wp:button {"align":"left","className":"is-style-outline"} -->',
160
-					'<div class="wp-block-button alignleft is-style-outline"><a class="wp-block-button__link" href="#">' . esc_html__( 'Read More', 'twentytwenty' ) . '</a></div>',
160
+					'<div class="wp-block-button alignleft is-style-outline"><a class="wp-block-button__link" href="#">'.esc_html__('Read More', 'twentytwenty').'</a></div>',
161 161
 					'<!-- /wp:button --></div>',
162 162
 					'<!-- /wp:column -->',
163 163
 					'<!-- wp:column -->',
164 164
 					'<div class="wp-block-column"><!-- wp:image {sizeSlug":"full"} -->',
165
-					'<figure class="wp-block-image size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/2020-three-quarters-2.png" alt="' . esc_attr__( 'Abstract Rectangles', 'twentytwenty' ) . '"/></figure>',
165
+					'<figure class="wp-block-image size-full"><img src="'.esc_url(get_template_directory_uri()).'/assets/images/2020-three-quarters-2.png" alt="'.esc_attr__('Abstract Rectangles', 'twentytwenty').'"/></figure>',
166 166
 					'<!-- /wp:image -->',
167 167
 					'<!-- wp:heading -->',
168
-					'<h2>' . esc_html__( 'The Life I Deserve', 'twentytwenty' ) . '</h2>',
168
+					'<h2>'.esc_html__('The Life I Deserve', 'twentytwenty').'</h2>',
169 169
 					'<!-- /wp:heading -->',
170 170
 					'<!-- wp:paragraph {"fontSize":"larger"} -->',
171
-					'<p class="has-larger-font-size">' . esc_html__( 'August 1 — December 1', 'twentytwenty' ) . '</p>',
171
+					'<p class="has-larger-font-size">'.esc_html__('August 1 — December 1', 'twentytwenty').'</p>',
172 172
 					'<!-- /wp:paragraph -->',
173 173
 					'<!-- wp:button {"align":"left","className":"is-style-outline"} -->',
174
-					'<div class="wp-block-button alignleft is-style-outline"><a class="wp-block-button__link" href="#">' . esc_html__( 'Read More', 'twentytwenty' ) . '</a></div>',
174
+					'<div class="wp-block-button alignleft is-style-outline"><a class="wp-block-button__link" href="#">'.esc_html__('Read More', 'twentytwenty').'</a></div>',
175 175
 					'<!-- /wp:button --></div>',
176 176
 					'<!-- /wp:column --></div>',
177 177
 					'<!-- /wp:columns -->',
@@ -184,17 +184,17 @@  discard block
 block discarded – undo
184 184
 	register_block_pattern(
185 185
 		'twentytwenty/introduction',
186 186
 		array(
187
-			'title'         => esc_html__( 'Introduction', 'twentytwenty' ),
188
-			'categories'    => array( 'twentytwenty' ),
187
+			'title'         => esc_html__('Introduction', 'twentytwenty'),
188
+			'categories'    => array('twentytwenty'),
189 189
 			'viewportWidth' => 1400,
190 190
 			'content'       => implode(
191 191
 				'',
192 192
 				array(
193 193
 					'<!-- wp:heading {"align":"center"} -->',
194
-					'<h2 class="has-text-align-center">' . esc_html__( 'The Premier Destination for Modern Art in Sweden', 'twentytwenty' ) . '</h2>',
194
+					'<h2 class="has-text-align-center">'.esc_html__('The Premier Destination for Modern Art in Sweden', 'twentytwenty').'</h2>',
195 195
 					'<!-- /wp:heading -->',
196 196
 					'<!-- wp:paragraph {"dropCap":true} -->',
197
-					'<p class="has-drop-cap">' . esc_html__( 'With seven floors of striking architecture, UMoMA shows exhibitions of international contemporary art, sometimes along with art historical retrospectives. Existential, political, and philosophical issues are intrinsic to our program. As visitor, you are invited to guided tours artist talks, lectures, film screenings, and other events with free admission.', 'twentytwenty' ) . '</p>',
197
+					'<p class="has-drop-cap">'.esc_html__('With seven floors of striking architecture, UMoMA shows exhibitions of international contemporary art, sometimes along with art historical retrospectives. Existential, political, and philosophical issues are intrinsic to our program. As visitor, you are invited to guided tours artist talks, lectures, film screenings, and other events with free admission.', 'twentytwenty').'</p>',
198 198
 					'<!-- /wp:paragraph -->',
199 199
 				)
200 200
 			),
Please login to merge, or discard this patch.
themes/twentytwenty/inc/starter-content.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 		// Create the custom image attachments used as post thumbnails for pages.
37 37
 		'attachments' => array(
38 38
 			'image-opening' => array(
39
-				'post_title' => _x( 'The New UMoMA Opens its Doors', 'Theme starter content', 'twentytwenty' ),
39
+				'post_title' => _x('The New UMoMA Opens its Doors', 'Theme starter content', 'twentytwenty'),
40 40
 				'file'       => 'assets/images/2020-landscape-1.png', // URL relative to the template directory.
41 41
 			),
42 42
 		),
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 		'posts'       => array(
46 46
 			'front' => array(
47 47
 				'post_type'    => 'page',
48
-				'post_title'   => __( 'The New UMoMA Opens its Doors', 'twentytwenty' ),
48
+				'post_title'   => __('The New UMoMA Opens its Doors', 'twentytwenty'),
49 49
 				// Use the above featured image with the predefined about page.
50 50
 				'thumbnail'    => '{{image-opening}}',
51 51
 				'post_content' => implode(
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 					array(
54 54
 						'<!-- wp:group {"align":"wide"} -->',
55 55
 						'<div class="wp-block-group alignwide"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center"} -->',
56
-						'<h2 class="has-text-align-center">' . __( 'The premier destination for modern art in Northern Sweden. Open from 10 AM to 6 PM every day during the summer months.', 'twentytwenty' ) . '</h2>',
56
+						'<h2 class="has-text-align-center">'.__('The premier destination for modern art in Northern Sweden. Open from 10 AM to 6 PM every day during the summer months.', 'twentytwenty').'</h2>',
57 57
 						'<!-- /wp:heading --></div></div>',
58 58
 						'<!-- /wp:group -->',
59 59
 						'<!-- wp:columns {"align":"wide"} -->',
@@ -61,31 +61,31 @@  discard block
 block discarded – undo
61 61
 						'<div class="wp-block-column"><!-- wp:group -->',
62 62
 						'<div class="wp-block-group"><div class="wp-block-group__inner-container">',
63 63
 						'<!-- wp:image {"align":"full","id":37,"sizeSlug":"full"} -->',
64
-						'<figure class="wp-block-image alignfull size-full"><img src="' . get_theme_file_uri() . '/assets/images/2020-three-quarters-1.png" alt="" class="wp-image-37"/></figure>',
64
+						'<figure class="wp-block-image alignfull size-full"><img src="'.get_theme_file_uri().'/assets/images/2020-three-quarters-1.png" alt="" class="wp-image-37"/></figure>',
65 65
 						'<!-- /wp:image -->',
66 66
 						'<!-- wp:heading {"level":3} -->',
67
-						'<h3>' . __( 'Works and Days', 'twentytwenty' ) . '</h3>',
67
+						'<h3>'.__('Works and Days', 'twentytwenty').'</h3>',
68 68
 						'<!-- /wp:heading -->',
69 69
 						'<!-- wp:paragraph -->',
70
-						'<p>' . __( 'August 1 -- December 1', 'twentytwenty' ) . '</p>',
70
+						'<p>'.__('August 1 -- December 1', 'twentytwenty').'</p>',
71 71
 						'<!-- /wp:paragraph -->',
72 72
 						'<!-- wp:button {"className":"is-style-outline"} -->',
73
-						'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">' . __( 'Read More', 'twentytwenty' ) . '</a></div>',
73
+						'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">'.__('Read More', 'twentytwenty').'</a></div>',
74 74
 						'<!-- /wp:button --></div></div>',
75 75
 						'<!-- /wp:group -->',
76 76
 						'<!-- wp:group -->',
77 77
 						'<div class="wp-block-group"><div class="wp-block-group__inner-container">',
78 78
 						'<!-- wp:image {"align":"full","id":37,"sizeSlug":"full"} -->',
79
-						'<figure class="wp-block-image alignfull size-full"><img src="' . get_theme_file_uri() . '/assets/images/2020-three-quarters-3.png" alt="" class="wp-image-37"/></figure>',
79
+						'<figure class="wp-block-image alignfull size-full"><img src="'.get_theme_file_uri().'/assets/images/2020-three-quarters-3.png" alt="" class="wp-image-37"/></figure>',
80 80
 						'<!-- /wp:image -->',
81 81
 						'<!-- wp:heading {"level":3} -->',
82
-						'<h3>' . __( 'Theatre of Operations', 'twentytwenty' ) . '</h3>',
82
+						'<h3>'.__('Theatre of Operations', 'twentytwenty').'</h3>',
83 83
 						'<!-- /wp:heading -->',
84 84
 						'<!-- wp:paragraph -->',
85
-						'<p>' . __( 'October 1 -- December 1', 'twentytwenty' ) . '</p>',
85
+						'<p>'.__('October 1 -- December 1', 'twentytwenty').'</p>',
86 86
 						'<!-- /wp:paragraph -->',
87 87
 						'<!-- wp:button {"className":"is-style-outline"} -->',
88
-						'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">' . __( 'Read More', 'twentytwenty' ) . '</a></div>',
88
+						'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">'.__('Read More', 'twentytwenty').'</a></div>',
89 89
 						'<!-- /wp:button --></div></div>',
90 90
 						'<!-- /wp:group --></div>',
91 91
 						'<!-- /wp:column -->',
@@ -93,48 +93,48 @@  discard block
 block discarded – undo
93 93
 						'<div class="wp-block-column"><!-- wp:group -->',
94 94
 						'<div class="wp-block-group"><div class="wp-block-group__inner-container">',
95 95
 						'<!-- wp:image {"align":"full","id":37,"sizeSlug":"full"} -->',
96
-						'<figure class="wp-block-image alignfull size-full"><img src="' . get_theme_file_uri() . '/assets/images/2020-three-quarters-2.png" alt="" class="wp-image-37"/></figure>',
96
+						'<figure class="wp-block-image alignfull size-full"><img src="'.get_theme_file_uri().'/assets/images/2020-three-quarters-2.png" alt="" class="wp-image-37"/></figure>',
97 97
 						'<!-- /wp:image -->',
98 98
 						'<!-- wp:heading {"level":3} -->',
99
-						'<h3>' . __( 'The Life I Deserve', 'twentytwenty' ) . '</h3>',
99
+						'<h3>'.__('The Life I Deserve', 'twentytwenty').'</h3>',
100 100
 						'<!-- /wp:heading -->',
101 101
 						'<!-- wp:paragraph -->',
102
-						'<p>' . __( 'August 1 -- December 1', 'twentytwenty' ) . '</p>',
102
+						'<p>'.__('August 1 -- December 1', 'twentytwenty').'</p>',
103 103
 						'<!-- /wp:paragraph -->',
104 104
 						'<!-- wp:button {"className":"is-style-outline"} -->',
105
-						'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">' . __( 'Read More', 'twentytwenty' ) . '</a></div>',
105
+						'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">'.__('Read More', 'twentytwenty').'</a></div>',
106 106
 						'<!-- /wp:button --></div></div>',
107 107
 						'<!-- /wp:group -->',
108 108
 						'<!-- wp:group -->',
109 109
 						'<div class="wp-block-group"><div class="wp-block-group__inner-container">',
110 110
 						'<!-- wp:image {"align":"full","id":37,"sizeSlug":"full"} -->',
111
-						'<figure class="wp-block-image alignfull size-full"><img src="' . get_theme_file_uri() . '/assets/images/2020-three-quarters-4.png" alt="" class="wp-image-37"/></figure>',
111
+						'<figure class="wp-block-image alignfull size-full"><img src="'.get_theme_file_uri().'/assets/images/2020-three-quarters-4.png" alt="" class="wp-image-37"/></figure>',
112 112
 						'<!-- /wp:image -->',
113 113
 						'<!-- wp:heading {"level":3} -->',
114
-						'<h3>' . __( 'From Signac to Matisse', 'twentytwenty' ) . '</h3>',
114
+						'<h3>'.__('From Signac to Matisse', 'twentytwenty').'</h3>',
115 115
 						'<!-- /wp:heading -->',
116 116
 						'<!-- wp:paragraph -->',
117
-						'<p>' . __( 'October 1 -- December 1', 'twentytwenty' ) . '</p>',
117
+						'<p>'.__('October 1 -- December 1', 'twentytwenty').'</p>',
118 118
 						'<!-- /wp:paragraph -->',
119 119
 						'<!-- wp:button {"className":"is-style-outline"} -->',
120
-						'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">' . __( 'Read More', 'twentytwenty' ) . '</a></div>',
120
+						'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">'.__('Read More', 'twentytwenty').'</a></div>',
121 121
 						'<!-- /wp:button --></div></div>',
122 122
 						'<!-- /wp:group --></div>',
123 123
 						'<!-- /wp:column --></div>',
124 124
 						'<!-- /wp:columns -->',
125 125
 						'<!-- wp:image {"align":"full","id":37,"sizeSlug":"full"} -->',
126
-						'<figure class="wp-block-image alignfull size-full"><img src="' . get_theme_file_uri() . '/assets/images/2020-landscape-2.png" alt="" class="wp-image-37"/></figure>',
126
+						'<figure class="wp-block-image alignfull size-full"><img src="'.get_theme_file_uri().'/assets/images/2020-landscape-2.png" alt="" class="wp-image-37"/></figure>',
127 127
 						'<!-- /wp:image -->',
128 128
 						'<!-- wp:group {"align":"wide"} -->',
129 129
 						'<div class="wp-block-group alignwide"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center","textColor":"accent"} -->',
130
-						'<h2 class="has-accent-color has-text-align-center">' . __( '&#8220;Cyborgs, as the philosopher Donna Haraway established, are not reverent. They do not remember the cosmos.&#8221;', 'twentytwenty' ) . '</h2>',
130
+						'<h2 class="has-accent-color has-text-align-center">'.__('&#8220;Cyborgs, as the philosopher Donna Haraway established, are not reverent. They do not remember the cosmos.&#8221;', 'twentytwenty').'</h2>',
131 131
 						'<!-- /wp:heading --></div></div>',
132 132
 						'<!-- /wp:group -->',
133 133
 						'<!-- wp:paragraph {"dropCap":true} -->',
134
-						'<p class="has-drop-cap">' . __( 'With seven floors of striking architecture, UMoMA shows exhibitions of international contemporary art, sometimes along with art historical retrospectives. Existential, political and philosophical issues are intrinsic to our programme. As visitor you are invited to guided tours artist talks, lectures, film screenings and other events with free admission', 'twentytwenty' ) . '</p>',
134
+						'<p class="has-drop-cap">'.__('With seven floors of striking architecture, UMoMA shows exhibitions of international contemporary art, sometimes along with art historical retrospectives. Existential, political and philosophical issues are intrinsic to our programme. As visitor you are invited to guided tours artist talks, lectures, film screenings and other events with free admission', 'twentytwenty').'</p>',
135 135
 						'<!-- /wp:paragraph -->',
136 136
 						'<!-- wp:paragraph -->',
137
-						'<p>' . __( 'The exhibitions are produced by UMoMA in collaboration with artists and museums around the world and they often attract international attention. UMoMA has received a Special Commendation from the European Museum of the Year, and was among the top candidates for the Swedish Museum of the Year Award as well as for the Council of Europe Museum Prize.', 'twentytwenty' ) . '</p>',
137
+						'<p>'.__('The exhibitions are produced by UMoMA in collaboration with artists and museums around the world and they often attract international attention. UMoMA has received a Special Commendation from the European Museum of the Year, and was among the top candidates for the Swedish Museum of the Year Award as well as for the Council of Europe Museum Prize.', 'twentytwenty').'</p>',
138 138
 						'<!-- /wp:paragraph -->',
139 139
 						'<!-- wp:paragraph -->',
140 140
 						'<p></p>',
@@ -142,18 +142,18 @@  discard block
 block discarded – undo
142 142
 						'<!-- wp:group {"customBackgroundColor":"#ffffff","align":"wide"} -->',
143 143
 						'<div class="wp-block-group alignwide has-background" style="background-color:#ffffff"><div class="wp-block-group__inner-container"><!-- wp:group -->',
144 144
 						'<div class="wp-block-group"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center"} -->',
145
-						'<h2 class="has-text-align-center">' . __( 'Become a Member and Get Exclusive Offers!', 'twentytwenty' ) . '</h2>',
145
+						'<h2 class="has-text-align-center">'.__('Become a Member and Get Exclusive Offers!', 'twentytwenty').'</h2>',
146 146
 						'<!-- /wp:heading -->',
147 147
 						'<!-- wp:paragraph {"align":"center"} -->',
148
-						'<p class="has-text-align-center">' . __( 'Members get access to exclusive exhibits and sales. Our memberships cost $99.99 and are billed annually.', 'twentytwenty' ) . '</p>',
148
+						'<p class="has-text-align-center">'.__('Members get access to exclusive exhibits and sales. Our memberships cost $99.99 and are billed annually.', 'twentytwenty').'</p>',
149 149
 						'<!-- /wp:paragraph -->',
150 150
 						'<!-- wp:button {"align":"center"} -->',
151
-						'<div class="wp-block-button aligncenter"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">' . __( 'Join the Club', 'twentytwenty' ) . '</a></div>',
151
+						'<div class="wp-block-button aligncenter"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">'.__('Join the Club', 'twentytwenty').'</a></div>',
152 152
 						'<!-- /wp:button --></div></div>',
153 153
 						'<!-- /wp:group --></div></div>',
154 154
 						'<!-- /wp:group -->',
155 155
 						'<!-- wp:gallery {"ids":[39,38],"align":"wide"} -->',
156
-						'<figure class="wp-block-gallery alignwide columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="' . get_theme_file_uri() . '/assets/images/2020-square-2.png" alt="" data-id="39" data-full-url="' . get_theme_file_uri() . '/assets/images/2020-square-2.png" data-link="assets/images/2020-square-2/" class="wp-image-39"/></figure></li><li class="blocks-gallery-item"><figure><img src="' . get_theme_file_uri() . '/assets/images/2020-square-1.png" alt="" data-id="38" data-full-url="' . get_theme_file_uri() . '/assets/images/2020-square-1.png" data-link="' . get_theme_file_uri() . '/assets/images/2020-square-1/" class="wp-image-38"/></figure></li></ul></figure>',
156
+						'<figure class="wp-block-gallery alignwide columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="'.get_theme_file_uri().'/assets/images/2020-square-2.png" alt="" data-id="39" data-full-url="'.get_theme_file_uri().'/assets/images/2020-square-2.png" data-link="assets/images/2020-square-2/" class="wp-image-39"/></figure></li><li class="blocks-gallery-item"><figure><img src="'.get_theme_file_uri().'/assets/images/2020-square-1.png" alt="" data-id="38" data-full-url="'.get_theme_file_uri().'/assets/images/2020-square-1.png" data-link="'.get_theme_file_uri().'/assets/images/2020-square-1/" class="wp-image-38"/></figure></li></ul></figure>',
157 157
 						'<!-- /wp:gallery -->',
158 158
 					)
159 159
 				),
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 		'nav_menus'   => array(
175 175
 			// Assign a menu to the "primary" location.
176 176
 			'primary'  => array(
177
-				'name'  => __( 'Primary', 'twentytwenty' ),
177
+				'name'  => __('Primary', 'twentytwenty'),
178 178
 				'items' => array(
179 179
 					'link_home', // Note that the core "home" page is actually a link in case a static front page is not used.
180 180
 					'page_about',
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 			),
185 185
 			// This replicates primary just to demonstrate the expanded menu.
186 186
 			'expanded' => array(
187
-				'name'  => __( 'Primary', 'twentytwenty' ),
187
+				'name'  => __('Primary', 'twentytwenty'),
188 188
 				'items' => array(
189 189
 					'link_home', // Note that the core "home" page is actually a link in case a static front page is not used.
190 190
 					'page_about',
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 			),
195 195
 			// Assign a menu to the "social" location.
196 196
 			'social'   => array(
197
-				'name'  => __( 'Social Links Menu', 'twentytwenty' ),
197
+				'name'  => __('Social Links Menu', 'twentytwenty'),
198 198
 				'items' => array(
199 199
 					'link_yelp',
200 200
 					'link_facebook',
@@ -213,6 +213,6 @@  discard block
 block discarded – undo
213 213
 	 *
214 214
 	 * @param array $starter_content Array of starter content.
215 215
 	 */
216
-	return apply_filters( 'twentytwenty_starter_content', $starter_content );
216
+	return apply_filters('twentytwenty_starter_content', $starter_content);
217 217
 
218 218
 }
Please login to merge, or discard this patch.
themes/twentytwenty/templates/template-cover.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@  discard block
 block discarded – undo
15 15
 
16 16
 	<?php
17 17
 
18
-	if ( have_posts() ) {
18
+	if (have_posts()) {
19 19
 
20
-		while ( have_posts() ) {
20
+		while (have_posts()) {
21 21
 			the_post();
22 22
 
23
-			get_template_part( 'template-parts/content-cover' );
23
+			get_template_part('template-parts/content-cover');
24 24
 		}
25 25
 	}
26 26
 
@@ -28,6 +28,6 @@  discard block
 block discarded – undo
28 28
 
29 29
 </main><!-- #site-content -->
30 30
 
31
-<?php get_template_part( 'template-parts/footer-menus-widgets' ); ?>
31
+<?php get_template_part('template-parts/footer-menus-widgets'); ?>
32 32
 
33 33
 <?php get_footer(); ?>
Please login to merge, or discard this patch.
themes/twentytwenty/templates/template-full-width.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,4 +8,4 @@
 block discarded – undo
8 8
  * @since Twenty Twenty 1.0
9 9
  */
10 10
 
11
-get_template_part( 'singular' );
11
+get_template_part('singular');
Please login to merge, or discard this patch.
themes/twentytwenty/index.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -24,16 +24,16 @@  discard block
 block discarded – undo
24 24
 	$archive_title    = '';
25 25
 	$archive_subtitle = '';
26 26
 
27
-	if ( is_search() ) {
27
+	if (is_search()) {
28 28
 		global $wp_query;
29 29
 
30 30
 		$archive_title = sprintf(
31 31
 			'%1$s %2$s',
32
-			'<span class="color-accent">' . __( 'Search:', 'twentytwenty' ) . '</span>',
33
-			'&ldquo;' . get_search_query() . '&rdquo;'
32
+			'<span class="color-accent">'.__('Search:', 'twentytwenty').'</span>',
33
+			'&ldquo;'.get_search_query().'&rdquo;'
34 34
 		);
35 35
 
36
-		if ( $wp_query->found_posts ) {
36
+		if ($wp_query->found_posts) {
37 37
 			$archive_subtitle = sprintf(
38 38
 				/* translators: %s: Number of search results. */
39 39
 				_n(
@@ -42,31 +42,31 @@  discard block
 block discarded – undo
42 42
 					$wp_query->found_posts,
43 43
 					'twentytwenty'
44 44
 				),
45
-				number_format_i18n( $wp_query->found_posts )
45
+				number_format_i18n($wp_query->found_posts)
46 46
 			);
47 47
 		} else {
48
-			$archive_subtitle = __( 'We could not find any results for your search. You can give it another try through the search form below.', 'twentytwenty' );
48
+			$archive_subtitle = __('We could not find any results for your search. You can give it another try through the search form below.', 'twentytwenty');
49 49
 		}
50
-	} elseif ( is_archive() && ! have_posts() ) {
51
-		$archive_title = __( 'Nothing Found', 'twentytwenty' );
52
-	} elseif ( ! is_home() ) {
50
+	} elseif (is_archive() && ! have_posts()) {
51
+		$archive_title = __('Nothing Found', 'twentytwenty');
52
+	} elseif ( ! is_home()) {
53 53
 		$archive_title    = get_the_archive_title();
54 54
 		$archive_subtitle = get_the_archive_description();
55 55
 	}
56 56
 
57
-	if ( $archive_title || $archive_subtitle ) {
57
+	if ($archive_title || $archive_subtitle) {
58 58
 		?>
59 59
 
60 60
 		<header class="archive-header has-text-align-center header-footer-group">
61 61
 
62 62
 			<div class="archive-header-inner section-inner medium">
63 63
 
64
-				<?php if ( $archive_title ) { ?>
65
-					<h1 class="archive-title"><?php echo wp_kses_post( $archive_title ); ?></h1>
64
+				<?php if ($archive_title) { ?>
65
+					<h1 class="archive-title"><?php echo wp_kses_post($archive_title); ?></h1>
66 66
 				<?php } ?>
67 67
 
68
-				<?php if ( $archive_subtitle ) { ?>
69
-					<div class="archive-subtitle section-inner thin max-percentage intro-text"><?php echo wp_kses_post( wpautop( $archive_subtitle ) ); ?></div>
68
+				<?php if ($archive_subtitle) { ?>
69
+					<div class="archive-subtitle section-inner thin max-percentage intro-text"><?php echo wp_kses_post(wpautop($archive_subtitle)); ?></div>
70 70
 				<?php } ?>
71 71
 
72 72
 			</div><!-- .archive-header-inner -->
@@ -76,21 +76,21 @@  discard block
 block discarded – undo
76 76
 		<?php
77 77
 	}
78 78
 
79
-	if ( have_posts() ) {
79
+	if (have_posts()) {
80 80
 
81 81
 		$i = 0;
82 82
 
83
-		while ( have_posts() ) {
83
+		while (have_posts()) {
84 84
 			$i++;
85
-			if ( $i > 1 ) {
85
+			if ($i > 1) {
86 86
 				echo '<hr class="post-separator styled-separator is-style-wide section-inner" aria-hidden="true" />';
87 87
 			}
88 88
 			the_post();
89 89
 
90
-			get_template_part( 'template-parts/content', get_post_type() );
90
+			get_template_part('template-parts/content', get_post_type());
91 91
 
92 92
 		}
93
-	} elseif ( is_search() ) {
93
+	} elseif (is_search()) {
94 94
 		?>
95 95
 
96 96
 		<div class="no-search-results-form section-inner thin">
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 			<?php
99 99
 			get_search_form(
100 100
 				array(
101
-					'aria_label' => __( 'search again', 'twentytwenty' ),
101
+					'aria_label' => __('search again', 'twentytwenty'),
102 102
 				)
103 103
 			);
104 104
 			?>
@@ -109,11 +109,11 @@  discard block
 block discarded – undo
109 109
 	}
110 110
 	?>
111 111
 
112
-	<?php get_template_part( 'template-parts/pagination' ); ?>
112
+	<?php get_template_part('template-parts/pagination'); ?>
113 113
 
114 114
 </main><!-- #site-content -->
115 115
 
116
-<?php get_template_part( 'template-parts/footer-menus-widgets' ); ?>
116
+<?php get_template_part('template-parts/footer-menus-widgets'); ?>
117 117
 
118 118
 <?php
119 119
 get_footer();
Please login to merge, or discard this patch.