diff --git a/src/wp-content/themes/twentytwenty/footer.php b/src/wp-content/themes/twentytwenty/footer.php
index afe204b629..d1aa6db962 100644
a
|
b
|
|
28 | 28 | <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a> |
29 | 29 | </p><!-- .footer-copyright --> |
30 | 30 | |
| 31 | <?php |
| 32 | if ( function_exists( 'the_privacy_policy_link' ) ) { |
| 33 | the_privacy_policy_link( '<p class="privacy-policy">', '</p>' ); |
| 34 | } |
| 35 | ?> |
| 36 | |
31 | 37 | <p class="powered-by-wordpress"> |
32 | 38 | <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwenty' ) ); ?>"> |
33 | 39 | <?php _e( 'Powered by WordPress', 'twentytwenty' ); ?> |
diff --git a/src/wp-content/themes/twentytwenty/style.css b/src/wp-content/themes/twentytwenty/style.css
index f6d5d9ec92..1bf8e542db 100644
a
|
b
|
ul.footer-social li { |
4490 | 4490 | } |
4491 | 4491 | |
4492 | 4492 | .footer-copyright a, |
| 4493 | .privacy-policy a, |
4493 | 4494 | .powered-by-wordpress a { |
4494 | 4495 | color: inherit; |
4495 | 4496 | } |
4496 | 4497 | |
| 4498 | .privacy-policy, |
4497 | 4499 | .powered-by-wordpress, |
4498 | 4500 | .to-the-top { |
4499 | 4501 | color: #6d6d6d; |
… |
… |
a.to-the-top > * { |
4508 | 4510 | margin: 0; |
4509 | 4511 | } |
4510 | 4512 | |
4511 | | .powered-by-wordpress { |
| 4513 | .powered-by-wordpress, |
| 4514 | .privacy-policy { |
4512 | 4515 | display: none; |
4513 | 4516 | margin: 0 0 0 2.4rem; |
4514 | 4517 | } |
… |
… |
a.to-the-top > * { |
5630 | 5633 | font-weight: 700; |
5631 | 5634 | } |
5632 | 5635 | |
| 5636 | .privacy-policy, |
5633 | 5637 | .powered-by-wordpress { |
5634 | 5638 | display: block; |
5635 | 5639 | } |
diff --git a/src/wp-content/themes/twentytwentyone/footer.php b/src/wp-content/themes/twentytwentyone/footer.php
index 63ecd99ac0..da1b09b2c8 100644
a
|
b
|
|
38 | 38 | ?> |
39 | 39 | </ul><!-- .footer-navigation-wrapper --> |
40 | 40 | </nav><!-- .footer-navigation --> |
41 | | <?php endif; ?> |
42 | | <div class="site-info"> |
43 | | <div class="site-name"> |
44 | | <?php if ( has_custom_logo() ) : ?> |
45 | | <div class="site-logo"><?php the_custom_logo(); ?></div> |
46 | | <?php else : ?> |
47 | | <?php if ( get_bloginfo( 'name' ) && get_theme_mod( 'display_title_and_tagline', true ) ) : ?> |
48 | | <?php if ( is_front_page() && ! is_paged() ) : ?> |
49 | | <?php bloginfo( 'name' ); ?> |
50 | | <?php else : ?> |
51 | | <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a> |
52 | | <?php endif; ?> |
53 | | <?php endif; ?> |
54 | | <?php endif; ?> |
55 | | </div><!-- .site-name --> |
56 | | <div class="powered-by"> |
57 | | <?php |
58 | | printf( |
59 | | /* translators: %s: WordPress. */ |
60 | | esc_html__( 'Proudly powered by %s.', 'twentytwentyone' ), |
61 | | '<a href="' . esc_url( __( 'https://wordpress.org/', 'twentytwentyone' ) ) . '">WordPress</a>' |
62 | | ); |
63 | | ?> |
64 | | </div><!-- .powered-by --> |
| 41 | <?php |
| 42 | endif; |
| 43 | |
| 44 | get_template_part( 'template-parts/footer/site', 'info' ); |
| 45 | ?> |
65 | 46 | |
66 | | </div><!-- .site-info --> |
67 | 47 | </footer><!-- #colophon --> |
68 | 48 | |
69 | 49 | </div><!-- #page --> |
diff --git a/src/wp-content/themes/twentytwentyone/style.css b/src/wp-content/themes/twentytwentyone/style.css
index 6dcc4045d9..98c38b1887 100644
a
|
b
|
table.wp-calendar-table caption { |
3974 | 3974 | .site-footer > .site-info .powered-by { |
3975 | 3975 | margin-top: calc(0.5 * var(--global--spacing-vertical)); |
3976 | 3976 | } |
| 3977 | |
| 3978 | .site-footer > .site-info .privacy-policy-link { |
| 3979 | margin-top: calc(0.5 * var(--global--spacing-vertical)); |
| 3980 | margin-right: 10px; |
| 3981 | } |
| 3982 | |
3977 | 3983 | @media only screen and (min-width: 822px) { |
3978 | 3984 | |
3979 | 3985 | .site-footer > .site-info { |
diff --git a/src/wp-content/themes/twentytwentyone/template-parts/footer/site-info.php b/src/wp-content/themes/twentytwentyone/template-parts/footer/site-info.php
new file mode 100644
index 0000000000..a448d62330
-
|
+
|
|
| 1 | <?php |
| 2 | /** |
| 3 | * Displays footer site info |
| 4 | * |
| 5 | * @package WordPress |
| 6 | * @subpackage Twenty_Twenty_One |
| 7 | * @since Twenty Twenty One 1.5 |
| 8 | * @version 1.5 |
| 9 | */ |
| 10 | |
| 11 | ?> |
| 12 | <div class="site-info"> |
| 13 | <div class="site-name"> |
| 14 | <?php if ( has_custom_logo() ) : ?> |
| 15 | <div class="site-logo"><?php the_custom_logo(); ?></div> |
| 16 | <?php else : ?> |
| 17 | <?php if ( get_bloginfo( 'name' ) && get_theme_mod( 'display_title_and_tagline', true ) ) : ?> |
| 18 | <?php if ( is_front_page() && ! is_paged() ) : ?> |
| 19 | <?php bloginfo( 'name' ); ?> |
| 20 | <?php else : ?> |
| 21 | <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a> |
| 22 | <?php endif; ?> |
| 23 | <?php endif; ?> |
| 24 | <?php endif; ?> |
| 25 | </div><!-- .site-name --> |
| 26 | |
| 27 | <div class="powered-by"> |
| 28 | |
| 29 | <?php |
| 30 | if ( function_exists( 'the_privacy_policy_link' ) ) { |
| 31 | the_privacy_policy_link(); |
| 32 | } |
| 33 | ?> |
| 34 | |
| 35 | <?php |
| 36 | printf( |
| 37 | /* translators: %s: WordPress. */ |
| 38 | esc_html__( 'Proudly powered by %s.', 'twentytwentyone' ), |
| 39 | '<a href="' . esc_url( __( 'https://wordpress.org/', 'twentytwentyone' ) ) . '">WordPress</a>' |
| 40 | ); |
| 41 | ?> |
| 42 | </div><!-- .powered-by --> |
| 43 | |
| 44 | </div><!-- .site-info --> |