mirror of
https://github.com/woocommerce/storefront.git
synced 2025-08-20 04:00:29 +08:00
Add privacy link to footer
This commit is contained in:
parent
207feac0d1
commit
dd9667b090
2 changed files with 15 additions and 1 deletions
|
@ -455,6 +455,14 @@ body {
|
|||
|
||||
.site-info {
|
||||
padding: ms(5) 0;
|
||||
|
||||
span[role=separator] {
|
||||
padding: 0 ms(-6) 0 ms(-5);
|
||||
|
||||
&::before {
|
||||
content: '\007c';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -127,7 +127,13 @@ if ( ! function_exists( 'storefront_credit' ) ) {
|
|||
<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 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>' ?>
|
||||
<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 } ?>
|
||||
</div><!-- .site-info -->
|
||||
<?php
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue