mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-01-30 05:27:40 +00:00
Twenty Twenty-One: Add privacy policy link to footer.
If a privacy policy is set, the page links to the footer of the site. As done in the other bundled themes, this link is added using `the_privacy_policy_link()`. Follow-up to [49216]. Props ryelle, desrosj, kapilpaul, sabernhardt, audrasjb, justinahinon. Fixes #53445. git-svn-id: https://develop.svn.wordpress.org/trunk@52082 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
adcc2d3ee0
commit
64c6beb7f9
@ -5573,6 +5573,10 @@ table.wp-calendar-table caption {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.site-footer > .site-info .privacy-policy {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.site-footer > .site-info .powered-by {
|
||||
margin-top: 15px;
|
||||
}
|
||||
@ -5583,10 +5587,19 @@ table.wp-calendar-table caption {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.site-footer > .site-info .site-name {
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
.site-footer > .site-info .privacy-policy,
|
||||
.site-footer > .site-info .powered-by {
|
||||
margin-top: initial;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.site-footer > .site-info .privacy-policy + .powered-by {
|
||||
margin-left: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.site-footer > .site-info a {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -31,6 +31,7 @@
|
||||
font-size: var(--branding--title--font-size);
|
||||
}
|
||||
|
||||
.privacy-policy,
|
||||
.powered-by {
|
||||
margin-top: calc(0.5 * var(--global--spacing-vertical));
|
||||
}
|
||||
@ -39,10 +40,19 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.site-name {
|
||||
margin-right: calc(0.5 * var(--global--spacing-vertical));
|
||||
}
|
||||
|
||||
.privacy-policy,
|
||||
.powered-by {
|
||||
margin-top: initial;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.privacy-policy + .powered-by {
|
||||
margin-left: calc(0.5 * var(--global--spacing-vertical));
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
|
||||
@ -53,6 +53,13 @@
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div><!-- .site-name -->
|
||||
|
||||
<?php
|
||||
if ( function_exists( 'the_privacy_policy_link' ) ) {
|
||||
the_privacy_policy_link( '<div class="privacy-policy">', '</div>' );
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="powered-by">
|
||||
<?php
|
||||
printf(
|
||||
|
||||
@ -3975,6 +3975,7 @@ table.wp-calendar-table caption {
|
||||
font-size: var(--branding--title--font-size);
|
||||
}
|
||||
|
||||
.site-footer > .site-info .privacy-policy,
|
||||
.site-footer > .site-info .powered-by {
|
||||
margin-top: calc(0.5 * var(--global--spacing-vertical));
|
||||
}
|
||||
@ -3985,10 +3986,19 @@ table.wp-calendar-table caption {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.site-footer > .site-info .site-name {
|
||||
margin-left: calc(0.5 * var(--global--spacing-vertical));
|
||||
}
|
||||
|
||||
.site-footer > .site-info .privacy-policy,
|
||||
.site-footer > .site-info .powered-by {
|
||||
margin-top: initial;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.site-footer > .site-info .privacy-policy + .powered-by {
|
||||
margin-right: calc(0.5 * var(--global--spacing-vertical));
|
||||
}
|
||||
}
|
||||
|
||||
.site-footer > .site-info a {
|
||||
|
||||
@ -3995,6 +3995,7 @@ table.wp-calendar-table caption {
|
||||
font-size: var(--branding--title--font-size);
|
||||
}
|
||||
|
||||
.site-footer > .site-info .privacy-policy,
|
||||
.site-footer > .site-info .powered-by {
|
||||
margin-top: calc(0.5 * var(--global--spacing-vertical));
|
||||
}
|
||||
@ -4005,10 +4006,19 @@ table.wp-calendar-table caption {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.site-footer > .site-info .site-name {
|
||||
margin-right: calc(0.5 * var(--global--spacing-vertical));
|
||||
}
|
||||
|
||||
.site-footer > .site-info .privacy-policy,
|
||||
.site-footer > .site-info .powered-by {
|
||||
margin-top: initial;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.site-footer > .site-info .privacy-policy + .powered-by {
|
||||
margin-left: calc(0.5 * var(--global--spacing-vertical));
|
||||
}
|
||||
}
|
||||
|
||||
.site-footer > .site-info a {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user