Antichrist Net Header
**Site relevance:** Antichrist.net
**Memory type:** theme source memory
**Source path:** Antichrist.net/wp-content/themes/antichrist-net/header.php
**Size:** 2.8 KB
Summary
if ( function exists( 'acn render primary navigation' ) )
Source Preview
This source file is short enough to preview directly on its source-memory page.
<?php
/**
* Site header.
*
* @package AntichristNet
*/
?><!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e( 'Skip to content', 'antichrist-net' ); ?></a>
<div class="site-shell">
<header class="site-header" role="banner">
<div class="container header-inner">
<div class="brand-wrap">
<?php acn_site_logo(); ?>
<p class="site-tagline"><?php echo esc_html( get_bloginfo( 'description' ) ? get_bloginfo( 'description' ) : __( 'Archive, analysis, and community research.', 'antichrist-net' ) ); ?></p>
</div>
<button class="menu-toggle" type="button" aria-controls="primary-menu" aria-expanded="false">
<span></span><span></span><span></span>
<span class="screen-reader-text"><?php esc_html_e( 'Open menu', 'antichrist-net' ); ?></span>
</button>
<div class="header-actions">
<nav id="site-navigation" class="primary-navigation" aria-label="<?php esc_attr_e( 'Primary navigation', 'antichrist-net' ); ?>">
<?php
if ( function_exists( 'acn_render_primary_navigation' ) ) {
acn_render_primary_navigation();
} else {
wp_nav_menu(
array(
'theme_location' => 'primary',
'menu_id' => 'primary-menu',
'container' => false,
'fallback_cb' => 'acn_fallback_menu',
)
);
}
?>
</nav>
<?php
if ( function_exists( 'acn_locale_switcher' ) ) {
acn_locale_switcher();
}
?>
</div>
</div>
<div class="header-rule" aria-hidden="true"></div>
</header>
<?php
/**
* Fallback navigation.
*/
if ( ! function_exists( 'acn_fallback_menu' ) ) {
function acn_fallback_menu() {
$items = array(
'' => __( 'Home', 'antichrist-net' ),
'archive' => __( 'Archive', 'antichrist-net' ),
'research-agenda' => __( 'Research Agenda', 'antichrist-net' ),
'research-library' => __( 'Library', 'antichrist-net' ),
'timeline' => __( 'Timeline', 'antichrist-net' ),
'symbols' => __( 'Symbols', 'antichrist-net' ),
'apocalyptic-ai' => acn_ui_t( 'acn.nav.ai', 'Apocalyptic AI' ),
'state-and-religion' => __( 'State & Religion', 'antichrist-net' ),
'surveillance' => __( 'Surveillance', 'antichrist-net' ),
'community-baseline' => __( 'Community Baseline', 'antichrist-net' ),
'about' => __( 'About', 'antichrist-net' ),
);
echo '<ul id="primary-menu" class="menu">';
foreach ( $items as $slug => $label ) {
printf( '<li><a href="%1$s">%2$s</a></li>', esc_url( acn_page_url( $slug ) ), esc_html( $label ) );
}
echo '</ul>';
}
}