<?php
declare(strict_types=1);

/**
 * Header template.
 *
 * @package WTE_Business_Card
 * @since   1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$wte_noindex = get_theme_mod( 'wte_noindex', false );
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<?php if ( $wte_noindex ) : ?>
		<meta name="robots" content="noindex, nofollow">
	<?php endif; ?>
	<link rel="preconnect" href="https://fonts.googleapis.com">
	<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
<?php wp_body_open(); ?>

<?php get_template_part( 'template-parts/layout/skip-link' ); ?>

<header id="wte-header" class="wte-header<?php
	echo get_theme_mod( 'wte_header_sticky', true ) ? ' wte-header--sticky' : '';
	echo get_theme_mod( 'wte_header_shadow', true ) ? ' wte-header--shadow' : '';
?>" role="banner">
	<?php get_template_part( 'template-parts/layout/header-inner' ); ?>
</header>
