<?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 code4rest
 */

namespace Code4rest;

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

?>
<!doctype html>
<html <?php language_attributes(); ?> class="no-js" <?php code4rest()->print_microdata( 'html' ); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
<div class="pageloader"></div>
<?php wp_body_open(); ?>
<?php
/**
 * Code4rest before wrapper hook.
 */
do_action( 'code4rest_before_wrapper' );
?>
<div id="wrapper" class="site wp-site-blocks">
	<?php
	/**
	 * Code4rest before header hook.
	 *
	 * @hooked code4rest_do_skip_to_content_link - 2
	 */
	do_action( 'code4rest_before_header' );

	/**
	 * Code4rest header hook.
	 *
	 * @hooked Code4rest/header_markup - 10
	 */
	do_action( 'code4rest_header' );

	do_action( 'code4rest_after_header' );
	?>

	<div id="inner-wrap" class="wrap hfeed kt-clear">
		<?php
		/**
		 * Hook for top of inner wrap.
		 */
		do_action( 'code4rest_before_content' );
		?>
