mirror of
https://github.com/woocommerce/storefront.git
synced 2025-08-20 04:00:29 +08:00
Move privacy link outside credit link conditional
This commit is contained in:
parent
8d64bc07f1
commit
ef5bb52244
1 changed files with 14 additions and 8 deletions
|
@ -134,17 +134,23 @@ if ( ! function_exists( 'storefront_credit' ) ) {
|
|||
* @return void
|
||||
*/
|
||||
function storefront_credit() {
|
||||
$links_output = '';
|
||||
|
||||
if ( apply_filters( 'storefront_credit_link', true ) ) {
|
||||
$links_output .= '<a href="https://woocommerce.com" target="_blank" title="' . esc_attr__( 'WooCommerce - The Best eCommerce Platform for WordPress', 'storefront' ) . '" rel="author">' . esc_html__( 'Built with Storefront & WooCommerce', 'storefront' ) . '</a>.';
|
||||
}
|
||||
|
||||
if ( apply_filters( 'storefront_privacy_policy_link', true ) && function_exists( 'the_privacy_policy_link' ) ) {
|
||||
$separator = '<span role="separator" aria-hidden="true"></span>';
|
||||
$links_output = get_the_privacy_policy_link( '', ( ! empty( $links_output ) ? $separator : '' ) ) . $links_output;
|
||||
}
|
||||
?>
|
||||
<div class="site-info">
|
||||
<?php echo esc_html( apply_filters( 'storefront_copyright_text', $content = '© ' . get_bloginfo( 'name' ) . ' ' . date( 'Y' ) ) ); ?>
|
||||
<?php if ( apply_filters( 'storefront_credit_link', true ) ) { ?>
|
||||
<br />
|
||||
<?php
|
||||
if ( apply_filters( 'storefront_privacy_policy_link', true ) && function_exists( 'the_privacy_policy_link' ) ) {
|
||||
the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
|
||||
}
|
||||
?>
|
||||
<?php echo '<a href="https://woocommerce.com" target="_blank" title="' . esc_attr__( 'WooCommerce - The Best eCommerce Platform for WordPress', 'storefront' ) . '" rel="author">' . esc_html__( 'Built with Storefront & WooCommerce', 'storefront' ) . '</a>.'; ?>
|
||||
|
||||
<?php if ( ! empty( $links_output ) ) { ?>
|
||||
<br />
|
||||
<?php echo wp_kses_post( $links_output ); ?>
|
||||
<?php } ?>
|
||||
</div><!-- .site-info -->
|
||||
<?php
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue