Skip to content
wiki.fftac.org

Twoia Intelligence Header

**Site relevance:** 2IA.org

**Memory type:** theme source memory

**Source path:** 2IA.org/wp-content/themes/twoia-intelligence/header.php

**Size:** 4.2 KB

Summary

" rel="home" aria-label=" "

Source Preview

This source file is short enough to preview directly on its source-memory page.

<?php
/**
 * Site header.
 *
 * @package TwoIA
 */
?><!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" href="#primary-content"><?php esc_html_e( 'Skip to content', 'two-identities-anonymous' ); ?></a>
<div class="site-shell">
	<header class="site-header" role="banner">
		<div class="topbar" data-announcement-bar data-announcement-id="2026-05-18-resources">
			<div class="topbar__inner">
				<p class="topbar__text">
					<span class="status-dot" aria-hidden="true"></span>
					<a href="<?php echo esc_url( home_url( '/resources/' ) ); ?>"><?php esc_html_e( 'New: public-records, OSINT, and domain-authenticity resources are available.', 'two-identities-anonymous' ); ?></a>
				</p>
				<button class="topbar__dismiss" type="button" data-announcement-dismiss aria-label="<?php esc_attr_e( 'Dismiss announcement', 'two-identities-anonymous' ); ?>">
					<span aria-hidden="true">×</span>
				</button>
			</div>
		</div>
		<div class="site-header__inner">
			<a class="site-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" aria-label="<?php echo esc_attr( function_exists( 'twoia_public_site_name' ) ? twoia_public_site_name() : '2IA' ); ?>">
				<?php if ( has_custom_logo() ) : ?>
					<span class="site-brand__custom-logo"><?php the_custom_logo(); ?></span>
				<?php else : ?>
					<img class="site-brand__mark" src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/2ia-mark.svg' ); ?>" alt="" width="48" height="48" decoding="async">
				<?php endif; ?>
				<span class="site-brand__text">
					<span class="site-brand__name"><?php esc_html_e( '2IA', 'two-identities-anonymous' ); ?></span>
					<span class="site-brand__tagline"><?php esc_html_e( 'Two Identities Of Anonymous', 'two-identities-anonymous' ); ?></span>
				</span>
			</a>

			<nav id="primary-navigation" class="primary-navigation" aria-label="<?php esc_attr_e( 'Primary menu', 'two-identities-anonymous' ); ?>">
				<?php
				wp_nav_menu(
					array(
						'theme_location' => 'primary',
						'menu_id'        => 'primary-menu',
						'menu_class'     => 'menu primary-menu',
						'container'      => false,
						'fallback_cb'    => 'twoia_primary_menu_fallback',
						'depth'          => 2,
					)
				);
				?>
			</nav>

			<div class="site-header__actions">
				<button class="icon-button" type="button" data-search-open aria-label="<?php esc_attr_e( 'Open search', 'two-identities-anonymous' ); ?>">
					<span aria-hidden="true">⌕</span>
				</button>
				<button class="menu-toggle" type="button" data-menu-toggle aria-controls="primary-navigation" aria-expanded="false">
					<span class="menu-toggle__line" aria-hidden="true"></span>
					<span class="screen-reader-text"><?php esc_html_e( 'Toggle menu', 'two-identities-anonymous' ); ?></span>
				</button>
			</div>
		</div>
	</header>

	<div class="search-overlay" data-search-overlay hidden>
		<div class="search-overlay__panel" role="dialog" aria-modal="true" aria-labelledby="search-overlay-title">
			<button class="search-overlay__close icon-button" type="button" data-search-close aria-label="<?php esc_attr_e( 'Close search', 'two-identities-anonymous' ); ?>">×</button>
			<p class="eyebrow"><?php esc_html_e( 'Research lookup', 'two-identities-anonymous' ); ?></p>
			<h2 id="search-overlay-title"><?php esc_html_e( 'Search 2IA research', 'two-identities-anonymous' ); ?></h2>
			<form class="search-form search-form--overlay" role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
				<label class="screen-reader-text" for="twoia-search-field"><?php esc_html_e( 'Search', 'two-identities-anonymous' ); ?></label>
				<input id="twoia-search-field" type="search" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" placeholder="<?php esc_attr_e( 'Search surveillance, records, OSINT...', 'two-identities-anonymous' ); ?>">
				<button class="button button--primary" type="submit"><?php esc_html_e( 'Search', 'two-identities-anonymous' ); ?></button>
			</form>
		</div>
	</div>

	<main id="primary-content" class="site-main" role="main">