From d0c3f2a2117e2bebb73236c4b82cf0f0761244e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Thu, 27 Jul 2023 11:15:52 +0200 Subject: [PATCH 1/2] Unify links to WordPress and WooCommerce websites in patterns --- patterns/footer-large-dark.php | 12 ++++-------- patterns/footer-large.php | 12 ++++-------- patterns/footer-simple-dark.php | 10 +++++++++- patterns/footer-simple-menu-and-cart.php | 2 +- patterns/footer-simple.php | 10 +++++++++- patterns/footer-with-2-menus-dark.php | 10 +++++++++- patterns/footer-with-2-menus.php | 10 +++++++++- patterns/footer-with-3-menus.php | 9 +++++---- 8 files changed, 50 insertions(+), 25 deletions(-) diff --git a/patterns/footer-large-dark.php b/patterns/footer-large-dark.php index 22cd011794b..78243738bbc 100644 --- a/patterns/footer-large-dark.php +++ b/patterns/footer-large-dark.php @@ -80,14 +80,10 @@ class="wp-block-group alignfull has-background-color has-white-color has-black-b

%2$s', 'woo-gutenberg-products-block' ), - 'https://woocommerce.com/', - 'WooCommerce' - ), - array( 'a' => array_fill_keys( array( 'href', 'target' ), true ) ) + echo sprintf( + /* translators: %s WooCommerce link */ + esc_html__( 'Built with %s', 'woo-gutenberg-products-block' ), + 'WooCommerce' ); ?>

diff --git a/patterns/footer-large.php b/patterns/footer-large.php index 159898c5f77..d710013e715 100644 --- a/patterns/footer-large.php +++ b/patterns/footer-large.php @@ -79,14 +79,10 @@

%2$s', 'woo-gutenberg-products-block' ), - 'https://woocommerce.com/', - 'WooCommerce' - ), - array( 'a' => array_fill_keys( array( 'href', 'target' ), true ) ) + echo sprintf( + /* translators: %s WooCommerce link */ + esc_html__( 'Built with %s', 'woo-gutenberg-products-block' ), + 'WooCommerce' ); ?>

diff --git a/patterns/footer-simple-dark.php b/patterns/footer-simple-dark.php index 2a64996e9e4..a5ecd171bda 100644 --- a/patterns/footer-simple-dark.php +++ b/patterns/footer-simple-dark.php @@ -50,7 +50,15 @@ -

Built with WooCommerce

+

+ WooCommerce' + ); + ?> +

diff --git a/patterns/footer-simple-menu-and-cart.php b/patterns/footer-simple-menu-and-cart.php index fc7a98070e5..f8b6b1a19f1 100644 --- a/patterns/footer-simple-menu-and-cart.php +++ b/patterns/footer-simple-menu-and-cart.php @@ -42,7 +42,7 @@

WordPress', 'WooCommerce' ), array() ); + echo sprintf( esc_html__( 'Powered by %1$s with %2$s', 'woo-gutenberg-products-block' ), 'WordPress', 'WooCommerce' ); ?>

diff --git a/patterns/footer-simple.php b/patterns/footer-simple.php index d07a9e93c33..61aca316582 100644 --- a/patterns/footer-simple.php +++ b/patterns/footer-simple.php @@ -50,7 +50,15 @@ -

Built with WooCommerce

+

+ WooCommerce' + ); + ?> +

diff --git a/patterns/footer-with-2-menus-dark.php b/patterns/footer-with-2-menus-dark.php index c494a0c6061..c1f0645f17b 100644 --- a/patterns/footer-with-2-menus-dark.php +++ b/patterns/footer-with-2-menus-dark.php @@ -67,7 +67,15 @@ -

Built with WooCommerce

+

+ WooCommerce' + ); + ?> +

diff --git a/patterns/footer-with-2-menus.php b/patterns/footer-with-2-menus.php index 8664dcc09c5..1ceb1ca81b3 100644 --- a/patterns/footer-with-2-menus.php +++ b/patterns/footer-with-2-menus.php @@ -66,7 +66,15 @@ -

Built with WooCommerce

+

+ WooCommerce' + ); + ?> +

diff --git a/patterns/footer-with-3-menus.php b/patterns/footer-with-3-menus.php index b75e937afe3..1cb486cc1a0 100644 --- a/patterns/footer-with-3-menus.php +++ b/patterns/footer-with-3-menus.php @@ -57,12 +57,13 @@

WordPress', - 'WooCommerce' + 'WordPress', + 'WooCommerce' ); ?>

From 18900daa821efe9e1232c1a507146c1599337820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Fri, 28 Jul 2023 09:47:49 +0200 Subject: [PATCH 2/2] Add missing em closing tag --- patterns/footer-with-2-menus-dark.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patterns/footer-with-2-menus-dark.php b/patterns/footer-with-2-menus-dark.php index c1f0645f17b..3bdcff70da2 100644 --- a/patterns/footer-with-2-menus-dark.php +++ b/patterns/footer-with-2-menus-dark.php @@ -75,7 +75,7 @@ 'WooCommerce' ); ?> -

+