23 lines
784 B
PHP
23 lines
784 B
PHP
<?php
|
|
/**
|
|
* Render the portable CHRNX site brand and localized skip link.
|
|
*
|
|
* @package CHRNX
|
|
*/
|
|
|
|
$chrnx_home_url = home_url( '/' );
|
|
$chrnx_wordmark_url = get_theme_file_uri( 'assets/icons/chrnx-wordmark.svg' );
|
|
?>
|
|
<a class="chrnx-skip-link" href="#chrnx-main"><?php esc_html_e( 'Skip to content', 'chrnx' ); ?></a>
|
|
<a
|
|
<?php
|
|
// WordPress escapes each generated wrapper attribute.
|
|
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
|
echo get_block_wrapper_attributes( array( 'class' => 'chrnx-site-brand' ) );
|
|
?>
|
|
href="<?php echo esc_url( $chrnx_home_url ); ?>"
|
|
aria-label="<?php esc_attr_e( 'CHRNX home', 'chrnx' ); ?>"
|
|
>
|
|
<img src="<?php echo esc_url( $chrnx_wordmark_url ); ?>" alt="<?php esc_attr_e( 'CHRNX', 'chrnx' ); ?>" width="250" height="64">
|
|
</a>
|