feat: add CHRNX shell and theme preference

This commit is contained in:
chrnx committed 2026-08-11 16:54:17 -05:00
1 parent aad237b211
commit f371db4cb5
18 files changed
+633 -16

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
<?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>