Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Unify links to WordPress and WooCommerce websites in patterns #10380

Merged
merged 2 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions patterns/footer-large-dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,10 @@ class="wp-block-group alignfull has-background-color has-white-color has-black-b
<!-- wp:paragraph -->
<p><em>
<?php
echo wp_kses(
sprintf(
/* translators: %1$s is a link to WooCommerce.com, %2$s is the name of the plugin. */
__( 'Built with <a href="%1$s" target="_blank">%2$s</a>', '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' ),
'<a href="https://woocommerce.com/" target="_blank" rel="noreferrer nofollow">WooCommerce</a>'
);
?>
</em></p>
Expand Down
12 changes: 4 additions & 8 deletions patterns/footer-large.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,10 @@
<!-- wp:paragraph -->
<p><em>
<?php
echo wp_kses(
sprintf(
/* translators: %1$s is a link to WooCommerce.com, %2$s is the name of the plugin. */
__( 'Built with <a href="%1$s" target="_blank">%2$s</a>', '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' ),
'<a href="https://woocommerce.com/" target="_blank" rel="noreferrer nofollow">WooCommerce</a>'
);
?>
</em></p>
Expand Down
10 changes: 9 additions & 1 deletion patterns/footer-simple-dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@
<!-- /wp:group -->

<!-- wp:paragraph {"style":{"typography":{"fontSize":"14px"}}} -->
<p style="font-size:14px"><em>Built with <a href="https://woocommerce.com/">WooCommerce</a> </em></p>
<p style="font-size:14px"><em>
<?php
echo sprintf(
/* translators: %s WooCommerce link */
esc_html__( 'Built with %s', 'woo-gutenberg-products-block' ),
'<a href="https://woocommerce.com/" target="_blank" rel="noreferrer nofollow">WooCommerce</a>'
);
?>
</em></p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/footer-simple-menu-and-cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<p class="has-text-align-center">
<?php
/* translators: 1: WordPress link, 2: WooCommerce link */
echo wp_kses( sprintf( __( 'Powered by %1$s with %2$s', 'woo-gutenberg-products-block' ), '<a href="https://wordpress.org">WordPress</a>', '<a href="https://woocommerce.com">WooCommerce</a>' ), array() );
echo sprintf( esc_html__( 'Powered by %1$s with %2$s', 'woo-gutenberg-products-block' ), '<a href="https://wordpress.org" target="_blank" rel="noreferrer nofollow">WordPress</a>', '<a href="https://woocommerce.com" target="_blank" rel="noreferrer nofollow">WooCommerce</a>' );
?>
</p>
<!-- /wp:paragraph -->
Expand Down
10 changes: 9 additions & 1 deletion patterns/footer-simple.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@
<!-- /wp:group -->

<!-- wp:paragraph {"style":{"typography":{"fontSize":"14px"}}} -->
<p style="font-size:14px"><em>Built with <a href="https://woocommerce.com/">WooCommerce</a> </em></p>
<p style="font-size:14px"><em>
<?php
echo sprintf(
/* translators: %s WooCommerce link */
esc_html__( 'Built with %s', 'woo-gutenberg-products-block' ),
'<a href="https://woocommerce.com/" target="_blank" rel="noreferrer nofollow">WooCommerce</a>'
);
?>
</em></p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
Expand Down
10 changes: 9 additions & 1 deletion patterns/footer-with-2-menus-dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,15 @@
<!-- /wp:group -->

<!-- wp:paragraph {"style":{"typography":{"fontSize":"14px"}}} -->
<p style="font-size:14px"><em>Built with <a href="https://woocommerce.com/">WooCommerce</a> </em></p>
<p style="font-size:14px"><em>
<?php
echo sprintf(
/* translators: %s WooCommerce link */
esc_html__( 'Built with %s', 'woo-gutenberg-products-block' ),
'<a href="https://woocommerce.com/" target="_blank" rel="noreferrer nofollow">WooCommerce</a>'
);
?>
</p>
Aljullu marked this conversation as resolved.
Show resolved Hide resolved
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
Expand Down
10 changes: 9 additions & 1 deletion patterns/footer-with-2-menus.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,15 @@
<!-- /wp:group -->

<!-- wp:paragraph {"style":{"typography":{"fontSize":"14px"}}} -->
<p style="font-size:14px"><em>Built with <a href="https://woocommerce.com/">WooCommerce</a> </em></p>
<p style="font-size:14px"><em>
<?php
echo sprintf(
/* translators: %s WooCommerce link */
esc_html__( 'Built with %s', 'woo-gutenberg-products-block' ),
'<a href="https://woocommerce.com/" target="_blank" rel="noreferrer nofollow">WooCommerce</a>'
);
?>
</em></p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
Expand Down
9 changes: 5 additions & 4 deletions patterns/footer-with-3-menus.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,13 @@
<p class="has-text-align-right">
<?php
echo sprintf(
esc_html(
/* translators: Footer powered by text. %1$s being WordPress, %2$s being WooCommerce */
__( 'Powered by %1$s with %2$s', 'woo-gutenberg-products-block' )
esc_html__(
'Powered by %1$s with %2$s',
'woo-gutenberg-products-block'
),
'<a href="https://wordpress.org">WordPress</a>',
'<a href="https://woocommerce.com">WooCommerce</a>'
'<a href="https://wordpress.org" target="_blank" rel="noreferrer nofollow">WordPress</a>',
'<a href="https://woocommerce.com" target="_blank" rel="noreferrer nofollow">WooCommerce</a>'
);
?>
</p>
Expand Down