Make WordPress Core

Changeset 52023


Ignore:
Timestamp:
11/05/2021 10:27:30 PM (5 years ago)
Author:
hellofromTonya
Message:

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.

Location:
trunk/src/wp-content/themes/twentytwenty
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/footer.php

    r52013 r52023  
    2828                                                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
    2929                                                </p><!-- .footer-copyright -->
     30
     31                                                <?php
     32                                                if ( function_exists( 'the_privacy_policy_link' ) ) {
     33                                                        the_privacy_policy_link( '<p class="privacy-policy">', '</p>' );
     34                                                }
     35                                                ?>
    3036
    3137                                                <p class="powered-by-wordpress">
  • trunk/src/wp-content/themes/twentytwenty/style-rtl.css

    r51455 r52023  
    44654465
    44664466.footer-copyright a,
     4467.privacy-policy a,
    44674468.powered-by-wordpress a {
    44684469        color: inherit;
    44694470}
    44704471
     4472.privacy-policy,
    44714473.powered-by-wordpress,
    44724474.to-the-top {
     
    44744476}
    44754477
     4478a.to-the-top {
     4479        margin-right: 2.4rem;
     4480        white-space: nowrap;
     4481}
     4482
    44764483a.to-the-top > * {
    44774484        pointer-events: none;
     
    44864493        display: none;
    44874494        margin: 0 2.4rem 0 0;
     4495}
     4496
     4497.privacy-policy {
     4498        margin: 1.2rem 0 0;
    44884499}
    44894500
     
    55715582        .footer-credits {
    55725583                display: flex;
     5584                flex-wrap: wrap;
    55735585        }
    55745586
     
    55775589        }
    55785590
    5579         .powered-by-wordpress {
    5580                 display: block;
     5591        .privacy-policy {
     5592                margin: 0 2.4rem 0 0;
    55815593        }
    55825594
     
    60286040        .footer-menu li {
    60296041                margin: 1.2rem 2.4rem 0 0;
     6042        }
     6043
     6044        .powered-by-wordpress {
     6045                display: block;
    60306046        }
    60316047}
  • trunk/src/wp-content/themes/twentytwenty/style.css

    r51455 r52023  
    44994499
    45004500.footer-copyright a,
     4501.privacy-policy a,
    45014502.powered-by-wordpress a {
    45024503        color: inherit;
    45034504}
    45044505
     4506.privacy-policy,
    45054507.powered-by-wordpress,
    45064508.to-the-top {
     
    45084510}
    45094511
     4512a.to-the-top {
     4513        margin-left: 2.4rem;
     4514        white-space: nowrap;
     4515}
     4516
    45104517a.to-the-top > * {
    45114518        pointer-events: none;
     
    45204527        display: none;
    45214528        margin: 0 0 0 2.4rem;
     4529}
     4530
     4531.privacy-policy {
     4532        margin: 1.2rem 0 0;
    45224533}
    45234534
     
    56335644        .footer-credits {
    56345645                display: flex;
     5646                flex-wrap: wrap;
    56355647        }
    56365648
     
    56395651        }
    56405652
    5641         .powered-by-wordpress {
    5642                 display: block;
     5653        .privacy-policy {
     5654                margin: 0 0 0 2.4rem;
    56435655        }
    56445656
     
    61186130        .footer-menu li {
    61196131                margin: 1.2rem 0 0 2.4rem;
     6132        }
     6133
     6134        .powered-by-wordpress {
     6135                display: block;
    61206136        }
    61216137}
Note: See TracChangeset for help on using the changeset viewer.