diff --git a/inc/block-patterns.php b/inc/block-patterns.php index 5abcc8f3..6fcf0946 100644 --- a/inc/block-patterns.php +++ b/inc/block-patterns.php @@ -8,6 +8,10 @@ if ( ! function_exists( 'twentytwentytwo_register_block_patterns' ) ) : function twentytwentytwo_register_block_patterns() { if ( function_exists( 'register_block_pattern_category' ) ) { + register_block_pattern_category( + 'twentytwentytwo-footers', + array( 'label' => __( 'Twenty Twenty-Two Footers', 'twentytwentytwo' ) ) + ); register_block_pattern_category( 'twentytwentytwo-headers', array( 'label' => __( 'Twenty Twenty-Two Headers', 'twentytwentytwo' ) ) @@ -19,6 +23,18 @@ function twentytwentytwo_register_block_patterns() { } if ( function_exists( 'register_block_pattern' ) ) { $block_patterns = array( + 'footer-default', + 'footer-dark', + 'footer-logo', + 'footer-navigation', + 'footer-title-tagline-social', + 'footer-title-tagline-social-dark', + 'footer-social-copyright', + 'footer-navigation-copyright', + 'footer-about-title-logo', + 'footer-query-title-citation', + 'footer-query-images-title-citation', + 'footer-blog', 'header-default', 'header-with-tagline', 'header-text-only-with-stacked-tagline', diff --git a/inc/patterns/footer-about-title-logo.php b/inc/patterns/footer-about-title-logo.php new file mode 100644 index 00000000..ea35b054 --- /dev/null +++ b/inc/patterns/footer-about-title-logo.php @@ -0,0 +1,32 @@ + __( 'Footer with text, title, and logo', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-footers' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
+
+
+

' . esc_html__( 'ABOUT US', 'twentytwentytwo' ) . '

+ + + +

' . esc_html__( 'We are a rogue collective of bird watchers. We’ve been known to sneak through fences, climb perimeter walls, and generally trespass in order to observe the rarest of birds.', 'twentytwentytwo' ) . '

+ + + + + + +
+ + + +
+
+
+ ', +); diff --git a/inc/patterns/footer-blog.php b/inc/patterns/footer-blog.php new file mode 100644 index 00000000..e6fd7be9 --- /dev/null +++ b/inc/patterns/footer-blog.php @@ -0,0 +1,50 @@ + __( 'Blog footer', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-footers' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
+
+
+

' . esc_html__( 'ABOUT US', 'twentytwentytwo' ) . '

+ + + +

' . esc_html__( 'We are a rogue collective of bird watchers. We’ve been known to sneak through fences, climb perimeter walls, and generally trespass in order to observe the rarest of birds.', 'twentytwentytwo' ) . '

+
+ + + +
+

' . esc_html__( 'LATEST POSTS', 'twentytwentytwo' ) . '

+ + +
+ + + +
+

' . esc_html__( 'CATEGORIES', 'twentytwentytwo' ) . '

+ + +
+
+ + + + + + + +
+ + +

' . esc_html__( 'Proudly powered by ', 'twentytwentyone' ) . 'WordPress

+
+
+ ', +); diff --git a/inc/patterns/footer-dark.php b/inc/patterns/footer-dark.php new file mode 100644 index 00000000..f5d153c4 --- /dev/null +++ b/inc/patterns/footer-dark.php @@ -0,0 +1,18 @@ + __( 'Dark footer with title and citation)', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-footers' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' + + ', +); diff --git a/inc/patterns/footer-default.php b/inc/patterns/footer-default.php new file mode 100644 index 00000000..24f4024b --- /dev/null +++ b/inc/patterns/footer-default.php @@ -0,0 +1,18 @@ + __( 'Default footer', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-footers' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
+
+ + +

' . esc_html__( 'Proudly powered by ', 'twentytwentytwo' ) . 'WordPress

+
+
+ ', +); diff --git a/inc/patterns/footer-logo.php b/inc/patterns/footer-logo.php new file mode 100644 index 00000000..bc3b42a3 --- /dev/null +++ b/inc/patterns/footer-logo.php @@ -0,0 +1,18 @@ + __( 'Footer with logo and citation', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-footers' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
+
+ + +

' . esc_html__( 'Proudly powered by ', 'twentytwentytwo' ) . 'WordPress

+
+
+ ', +); diff --git a/inc/patterns/footer-navigation-copyright.php b/inc/patterns/footer-navigation-copyright.php new file mode 100644 index 00000000..8f5666ec --- /dev/null +++ b/inc/patterns/footer-navigation-copyright.php @@ -0,0 +1,22 @@ + __( 'Footer with navigation and copyright', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-footers' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
+ + + + + + + + +

' . esc_html__( '© Site Title', 'twentytwentytwo' ) . '

+
+ ', +); diff --git a/inc/patterns/footer-navigation.php b/inc/patterns/footer-navigation.php new file mode 100644 index 00000000..cd460b4f --- /dev/null +++ b/inc/patterns/footer-navigation.php @@ -0,0 +1,20 @@ + __( 'Footer with navigation and citation', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-footers' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
+
+ + + + +

' . esc_html__( 'Proudly powered by ', 'twentytwentytwo' ) . 'WordPress

+
+
+ ', +); diff --git a/inc/patterns/footer-query-images-title-citation.php b/inc/patterns/footer-query-images-title-citation.php new file mode 100644 index 00000000..5b61f1df --- /dev/null +++ b/inc/patterns/footer-query-images-title-citation.php @@ -0,0 +1,34 @@ + __( 'Footer with query, featured images, title, and citation', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-footers' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' + + ', +); diff --git a/inc/patterns/footer-query-title-citation.php b/inc/patterns/footer-query-title-citation.php new file mode 100644 index 00000000..ccb5cd9d --- /dev/null +++ b/inc/patterns/footer-query-title-citation.php @@ -0,0 +1,32 @@ + __( 'Footer with query, title, and citation', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-footers' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' + + ', +); diff --git a/inc/patterns/footer-social-copyright.php b/inc/patterns/footer-social-copyright.php new file mode 100644 index 00000000..5351d967 --- /dev/null +++ b/inc/patterns/footer-social-copyright.php @@ -0,0 +1,26 @@ + __( 'Footer with social links and copyright', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-footers' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
+ + + + + + + + +

' . esc_html__( '© Site Title', 'twentytwentytwo' ) . '

+
+ ', +); diff --git a/inc/patterns/footer-title-tagline-social-dark.php b/inc/patterns/footer-title-tagline-social-dark.php new file mode 100644 index 00000000..345db6fe --- /dev/null +++ b/inc/patterns/footer-title-tagline-social-dark.php @@ -0,0 +1,26 @@ + __( 'Footer with title, tagline, and social links (Dark)', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-footers' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' + + ', +); diff --git a/inc/patterns/footer-title-tagline-social.php b/inc/patterns/footer-title-tagline-social.php new file mode 100644 index 00000000..4ebbc91f --- /dev/null +++ b/inc/patterns/footer-title-tagline-social.php @@ -0,0 +1,26 @@ + __( 'Footer with title, tagline, and social links', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-footers' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
+
+
+ +
+ + + + +
+
+ ', +);