Skip to content

Commit

Permalink
Header/Footer: Link footer logo to home URL to match expectations.
Browse files Browse the repository at this point in the history
  • Loading branch information
iandunn committed Jan 4, 2022
1 parent 373b3fe commit eb95e7f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mu-plugins/blocks/global-header-footer/footer.php
@@ -1,6 +1,7 @@
<?php

namespace WordPressdotorg\MU_Plugins\Global_Header_Footer\Footer;
use function WordPressdotorg\MU_Plugins\Global_Header_Footer\{ get_home_url };

defined( 'WPINC' ) || die();

Expand Down Expand Up @@ -51,13 +52,17 @@
<!-- The design calls for two logos, a small "mark" on mobile/tablet, and the full logo for desktops. -->
<!-- wp:image {"width":27,"height":27,"className":"global-footer__wporg-logo-mark"} -->
<figure class="wp-block-image is-resized global-footer__wporg-logo-mark">
<img src="https://wordpress.org/style/images/w-mark.svg" alt="<?php echo esc_html_x( 'WordPress.org', 'Image alt text', 'wporg' ); ?>" width="27" height="27" />
<a href="<?php echo esc_url( get_home_url() ); ?>">
<img src="https://wordpress.org/style/images/w-mark.svg" alt="<?php echo esc_html_x( 'WordPress.org', 'Image alt text', 'wporg' ); ?>" width="27" height="27" />
</a>
</figure>
<!-- /wp:image -->

<!-- wp:image {"width":160,"height":24,"className":"global-footer__wporg-logo-full"} -->
<figure class="wp-block-image is-resized global-footer__wporg-logo-full">
<img src="<?php echo plugin_dir_url( __FILE__ ) . 'images/wporg-logo.svg'; ?>" alt="<?php echo esc_html_x( 'WordPress.org', 'Image alt text', 'wporg' ); ?>" width="160" height="24" />
<a href="<?php echo esc_url( get_home_url() ); ?>">
<img src="<?php echo plugin_dir_url( __FILE__ ) . 'images/wporg-logo.svg'; ?>" alt="<?php echo esc_html_x( 'WordPress.org', 'Image alt text', 'wporg' ); ?>" width="160" height="24" />
</a>
</figure>
<!-- /wp:image -->

Expand Down

0 comments on commit eb95e7f

Please sign in to comment.