From f2e65699901452d716c7ad6dcab8484a276e8c40 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Tue, 8 Mar 2022 05:43:43 -0500 Subject: [PATCH] Archeo: Pattern cleanup (#5630) * Fix typos. * Fix line breaks and text. * Tidy up pattern categories. --- archeo/inc/block-patterns.php | 5 ++++- archeo/inc/patterns/headline-over-dark-image.php | 2 +- ...th-description-and-right-aligned-headline.php | 4 ++-- archeo/inc/patterns/image-with-description.php | 2 +- .../patterns/image-with-headline-description.php | 16 ++++++++++++---- .../image-with-headline-on-dark-background.php | 2 +- .../image-with-headline-separate-description.php | 4 ++-- .../patterns/layered-images-with-headline.php | 2 +- .../patterns/layout-with-two-images-and-text.php | 6 +++--- .../simple-list-of-posts-with-background.php | 2 +- archeo/inc/patterns/simple-list-of-posts.php | 2 +- 11 files changed, 29 insertions(+), 18 deletions(-) diff --git a/archeo/inc/block-patterns.php b/archeo/inc/block-patterns.php index d709d678b..0c15584c7 100644 --- a/archeo/inc/block-patterns.php +++ b/archeo/inc/block-patterns.php @@ -14,7 +14,10 @@ */ function archeo_register_block_patterns() { $block_pattern_categories = array( - 'pages' => array( 'label' => __( 'Pages', 'archeo' ) ), + 'images' => array( 'label' => __( 'Images', 'archeo' ) ), + 'featured' => array( 'label' => __( 'Featured', 'archeo' ) ), + 'footer' => array( 'label' => __( 'Footers', 'archeo' ) ), + 'query' => array( 'label' => __( 'Query', 'archeo' ) ), ); /** diff --git a/archeo/inc/patterns/headline-over-dark-image.php b/archeo/inc/patterns/headline-over-dark-image.php index 3d06fbc77..0e77d9dda 100644 --- a/archeo/inc/patterns/headline-over-dark-image.php +++ b/archeo/inc/patterns/headline-over-dark-image.php @@ -4,7 +4,7 @@ */ return array( 'title' => __( 'Headline over dark image', 'archeo' ), - 'categories' => array( 'pages' ), + 'categories' => array( 'images' ), 'content' => '
' . esc_attr__( 'Photo of the Governor\'s Palace at Uxmal', 'archeo' ) . '

' . wp_kses_post( __( 'Governor\'s
palace at Uxmal,
detail of the
main gate', 'archeo' ) ) . '

diff --git a/archeo/inc/patterns/image-with-description-and-right-aligned-headline.php b/archeo/inc/patterns/image-with-description-and-right-aligned-headline.php index 3440396e7..6af514f37 100644 --- a/archeo/inc/patterns/image-with-description-and-right-aligned-headline.php +++ b/archeo/inc/patterns/image-with-description-and-right-aligned-headline.php @@ -4,7 +4,7 @@ */ return array( 'title' => __( 'Image with description and right-aligned headline', 'archeo' ), - 'categories' => array( 'pages' ), + 'categories' => array( 'images' ), 'content' => '
@@ -26,7 +26,7 @@ return array( -

' . esc_html__( 'Uxmal is an ancient Maya city located in present-day Mexico. It is considered one of the most important sites of Maya culture.', 'archeo' ) . '

+

' . esc_html__( 'Uxmal is an ancient Maya city located in present-day Mexico. It is considered one of the most important sites of Mayan culture.', 'archeo' ) . '

', diff --git a/archeo/inc/patterns/image-with-description.php b/archeo/inc/patterns/image-with-description.php index c54330dda..e27893b8d 100644 --- a/archeo/inc/patterns/image-with-description.php +++ b/archeo/inc/patterns/image-with-description.php @@ -4,7 +4,7 @@ */ return array( 'title' => __( 'Image with description', 'archeo' ), - 'categories' => array( 'pages' ), + 'categories' => array( 'images' ), 'content' => '
diff --git a/archeo/inc/patterns/image-with-headline-description.php b/archeo/inc/patterns/image-with-headline-description.php index 963b2a8fe..fc1ed8320 100644 --- a/archeo/inc/patterns/image-with-headline-description.php +++ b/archeo/inc/patterns/image-with-headline-description.php @@ -4,16 +4,24 @@ */ return array( 'title' => __( 'Image with headline and description', 'archeo' ), - 'categories' => array( 'pages' ), + 'categories' => array( 'featured', 'images' ), 'content' => '
' . esc_attr__( 'Chahk: rain deity', 'archeo' ) . '

' . wp_kses_post( __( 'Chahk:
Rain
deity', 'archeo' ) ) . '

- -

' . wp_kses_post( __( 'Chaahk is shown here clutching
his axe, ready to strike rain
thunder and rain from the
clouds. This sculpture was
likely created in the Puuc hills
of Yucatan and Campeche.', 'archeo' ) ) . '

-
+ +
+
+ + + +
+

' . esc_html__( 'Chaahk is shown here clutching his axe, ready to strike rain and thunder from the clouds. This sculpture was likely created in the Puuc hills of Yucatan and Campeche.', 'archeo' ) . '

+
+
+
', ); diff --git a/archeo/inc/patterns/image-with-headline-on-dark-background.php b/archeo/inc/patterns/image-with-headline-on-dark-background.php index 49e925705..dbeb4c682 100644 --- a/archeo/inc/patterns/image-with-headline-on-dark-background.php +++ b/archeo/inc/patterns/image-with-headline-on-dark-background.php @@ -4,7 +4,7 @@ */ return array( 'title' => __( 'Image with headline on dark background', 'archeo' ), - 'categories' => array( 'pages' ), + 'categories' => array( 'images' ), 'content' => '
' . esc_attr__( 'Photo of gigantic figure at Izamal', 'archeo' ) . '
diff --git a/archeo/inc/patterns/image-with-headline-separate-description.php b/archeo/inc/patterns/image-with-headline-separate-description.php index 2bb535d56..90cc1f944 100644 --- a/archeo/inc/patterns/image-with-headline-separate-description.php +++ b/archeo/inc/patterns/image-with-headline-separate-description.php @@ -4,10 +4,10 @@ */ return array( 'title' => __( 'Image with headline and separate description', 'archeo' ), - 'categories' => array( 'pages' ), + 'categories' => array( 'images' ), 'content' => '
' . esc_attr__( 'Photo of House of the dwarf, in Uxmal', 'archeo' ) . '
-

' . wp_kses_post( __( 'House of
the dwarf,
in Uxmal', 'archeo' ) ) . '

+

' . wp_kses_post( __( 'House of
the dwarf
in Uxmal', 'archeo' ) ) . '

diff --git a/archeo/inc/patterns/layered-images-with-headline.php b/archeo/inc/patterns/layered-images-with-headline.php index 7ab44661f..ea0d6f589 100644 --- a/archeo/inc/patterns/layered-images-with-headline.php +++ b/archeo/inc/patterns/layered-images-with-headline.php @@ -4,7 +4,7 @@ */ return array( 'title' => __( 'Layered images with headline', 'archeo' ), - 'categories' => array( 'pages' ), + 'categories' => array( 'featured', 'images' ), 'content' => '
' . esc_attr__( 'Photo of Palace of the Circus', 'archeo' ) . '
diff --git a/archeo/inc/patterns/layout-with-two-images-and-text.php b/archeo/inc/patterns/layout-with-two-images-and-text.php index 484e7d5d3..6b7b08d96 100644 --- a/archeo/inc/patterns/layout-with-two-images-and-text.php +++ b/archeo/inc/patterns/layout-with-two-images-and-text.php @@ -4,7 +4,7 @@ */ return array( 'title' => __( 'Layout with two images and text', 'archeo' ), - 'categories' => array( 'pages' ), + 'categories' => array( 'featured', 'images' ), 'content' => '
' . __( 'Photo of the Pyramid of the Magician, at Uxmal', 'archeo' ) . '
@@ -13,7 +13,7 @@ return array( < -

' . wp_kses_post( __( 'The Pyramid of the
Magician, at Uxmal', 'archeo' ) ) . '

+

' . wp_kses_post( __( 'The Pyramid of the
Magician at Uxmal', 'archeo' ) ) . '

@@ -27,7 +27,7 @@ return array( -

' . __( 'Uxmal is an ancient Maya city located in present-day Mexico. It is considered one of the most important archaeological sites of Maya culture.', 'archeo' ) . '

+

' . __( 'Uxmal is an ancient Maya city located in present-day Mexico. It is considered one of the most important archaeological sites of Mayan culture.', 'archeo' ) . '

diff --git a/archeo/inc/patterns/simple-list-of-posts-with-background.php b/archeo/inc/patterns/simple-list-of-posts-with-background.php index ecb068cd6..6eb10d001 100644 --- a/archeo/inc/patterns/simple-list-of-posts-with-background.php +++ b/archeo/inc/patterns/simple-list-of-posts-with-background.php @@ -4,7 +4,7 @@ */ return array( 'title' => __( 'Simple list of posts with title and background', 'archeo' ), - 'categories' => array( 'pages' ), + 'categories' => array( 'featured', 'query' ), 'content' => '