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. Built from https://develop.svn.wordpress.org/trunk@52082 git-svn-id: http://core.svn.wordpress.org/trunk@51674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b04ed7ed22
commit
2c874cfabc
|
@ -5573,6 +5573,10 @@ table.wp-calendar-table caption {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.site-footer > .site-info .privacy-policy {
|
||||||
|
margin-top: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
.site-footer > .site-info .powered-by {
|
.site-footer > .site-info .powered-by {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
|
@ -5583,10 +5587,19 @@ table.wp-calendar-table caption {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.site-footer > .site-info .site-name {
|
||||||
|
margin-right: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-footer > .site-info .privacy-policy,
|
||||||
.site-footer > .site-info .powered-by {
|
.site-footer > .site-info .powered-by {
|
||||||
margin-top: initial;
|
margin-top: initial;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.site-footer > .site-info .privacy-policy + .powered-by {
|
||||||
|
margin-left: 15px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-footer > .site-info a {
|
.site-footer > .site-info a {
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
font-size: var(--branding--title--font-size);
|
font-size: var(--branding--title--font-size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.privacy-policy,
|
||||||
.powered-by {
|
.powered-by {
|
||||||
margin-top: calc(0.5 * var(--global--spacing-vertical));
|
margin-top: calc(0.5 * var(--global--spacing-vertical));
|
||||||
}
|
}
|
||||||
|
@ -39,10 +40,19 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
.site-name {
|
||||||
|
margin-right: calc(0.5 * var(--global--spacing-vertical));
|
||||||
|
}
|
||||||
|
|
||||||
|
.privacy-policy,
|
||||||
.powered-by {
|
.powered-by {
|
||||||
margin-top: initial;
|
margin-top: initial;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.privacy-policy + .powered-by {
|
||||||
|
margin-left: calc(0.5 * var(--global--spacing-vertical));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|
|
@ -53,6 +53,13 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div><!-- .site-name -->
|
</div><!-- .site-name -->
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if ( function_exists( 'the_privacy_policy_link' ) ) {
|
||||||
|
the_privacy_policy_link( '<div class="privacy-policy">', '</div>' );
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<div class="powered-by">
|
<div class="powered-by">
|
||||||
<?php
|
<?php
|
||||||
printf(
|
printf(
|
||||||
|
|
|
@ -3975,6 +3975,7 @@ table.wp-calendar-table caption {
|
||||||
font-size: var(--branding--title--font-size);
|
font-size: var(--branding--title--font-size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.site-footer > .site-info .privacy-policy,
|
||||||
.site-footer > .site-info .powered-by {
|
.site-footer > .site-info .powered-by {
|
||||||
margin-top: calc(0.5 * var(--global--spacing-vertical));
|
margin-top: calc(0.5 * var(--global--spacing-vertical));
|
||||||
}
|
}
|
||||||
|
@ -3985,10 +3986,19 @@ table.wp-calendar-table caption {
|
||||||
align-items: center;
|
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 {
|
.site-footer > .site-info .powered-by {
|
||||||
margin-top: initial;
|
margin-top: initial;
|
||||||
margin-right: auto;
|
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 {
|
.site-footer > .site-info a {
|
||||||
|
|
|
@ -3995,6 +3995,7 @@ table.wp-calendar-table caption {
|
||||||
font-size: var(--branding--title--font-size);
|
font-size: var(--branding--title--font-size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.site-footer > .site-info .privacy-policy,
|
||||||
.site-footer > .site-info .powered-by {
|
.site-footer > .site-info .powered-by {
|
||||||
margin-top: calc(0.5 * var(--global--spacing-vertical));
|
margin-top: calc(0.5 * var(--global--spacing-vertical));
|
||||||
}
|
}
|
||||||
|
@ -4005,10 +4006,19 @@ table.wp-calendar-table caption {
|
||||||
align-items: center;
|
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 {
|
.site-footer > .site-info .powered-by {
|
||||||
margin-top: initial;
|
margin-top: initial;
|
||||||
margin-left: auto;
|
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 {
|
.site-footer > .site-info a {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.9-alpha-52081';
|
$wp_version = '5.9-alpha-52082';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue