Skip to content
wiki.fftac.org

wiki.fftac.org Authority Header

**Site relevance:** Wiki.FFTAC.org

**Memory type:** theme source memory

**Source path:** Wiki.FFTAC.org/wp-content/themes/wiki-fftac-authority/header.php

**Size:** 1.4 KB

Summary

Classic fallback header.

Source Preview

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

<?php
/**
 * Classic fallback header.
 *
 * @package AIWikisAuthority
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?><!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(); ?>
<header class="aiwikis-site-header">
	<a class="aiwikis-skip" href="#main"><?php esc_html_e( 'Skip to content', 'aiwikis-authority' ); ?></a>
	<div class="aiwikis-header-inner">
		<a class="aiwikis-brand aiwikis-brand-lockup" href="<?php echo esc_url( home_url( '/' ) ); ?>">
			<img src="<?php echo esc_url( get_theme_file_uri( 'assets/images/aiwikis-app-icon-192.png' ) ); ?>" alt="" aria-hidden="true">
			<span><?php echo esc_html( aiwikis_authority_public_site_name() ); ?></span>
		</a>
		<?php aiwikis_authority_render_search_form( 'header' ); ?>
		<nav class="aiwikis-nav" aria-label="<?php esc_attr_e( 'Primary', 'aiwikis-authority' ); ?>">
			<?php
			wp_nav_menu(
				array(
					'theme_location' => 'primary',
					'container'      => false,
					'fallback_cb'    => false,
					'depth'          => 1,
				)
			);
			?>
			<?php foreach ( aiwikis_authority_primary_routes() as $label => $route ) : ?>
				<a href="<?php echo esc_url( home_url( $route ) ); ?>"><?php echo esc_html( $label ); ?></a>
			<?php endforeach; ?>
		</nav>
	</div>
</header>