style: integrate CHRNX navigation and footer

This commit is contained in:
chrnx committed 2026-08-12 15:08:07 -05:00
1 parent 5a49cc5137
commit c7de54995f
8 files changed
+437 -26

No files matched your search

+2 -1
View File
@@ -28,6 +28,7 @@ $chrnx_footer_links = array(
),
);
$chrnx_site_name = get_bloginfo( 'name' );
$chrnx_current_url = chrnx_get_current_navigation_destination();
$chrnx_copyright = sprintf(
/* translators: 1: current year, 2: site name. */
__( '© %1$s %2$s', 'chrnx' ),
@@ -46,7 +47,7 @@ $chrnx_copyright = sprintf(
<nav class="chrnx-footer-navigation" aria-label="<?php echo esc_attr__( 'Footer navigation', 'chrnx' ); ?>">
<ul>
<?php foreach ( $chrnx_footer_links as $chrnx_link ) : ?>
<li><a href="<?php echo esc_url( $chrnx_link['url'] ); ?>"><?php echo esc_html( $chrnx_link['label'] ); ?></a></li>
<li><a href="<?php echo esc_url( $chrnx_link['url'] ); ?>"<?php echo $chrnx_current_url === $chrnx_link['url'] ? ' aria-current="page"' : ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Fixed attribute fragment. ?>><?php echo esc_html( $chrnx_link['label'] ); ?></a></li>
<?php endforeach; ?>
</ul>
</nav>