From 9de6fd98faa3d63b9170281eac33e361c9d091b8 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Fri, 8 Oct 2021 14:09:30 -0400 Subject: [PATCH 01/14] Add header block patterns --- block-template-parts/header.html | 2 +- functions.php | 5 ++- inc/block-patterns.php | 39 +++++++++++++++++++ inc/patterns/header-default.php | 21 ++++++++++ inc/patterns/header-large-dark.php | 29 ++++++++++++++ .../header-logo-navigation-offset-tagline.php | 32 +++++++++++++++ .../header-logo-navigation-social.php | 22 +++++++++++ inc/patterns/header-logo-navigation.php | 16 ++++++++ inc/patterns/header-stacked.php | 26 +++++++++++++ ...header-text-only-all-caps-with-tagline.php | 20 ++++++++++ .../header-text-only-with-tagline.php | 20 ++++++++++ inc/patterns/header-text-only.php | 16 ++++++++ .../header-title-navigation-social.php | 22 +++++++++++ inc/patterns/header-with-tagline.php | 24 ++++++++++++ 14 files changed, 292 insertions(+), 2 deletions(-) create mode 100644 inc/block-patterns.php create mode 100644 inc/patterns/header-default.php create mode 100644 inc/patterns/header-large-dark.php create mode 100644 inc/patterns/header-logo-navigation-offset-tagline.php create mode 100644 inc/patterns/header-logo-navigation-social.php create mode 100644 inc/patterns/header-logo-navigation.php create mode 100644 inc/patterns/header-stacked.php create mode 100644 inc/patterns/header-text-only-all-caps-with-tagline.php create mode 100644 inc/patterns/header-text-only-with-tagline.php create mode 100644 inc/patterns/header-text-only.php create mode 100644 inc/patterns/header-title-navigation-social.php create mode 100644 inc/patterns/header-with-tagline.php diff --git a/block-template-parts/header.html b/block-template-parts/header.html index 8b56b5e8..f68f1c0a 100644 --- a/block-template-parts/header.html +++ b/block-template-parts/header.html @@ -3,7 +3,7 @@
-
+ diff --git a/functions.php b/functions.php index 3b938d0a..acf55bfb 100644 --- a/functions.php +++ b/functions.php @@ -69,4 +69,7 @@ function twentytwentytwo_get_font_face_styles() { } "; } -endif; \ No newline at end of file +endif; + +// Block patterns +require get_template_directory() . '/inc/block-patterns.php'; \ No newline at end of file diff --git a/inc/block-patterns.php b/inc/block-patterns.php new file mode 100644 index 00000000..0f679f43 --- /dev/null +++ b/inc/block-patterns.php @@ -0,0 +1,39 @@ + __( 'Twenty Twenty-Two Headers', 'twentytwentytwo' ) ) + ); + } + if ( function_exists( 'register_block_pattern' ) ) { + $block_patterns = array( + 'header-default', + 'header-with-tagline', + 'header-text-only', + 'header-text-only-with-tagline', + 'header-text-only-all-caps-with-tagline', + 'header-logo-navigation', + 'header-logo-navigation-social', + 'header-logo-navigation-offset-tagline', + 'header-stacked', + 'header-large-dark' + ); + + foreach ( $block_patterns as $block_pattern ) { + register_block_pattern( + 'twentytwentytwo/' . $block_pattern, + require __DIR__ . '/patterns/' . $block_pattern . '.php' + ); + } + } + } +endif; +add_action( 'init', 'twentytwentytwo_register_block_patterns', 9 ); \ No newline at end of file diff --git a/inc/patterns/header-default.php b/inc/patterns/header-default.php new file mode 100644 index 00000000..0a69ef01 --- /dev/null +++ b/inc/patterns/header-default.php @@ -0,0 +1,21 @@ + __( 'Default Header', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
+
+ + +
+ + + + +
+ ' +); \ No newline at end of file diff --git a/inc/patterns/header-large-dark.php b/inc/patterns/header-large-dark.php new file mode 100644 index 00000000..58aca0e3 --- /dev/null +++ b/inc/patterns/header-large-dark.php @@ -0,0 +1,29 @@ + __( 'Large Header', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' + + ' +); \ No newline at end of file diff --git a/inc/patterns/header-logo-navigation-offset-tagline.php b/inc/patterns/header-logo-navigation-offset-tagline.php new file mode 100644 index 00000000..fdd253eb --- /dev/null +++ b/inc/patterns/header-logo-navigation-offset-tagline.php @@ -0,0 +1,32 @@ + __( 'Logo, Navigation, and offset Tagline Header', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
+
+ + + +
+ + + +
+
+ + + +
+
+ + + +

+
+ ' +); \ No newline at end of file diff --git a/inc/patterns/header-logo-navigation-social.php b/inc/patterns/header-logo-navigation-social.php new file mode 100644 index 00000000..38d0b437 --- /dev/null +++ b/inc/patterns/header-logo-navigation-social.php @@ -0,0 +1,22 @@ + __( 'Logo, Navigation, and Social Links Header', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
+ + + + + + + +
+ ' +); \ No newline at end of file diff --git a/inc/patterns/header-logo-navigation.php b/inc/patterns/header-logo-navigation.php new file mode 100644 index 00000000..f384773f --- /dev/null +++ b/inc/patterns/header-logo-navigation.php @@ -0,0 +1,16 @@ + __( 'Logo and Navigation Header', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
+ + + +
+ ' +); \ No newline at end of file diff --git a/inc/patterns/header-stacked.php b/inc/patterns/header-stacked.php new file mode 100644 index 00000000..28709899 --- /dev/null +++ b/inc/patterns/header-stacked.php @@ -0,0 +1,26 @@ + __( 'Logo and Navigation Header', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
+ + + + + + + + + + + + + +
+ ' +); \ No newline at end of file diff --git a/inc/patterns/header-text-only-all-caps-with-tagline.php b/inc/patterns/header-text-only-all-caps-with-tagline.php new file mode 100644 index 00000000..521a4263 --- /dev/null +++ b/inc/patterns/header-text-only-all-caps-with-tagline.php @@ -0,0 +1,20 @@ + __( 'Text-only Header with Tagline and all-caps Title', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
+
+ +
+ + + + +
+ ' +); \ No newline at end of file diff --git a/inc/patterns/header-text-only-with-tagline.php b/inc/patterns/header-text-only-with-tagline.php new file mode 100644 index 00000000..b2b4b0c3 --- /dev/null +++ b/inc/patterns/header-text-only-with-tagline.php @@ -0,0 +1,20 @@ + __( 'Text-only Header with Tagline', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
+
+ +
+ + + + +
+ ' +); \ No newline at end of file diff --git a/inc/patterns/header-text-only.php b/inc/patterns/header-text-only.php new file mode 100644 index 00000000..6cafb3eb --- /dev/null +++ b/inc/patterns/header-text-only.php @@ -0,0 +1,16 @@ + __( 'Text-only Header', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
+ + + +
+ ' +); \ No newline at end of file diff --git a/inc/patterns/header-title-navigation-social.php b/inc/patterns/header-title-navigation-social.php new file mode 100644 index 00000000..224751b2 --- /dev/null +++ b/inc/patterns/header-title-navigation-social.php @@ -0,0 +1,22 @@ + __( 'Title, Navigation, and Social Links Header', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
+ + + + + + + +
+ ' +); \ No newline at end of file diff --git a/inc/patterns/header-with-tagline.php b/inc/patterns/header-with-tagline.php new file mode 100644 index 00000000..59f91925 --- /dev/null +++ b/inc/patterns/header-with-tagline.php @@ -0,0 +1,24 @@ + __( 'Header with Tagline', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
+
+ + +
+ +
+
+ + + + +
+ ' +); \ No newline at end of file From f69b1fc3efac1097fd23911b97af0a3ae99caa91 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Fri, 8 Oct 2021 14:33:25 -0400 Subject: [PATCH 02/14] Remove empty paragraph block. --- inc/patterns/header-logo-navigation-offset-tagline.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/inc/patterns/header-logo-navigation-offset-tagline.php b/inc/patterns/header-logo-navigation-offset-tagline.php index fdd253eb..2823dd38 100644 --- a/inc/patterns/header-logo-navigation-offset-tagline.php +++ b/inc/patterns/header-logo-navigation-offset-tagline.php @@ -23,10 +23,6 @@
- - - -

- + ' ); \ No newline at end of file From 7ccc96d19c6769ce3c35b36c6ab3e5ebeebb5892 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Fri, 8 Oct 2021 14:34:17 -0400 Subject: [PATCH 03/14] Register title nav social pattern. --- inc/block-patterns.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/block-patterns.php b/inc/block-patterns.php index 0f679f43..06f49a2e 100644 --- a/inc/block-patterns.php +++ b/inc/block-patterns.php @@ -22,6 +22,7 @@ function twentytwentytwo_register_block_patterns() { 'header-text-only-all-caps-with-tagline', 'header-logo-navigation', 'header-logo-navigation-social', + 'header-title-navigation-social', 'header-logo-navigation-offset-tagline', 'header-stacked', 'header-large-dark' From dee270bc105b9c674fc695effa6e3478929f4927 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Fri, 8 Oct 2021 14:47:20 -0400 Subject: [PATCH 04/14] Add text-only header with stacked tagline. --- inc/block-patterns.php | 1 + .../header-text-only-with-stacked-tagline.php | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 inc/patterns/header-text-only-with-stacked-tagline.php diff --git a/inc/block-patterns.php b/inc/block-patterns.php index 06f49a2e..c34a18a3 100644 --- a/inc/block-patterns.php +++ b/inc/block-patterns.php @@ -19,6 +19,7 @@ function twentytwentytwo_register_block_patterns() { 'header-with-tagline', 'header-text-only', 'header-text-only-with-tagline', + 'header-text-only-stacked-tagline' 'header-text-only-all-caps-with-tagline', 'header-logo-navigation', 'header-logo-navigation-social', diff --git a/inc/patterns/header-text-only-with-stacked-tagline.php b/inc/patterns/header-text-only-with-stacked-tagline.php new file mode 100644 index 00000000..5e8007a5 --- /dev/null +++ b/inc/patterns/header-text-only-with-stacked-tagline.php @@ -0,0 +1,20 @@ + __( 'Text-only Header with stacked Tagline', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
+
+ +
+ + + + +
+ ' +); \ No newline at end of file From e9589568cbc7058bdc95f94274cffc5c7a79ad51 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Fri, 8 Oct 2021 14:47:45 -0400 Subject: [PATCH 05/14] Fix pattern slug. --- inc/block-patterns.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/block-patterns.php b/inc/block-patterns.php index c34a18a3..dbb5a471 100644 --- a/inc/block-patterns.php +++ b/inc/block-patterns.php @@ -19,7 +19,7 @@ function twentytwentytwo_register_block_patterns() { 'header-with-tagline', 'header-text-only', 'header-text-only-with-tagline', - 'header-text-only-stacked-tagline' + 'header-text-only-with-stacked-tagline' 'header-text-only-all-caps-with-tagline', 'header-logo-navigation', 'header-logo-navigation-social', From 6963f759d99dda17a999f57399b3807465261385 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Fri, 8 Oct 2021 14:50:21 -0400 Subject: [PATCH 06/14] Reorder patterns, add missing comma. --- inc/block-patterns.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/block-patterns.php b/inc/block-patterns.php index dbb5a471..747e0457 100644 --- a/inc/block-patterns.php +++ b/inc/block-patterns.php @@ -17,9 +17,9 @@ function twentytwentytwo_register_block_patterns() { $block_patterns = array( 'header-default', 'header-with-tagline', + 'header-text-only-with-stacked-tagline', 'header-text-only', 'header-text-only-with-tagline', - 'header-text-only-with-stacked-tagline' 'header-text-only-all-caps-with-tagline', 'header-logo-navigation', 'header-logo-navigation-social', From 65da3c170eb8465c76a4949f91b43fb3379c4dbc Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Fri, 8 Oct 2021 15:27:46 -0400 Subject: [PATCH 07/14] Use preset color variables for the social links block. --- inc/patterns/header-logo-navigation-social.php | 2 +- inc/patterns/header-title-navigation-social.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/patterns/header-logo-navigation-social.php b/inc/patterns/header-logo-navigation-social.php index 38d0b437..ae573f48 100644 --- a/inc/patterns/header-logo-navigation-social.php +++ b/inc/patterns/header-logo-navigation-social.php @@ -12,7 +12,7 @@ - + diff --git a/inc/patterns/header-title-navigation-social.php b/inc/patterns/header-title-navigation-social.php index 224751b2..9c300c06 100644 --- a/inc/patterns/header-title-navigation-social.php +++ b/inc/patterns/header-title-navigation-social.php @@ -12,7 +12,7 @@ - + From b047708ed24e70393550422aff69433f9980f85a Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Mon, 11 Oct 2021 08:14:49 -0400 Subject: [PATCH 08/14] Tidy up margin for stacked title/tagline patterns. --- inc/patterns/header-text-only-with-stacked-tagline.php | 4 ++-- inc/patterns/header-with-tagline.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/patterns/header-text-only-with-stacked-tagline.php b/inc/patterns/header-text-only-with-stacked-tagline.php index 5e8007a5..bcc64092 100644 --- a/inc/patterns/header-text-only-with-stacked-tagline.php +++ b/inc/patterns/header-text-only-with-stacked-tagline.php @@ -8,9 +8,9 @@ 'blockTypes' => array( 'core/template-part/header' ), 'content' => '
-
+
-
+
diff --git a/inc/patterns/header-with-tagline.php b/inc/patterns/header-with-tagline.php index 59f91925..83a9e34d 100644 --- a/inc/patterns/header-with-tagline.php +++ b/inc/patterns/header-with-tagline.php @@ -11,9 +11,9 @@
-
+
-
+
From bcbdc329107a8d2bc8bc08e9ef4bfeceb78f045e Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Mon, 11 Oct 2021 10:06:38 -0400 Subject: [PATCH 09/14] Add additional patterns. --- inc/block-patterns.php | 6 +++- .../header-centered-logo-in-navigation.php | 18 +++++++++++ inc/patterns/header-centered-logo.php | 26 ++++++++++++++++ ...eader-centered-title-navigation-social.php | 30 +++++++++++++++++++ inc/patterns/header-title-and-button.php | 16 ++++++++++ 5 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 inc/patterns/header-centered-logo-in-navigation.php create mode 100644 inc/patterns/header-centered-logo.php create mode 100644 inc/patterns/header-centered-title-navigation-social.php create mode 100644 inc/patterns/header-title-and-button.php diff --git a/inc/block-patterns.php b/inc/block-patterns.php index 747e0457..c25e0404 100644 --- a/inc/block-patterns.php +++ b/inc/block-patterns.php @@ -26,7 +26,11 @@ function twentytwentytwo_register_block_patterns() { 'header-title-navigation-social', 'header-logo-navigation-offset-tagline', 'header-stacked', - 'header-large-dark' + 'header-large-dark', + 'header-centered-logo', + 'header-centered-logo-in-navigation', + 'header-centered-title-navigation-social', + 'header-title-and-button' ); foreach ( $block_patterns as $block_pattern ) { diff --git a/inc/patterns/header-centered-logo-in-navigation.php b/inc/patterns/header-centered-logo-in-navigation.php new file mode 100644 index 00000000..1601e2ed --- /dev/null +++ b/inc/patterns/header-centered-logo-in-navigation.php @@ -0,0 +1,18 @@ + __( 'Header with centered Logo in Navigation', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
+ + + + + +
+ ' +); \ No newline at end of file diff --git a/inc/patterns/header-centered-logo.php b/inc/patterns/header-centered-logo.php new file mode 100644 index 00000000..43d6b8af --- /dev/null +++ b/inc/patterns/header-centered-logo.php @@ -0,0 +1,26 @@ + __( 'Header with centered Logo', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
+
+
+ + + +
+ + + +
+ +
+
+
+ ' +); \ No newline at end of file diff --git a/inc/patterns/header-centered-title-navigation-social.php b/inc/patterns/header-centered-title-navigation-social.php new file mode 100644 index 00000000..a067a8ed --- /dev/null +++ b/inc/patterns/header-centered-title-navigation-social.php @@ -0,0 +1,30 @@ + __( 'Centered title with Navigation and Social Links Header', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
+
+
+ +
+ + + +
+ + + +
+ +
+
+
+ ' +); \ No newline at end of file diff --git a/inc/patterns/header-title-and-button.php b/inc/patterns/header-title-and-button.php new file mode 100644 index 00000000..c9e4b58b --- /dev/null +++ b/inc/patterns/header-title-and-button.php @@ -0,0 +1,16 @@ + __( 'Title and Button Header', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
+ + + +
+ ' +); \ No newline at end of file From b63766f1ae7cf374de18bbbc0f0aee66737015b6 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Mon, 11 Oct 2021 10:25:05 -0400 Subject: [PATCH 10/14] Fix PHPCS errors. --- inc/block-patterns.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/block-patterns.php b/inc/block-patterns.php index c25e0404..657ac885 100644 --- a/inc/block-patterns.php +++ b/inc/block-patterns.php @@ -30,7 +30,7 @@ function twentytwentytwo_register_block_patterns() { 'header-centered-logo', 'header-centered-logo-in-navigation', 'header-centered-title-navigation-social', - 'header-title-and-button' + 'header-title-and-button', ); foreach ( $block_patterns as $block_pattern ) { @@ -42,4 +42,4 @@ function twentytwentytwo_register_block_patterns() { } } endif; -add_action( 'init', 'twentytwentytwo_register_block_patterns', 9 ); \ No newline at end of file +add_action( 'init', 'twentytwentytwo_register_block_patterns', 9 ); From 060b0fae1be720a0aa90c6856ad6bb218ab7eeb7 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Mon, 11 Oct 2021 10:31:39 -0400 Subject: [PATCH 11/14] Fix PHPCS errors. --- inc/patterns/header-centered-logo-in-navigation.php | 10 +++++----- inc/patterns/header-centered-logo.php | 10 +++++----- .../header-centered-title-navigation-social.php | 10 +++++----- inc/patterns/header-default.php | 10 +++++----- inc/patterns/header-large-dark.php | 10 +++++----- inc/patterns/header-logo-navigation-offset-tagline.php | 10 +++++----- inc/patterns/header-logo-navigation-social.php | 10 +++++----- inc/patterns/header-logo-navigation.php | 10 +++++----- inc/patterns/header-stacked.php | 10 +++++----- .../header-text-only-all-caps-with-tagline.php | 10 +++++----- inc/patterns/header-text-only-with-stacked-tagline.php | 10 +++++----- inc/patterns/header-text-only-with-tagline.php | 10 +++++----- inc/patterns/header-text-only.php | 10 +++++----- inc/patterns/header-title-and-button.php | 10 +++++----- inc/patterns/header-title-navigation-social.php | 10 +++++----- inc/patterns/header-with-tagline.php | 10 +++++----- 16 files changed, 80 insertions(+), 80 deletions(-) diff --git a/inc/patterns/header-centered-logo-in-navigation.php b/inc/patterns/header-centered-logo-in-navigation.php index 1601e2ed..568cfb9c 100644 --- a/inc/patterns/header-centered-logo-in-navigation.php +++ b/inc/patterns/header-centered-logo-in-navigation.php @@ -3,10 +3,10 @@ * Header with centered Logo in Navigation block pattern */ return array( - 'title' => __( 'Header with centered Logo in Navigation', 'twentytwentytwo' ), - 'categories' => array( 'twentytwentytwo-headers' ), + 'title' => __( 'Header with centered Logo in Navigation', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), 'blockTypes' => array( 'core/template-part/header' ), - 'content' => ' + 'content' => '
@@ -14,5 +14,5 @@
- ' -); \ No newline at end of file + ', +); diff --git a/inc/patterns/header-centered-logo.php b/inc/patterns/header-centered-logo.php index 43d6b8af..64778c11 100644 --- a/inc/patterns/header-centered-logo.php +++ b/inc/patterns/header-centered-logo.php @@ -3,10 +3,10 @@ * Header with centered Logo block pattern */ return array( - 'title' => __( 'Header with centered Logo', 'twentytwentytwo' ), - 'categories' => array( 'twentytwentytwo-headers' ), + 'title' => __( 'Header with centered Logo', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), 'blockTypes' => array( 'core/template-part/header' ), - 'content' => ' + 'content' => '
@@ -22,5 +22,5 @@
- ' -); \ No newline at end of file + ', +); diff --git a/inc/patterns/header-centered-title-navigation-social.php b/inc/patterns/header-centered-title-navigation-social.php index a067a8ed..c8cda51d 100644 --- a/inc/patterns/header-centered-title-navigation-social.php +++ b/inc/patterns/header-centered-title-navigation-social.php @@ -3,10 +3,10 @@ * Centered title with Navigation and Social Links Header block pattern */ return array( - 'title' => __( 'Centered title with Navigation and Social Links Header', 'twentytwentytwo' ), - 'categories' => array( 'twentytwentytwo-headers' ), + 'title' => __( 'Centered title with Navigation and Social Links Header', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), 'blockTypes' => array( 'core/template-part/header' ), - 'content' => ' + 'content' => '
@@ -26,5 +26,5 @@
- ' -); \ No newline at end of file + ', +); diff --git a/inc/patterns/header-default.php b/inc/patterns/header-default.php index 0a69ef01..be03f54d 100644 --- a/inc/patterns/header-default.php +++ b/inc/patterns/header-default.php @@ -3,10 +3,10 @@ * Default Header block pattern */ return array( - 'title' => __( 'Default Header', 'twentytwentytwo' ), - 'categories' => array( 'twentytwentytwo-headers' ), + 'title' => __( 'Default Header', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), 'blockTypes' => array( 'core/template-part/header' ), - 'content' => ' + 'content' => '
@@ -17,5 +17,5 @@
- ' -); \ No newline at end of file + ', +); diff --git a/inc/patterns/header-large-dark.php b/inc/patterns/header-large-dark.php index 58aca0e3..4315a73c 100644 --- a/inc/patterns/header-large-dark.php +++ b/inc/patterns/header-large-dark.php @@ -3,10 +3,10 @@ * Large Header block pattern */ return array( - 'title' => __( 'Large Header', 'twentytwentytwo' ), - 'categories' => array( 'twentytwentytwo-headers' ), + 'title' => __( 'Large Header', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-headers' ), 'blockTypes' => array( 'core/template-part/header' ), - 'content' => ' + 'content' => ' ', ); diff --git a/inc/patterns/header-logo-navigation.php b/inc/patterns/header-logo-navigation.php index f35e298d..e3a448b3 100644 --- a/inc/patterns/header-logo-navigation.php +++ b/inc/patterns/header-logo-navigation.php @@ -6,11 +6,11 @@ 'title' => __( 'Logo and Navigation Header', 'twentytwentytwo' ), 'categories' => array( 'twentytwentytwo-headers' ), 'blockTypes' => array( 'core/template-part/header' ), - 'content' => ' -
+ 'content' => ' +
-
+
', ); diff --git a/inc/patterns/header-stacked.php b/inc/patterns/header-stacked.php index f2ce605e..55619ac8 100644 --- a/inc/patterns/header-stacked.php +++ b/inc/patterns/header-stacked.php @@ -6,8 +6,8 @@ 'title' => __( 'Logo and Navigation Header', 'twentytwentytwo' ), 'categories' => array( 'twentytwentytwo-headers' ), 'blockTypes' => array( 'core/template-part/header' ), - 'content' => ' -
+ 'content' => ' +
@@ -21,6 +21,6 @@ -
+ ', ); diff --git a/inc/patterns/header-text-only-all-caps-with-tagline.php b/inc/patterns/header-text-only-all-caps-with-tagline.php index 214f9c9d..08435a59 100644 --- a/inc/patterns/header-text-only-all-caps-with-tagline.php +++ b/inc/patterns/header-text-only-all-caps-with-tagline.php @@ -6,8 +6,8 @@ 'title' => __( 'Text-only Header with Tagline and all-caps Title', 'twentytwentytwo' ), 'categories' => array( 'twentytwentytwo-headers' ), 'blockTypes' => array( 'core/template-part/header' ), - 'content' => ' -
+ 'content' => ' +
@@ -15,6 +15,6 @@ -
+ ', ); diff --git a/inc/patterns/header-text-only-with-stacked-tagline.php b/inc/patterns/header-text-only-with-stacked-tagline.php index 05d70d18..2ddd9fec 100644 --- a/inc/patterns/header-text-only-with-stacked-tagline.php +++ b/inc/patterns/header-text-only-with-stacked-tagline.php @@ -6,8 +6,8 @@ 'title' => __( 'Text-only Header with stacked Tagline', 'twentytwentytwo' ), 'categories' => array( 'twentytwentytwo-headers' ), 'blockTypes' => array( 'core/template-part/header' ), - 'content' => ' -
+ 'content' => ' +
@@ -15,6 +15,6 @@ -
+ ', ); diff --git a/inc/patterns/header-text-only-with-tagline.php b/inc/patterns/header-text-only-with-tagline.php index f56abb44..0416885c 100644 --- a/inc/patterns/header-text-only-with-tagline.php +++ b/inc/patterns/header-text-only-with-tagline.php @@ -6,8 +6,8 @@ 'title' => __( 'Text-only Header with Tagline', 'twentytwentytwo' ), 'categories' => array( 'twentytwentytwo-headers' ), 'blockTypes' => array( 'core/template-part/header' ), - 'content' => ' -
+ 'content' => ' +
@@ -15,6 +15,6 @@ -
+ ', ); diff --git a/inc/patterns/header-text-only.php b/inc/patterns/header-text-only.php index 43d2cab9..0e064f1a 100644 --- a/inc/patterns/header-text-only.php +++ b/inc/patterns/header-text-only.php @@ -6,11 +6,11 @@ 'title' => __( 'Text-only Header', 'twentytwentytwo' ), 'categories' => array( 'twentytwentytwo-headers' ), 'blockTypes' => array( 'core/template-part/header' ), - 'content' => ' -
+ 'content' => ' +
-
+ ', ); diff --git a/inc/patterns/header-title-and-button.php b/inc/patterns/header-title-and-button.php index 7c7456e6..0a679b4d 100644 --- a/inc/patterns/header-title-and-button.php +++ b/inc/patterns/header-title-and-button.php @@ -6,11 +6,11 @@ 'title' => __( 'Title and Button Header', 'twentytwentytwo' ), 'categories' => array( 'twentytwentytwo-headers' ), 'blockTypes' => array( 'core/template-part/header' ), - 'content' => ' -
+ 'content' => ' +
-
+ ', ); diff --git a/inc/patterns/header-title-navigation-social.php b/inc/patterns/header-title-navigation-social.php index 4fd551a7..4795f36c 100644 --- a/inc/patterns/header-title-navigation-social.php +++ b/inc/patterns/header-title-navigation-social.php @@ -6,8 +6,8 @@ 'title' => __( 'Title, Navigation, and Social Links Header', 'twentytwentytwo' ), 'categories' => array( 'twentytwentytwo-headers' ), 'blockTypes' => array( 'core/template-part/header' ), - 'content' => ' -
+ 'content' => ' +
@@ -17,6 +17,6 @@ -
+ ', ); diff --git a/inc/patterns/header-with-tagline.php b/inc/patterns/header-with-tagline.php index 0807d605..fc8f3a51 100644 --- a/inc/patterns/header-with-tagline.php +++ b/inc/patterns/header-with-tagline.php @@ -6,8 +6,8 @@ 'title' => __( 'Header with Tagline', 'twentytwentytwo' ), 'categories' => array( 'twentytwentytwo-headers' ), 'blockTypes' => array( 'core/template-part/header' ), - 'content' => ' -
+ 'content' => ' +
@@ -19,6 +19,6 @@ -
+ ', );