<?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 warego
 */
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">
    <base href="<?php echo site_url() . '/'; ?>">
	<link rel="profile" href="https://gmpg.org/xfn/11">
	<link rel="icon" href="/favicon.ico"/>
	<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
	<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
	<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
	<link rel="manifest" href="/site.webmanifest">
    <meta property="product:plural_title" content="WareGo">
    <meta property="product:price.amount" content="499">
    <meta property="product:price.currency" content="USD">
	
	<?php
        if (!function_exists('vd_output_schema')) {
        function vd_output_schema($schema) {
            if (empty($schema)) return;

            // If schema already includes <script>, output as-is
            if (stripos($schema, '<script') !== false) {
            echo $schema;
            return;
            }

            // Output JSON-LD script
            echo '<script type="application/ld+json">' . $schema . '</script>';
        }
        }

        $page_schema   = function_exists('get_field') ? get_field('page_schema') : '';
        $global_schema = function_exists('get_field') ? get_field('schema', 'option') : '';

        vd_output_schema($global_schema);
        vd_output_schema($page_schema);
    ?>
	
	<?php wp_head(); ?>
	
    
    

    <style>
        .holiday-modal .gccphone {
            padding: 7px 45px !important;
        }
        @media(min-width:992px){
            .holiday-modal .gccphone::placeholder {
                color:#fff;
            }
        }
    </style>
</head>
<?php
$blocked = array('pricing', 'signup', 'affiliate-program', 'contact-us', 'customer-support');

if( ! is_page( $blocked ) ) {
    ?>
  <?php //get_template_part('templates-parts/modals/black-friday-modal');?>
<?php //get_template_part('templates-parts/pages/black-friday-bar');?>

    <?php
} else{
    ?>

    <?php } ?>
    <style>
/*     header {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 9;
    margin-top: 40px;
    top: 0;
} */
    </style>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>

	<!-- <div class="topbar"></div> -->
    <div class="progress-container">
        <div class="progress-bar" id="myBar"></div>
    </div>
<header>
    
    <nav class="navbar navbar-expand-lg main-header container">
        <div class="container-fluid px-0">
        <a class="navbar-brand" href="<?php echo home_url(); ?>">
    
        <img src="<?php echo get_template_directory_uri(); ?>/assets/img/warego-logo.webp" class="img-fluid no-lazy" alt="WareGo" width="48" height="48" fetchpriority="auto">
   
</a>

<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarText"
                    aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon">☰</span>
            </button>
           <?php echo get_header_mobile_navigation(); ?>
        </div>
    </nav>
</header>
