style: integrate CHRNX navigation and footer
This commit is contained in:
8 files changed
+437
-26
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user