<?php
/**
 * Header media override for the fixed header layout.
 *
 * When the compact fixed header is enabled, skip Twenty Seventeen's hero
 * header image/video markup to avoid layout conflicts with the single-page sections.
 *
 * @package Tents_Singlepage_Child
 */

$fixed_header = function_exists( 'tents_singlepage_get_fixed_header_settings' )
	? tents_singlepage_get_fixed_header_settings()
	: array( 'enabled' => false );

if ( ! empty( $fixed_header['enabled'] ) ) {
	return;
}

require get_template_directory() . '/template-parts/header/header-image.php';
