Add privacy link to footer

This commit is contained in:
Tiago Noronha 2018-05-10 12:55:50 +01:00
parent 207feac0d1
commit dd9667b090
2 changed files with 15 additions and 1 deletions

View file

@ -455,6 +455,14 @@ body {
.site-info {
padding: ms(5) 0;
span[role=separator] {
padding: 0 ms(-6) 0 ms(-5);
&::before {
content: '\007c';
}
}
}
/**

View file

@ -127,7 +127,13 @@ if ( ! function_exists( 'storefront_credit' ) ) {
<div class="site-info">
<?php echo esc_html( apply_filters( 'storefront_copyright_text', $content = '&copy; ' . 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 &amp; 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 &amp; WooCommerce', 'storefront' ) . '</a>.' ?>
<?php } ?>
</div><!-- .site-info -->
<?php