Bundled Theme: Add privacy policy link to Twenty Twenty footer.

If a privacy policy is set, its page is now linked in the footer.

Follow-up to [46271].

Props audrasjb, justinahinon, kapilpaul, ryelle, sabernhardt.
Fixes #53446.

git-svn-id: https://develop.svn.wordpress.org/trunk@52023 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Tonya Mork 2021-11-05 22:27:30 +00:00
parent 76cf854334
commit c3d8812856
3 changed files with 42 additions and 4 deletions

View File

@ -28,6 +28,12 @@
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
</p><!-- .footer-copyright -->
<?php
if ( function_exists( 'the_privacy_policy_link' ) ) {
the_privacy_policy_link( '<p class="privacy-policy">', '</p>' );
}
?>
<p class="powered-by-wordpress">
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwenty' ) ); ?>">
<?php _e( 'Powered by WordPress', 'twentytwenty' ); ?>

View File

@ -4464,15 +4464,22 @@ ul.footer-social li {
}
.footer-copyright a,
.privacy-policy a,
.powered-by-wordpress a {
color: inherit;
}
.privacy-policy,
.powered-by-wordpress,
.to-the-top {
color: #6d6d6d;
}
a.to-the-top {
margin-right: 2.4rem;
white-space: nowrap;
}
a.to-the-top > * {
pointer-events: none;
}
@ -4487,6 +4494,10 @@ a.to-the-top > * {
margin: 0 2.4rem 0 0;
}
.privacy-policy {
margin: 1.2rem 0 0;
}
.to-the-top-long {
display: none;
}
@ -5570,14 +5581,15 @@ a.to-the-top > * {
.footer-credits {
display: flex;
flex-wrap: wrap;
}
.footer-copyright {
font-weight: 700;
}
.powered-by-wordpress {
display: block;
.privacy-policy {
margin: 0 2.4rem 0 0;
}
.to-the-top-long {
@ -6028,6 +6040,10 @@ a.to-the-top > * {
.footer-menu li {
margin: 1.2rem 2.4rem 0 0;
}
.powered-by-wordpress {
display: block;
}
}

View File

@ -4498,15 +4498,22 @@ ul.footer-social li {
}
.footer-copyright a,
.privacy-policy a,
.powered-by-wordpress a {
color: inherit;
}
.privacy-policy,
.powered-by-wordpress,
.to-the-top {
color: #6d6d6d;
}
a.to-the-top {
margin-left: 2.4rem;
white-space: nowrap;
}
a.to-the-top > * {
pointer-events: none;
}
@ -4521,6 +4528,10 @@ a.to-the-top > * {
margin: 0 0 0 2.4rem;
}
.privacy-policy {
margin: 1.2rem 0 0;
}
.to-the-top-long {
display: none;
}
@ -5632,14 +5643,15 @@ a.to-the-top > * {
.footer-credits {
display: flex;
flex-wrap: wrap;
}
.footer-copyright {
font-weight: 700;
}
.powered-by-wordpress {
display: block;
.privacy-policy {
margin: 0 0 0 2.4rem;
}
.to-the-top-long {
@ -6118,6 +6130,10 @@ a.to-the-top > * {
.footer-menu li {
margin: 1.2rem 0 0 2.4rem;
}
.powered-by-wordpress {
display: block;
}
}