2019-07-15 16:13:42 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The header for our theme
|
|
|
|
*
|
|
|
|
* This is the template that displays all of the <head> section and everything up until <div id="content">
|
|
|
|
*
|
|
|
|
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
|
|
|
*
|
|
|
|
* @package WordPress
|
2019-07-19 03:37:13 +00:00
|
|
|
* @subpackage Varia
|
2019-07-15 16:13:42 +00:00
|
|
|
* @since 1.0.0
|
|
|
|
*/
|
|
|
|
?><!doctype html>
|
|
|
|
<html <?php language_attributes(); ?>>
|
|
|
|
<head>
|
|
|
|
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<link rel="profile" href="https://gmpg.org/xfn/11" />
|
|
|
|
<?php wp_head(); ?>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body <?php body_class(); ?>>
|
2019-12-16 18:37:06 +00:00
|
|
|
|
|
|
|
<?php
|
2020-11-11 08:57:33 +00:00
|
|
|
if ( function_exists( 'wp_body_open' ) ) {
|
|
|
|
wp_body_open();
|
|
|
|
}
|
2019-12-16 18:37:06 +00:00
|
|
|
?>
|
2020-11-06 09:51:23 +00:00
|
|
|
|
2019-07-15 16:13:42 +00:00
|
|
|
<div id="page" class="site">
|
2019-07-19 03:37:13 +00:00
|
|
|
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'varia' ); ?></a>
|
2019-07-15 16:13:42 +00:00
|
|
|
|
2021-01-20 11:18:26 +00:00
|
|
|
<?php
|
|
|
|
if ( ( true === get_theme_mod( 'hide_site_header', false ) && is_front_page() && is_page() ) ) {
|
|
|
|
// Do nothing if this is the homepage and the hide-header setting is active.
|
|
|
|
} elseif ( class_exists( 'A8C\FSE\WP_Template' ) ) { // If not, check if the FSE plugin is active, use the Header template for content.
|
|
|
|
get_template_part( 'template-parts/header/fse', 'header' );
|
|
|
|
} else { // Otherwise we'll fallback to the default Varia header below.
|
|
|
|
get_template_part( 'template-parts/header/header', 'content' );
|
|
|
|
}
|
|
|
|
?>
|
2019-08-22 17:47:10 +00:00
|
|
|
|
2019-07-15 16:13:42 +00:00
|
|
|
<div id="content" class="site-content">
|