diff --git a/block-template-parts/footer.html b/block-template-parts/footer.html index 6a83627c..3b219eb1 100644 --- a/block-template-parts/footer.html +++ b/block-template-parts/footer.html @@ -1,7 +1,7 @@
- -

Proudly Powered by WordPress

-
+ + + \ No newline at end of file diff --git a/inc/block-patterns.php b/inc/block-patterns.php index 6fcf0946..82923603 100644 --- a/inc/block-patterns.php +++ b/inc/block-patterns.php @@ -4,7 +4,6 @@ * * @since 1.0 */ - if ( ! function_exists( 'twentytwentytwo_register_block_patterns' ) ) : function twentytwentytwo_register_block_patterns() { if ( function_exists( 'register_block_pattern_category' ) ) { @@ -20,6 +19,10 @@ function twentytwentytwo_register_block_patterns() { 'twentytwentytwo-query', array( 'label' => __( 'Twenty Twenty-Two Posts', 'twentytwentytwo' ) ) ); + register_block_pattern_category( + 'twentytwentytwo-i18n', + array( 'label' => __( 'Twenty Twenty-Two i18n', 'twentytwentytwo' ) ) + ); } if ( function_exists( 'register_block_pattern' ) ) { $block_patterns = array( @@ -57,6 +60,7 @@ function twentytwentytwo_register_block_patterns() { 'query-image-grid', 'query-large-titles', 'query-irregular-grid', + 'wordpress-credit', ); foreach ( $block_patterns as $block_pattern ) { diff --git a/inc/patterns/wordpress-credit.php b/inc/patterns/wordpress-credit.php new file mode 100644 index 00000000..b31f450b --- /dev/null +++ b/inc/patterns/wordpress-credit.php @@ -0,0 +1,12 @@ + __( 'WordPress Credit', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo-i18n' ), + 'content' => ' +

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

+', +);