<?php
/**
 * The header for our theme
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 * @package Purenote
 */
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">
    <link rel="profile" href="https://gmpg.org/xfn/11">
    <?php wp_head(); ?>
</head>

<body <?php body_class(); ?> <?php purenote_schema_markup( 'html' ); ?>>
<?php wp_body_open(); ?>

<?php
    /**
     * hook - purenote_before_page
     * 
     * @since 1.0.0
     */
    do_action( 'purenote_before_page' );
?>

<div id="page" class="site">
    <a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e( 'Skip to content', 'purenote' ); ?></a>

    <?php
        /**
         * hook - purenote_before_page
         * 
         * @hooked - purenote_custom_header_html - 10
         * @hooked - purenote_top_header - 20
         * @hooked - purenote_main_header - 30
         * @hooked - header_news_ticker_section - 40
         * 
         * @since 1.0.0
         */
        do_action( 'purenote_header_section' );
    ?>

    <div id="content" class="site-content" <?php purenote_schema_markup( 'creative_work' ); ?>>

        <?php
            if ( is_home() && is_front_page() ) :

                /**
                 * hook - purenote_frontpage_section
                 * 
                 * @hooked - purenote_frontpage_main_container - 10
                 * @hooked - purenote_web_stories_html - 20
                 * 
                 * @since 1.0.0
                 */
                do_action( 'purenote_frontpage_section' );

            endif;
        ?>