header.php 3.31 KB
<?php include 'staging-lock.php'; ?>
<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes() ?>><![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8" <?php language_attributes() ?>><![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9" <?php language_attributes() ?>><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" <?php language_attributes() ?>><!--<![endif]-->
<head>
    <meta charset="<?php bloginfo('charset') ?>">
    <!--[if IE]>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <![endif]-->
    <meta name="msvalidate.01" content="B3E2B5EE6669C2F5D3DC845DEAE3AF38" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="facebook-domain-verification" content="yvu0p7s5ycmx5htkiw6wn8hmyb2rbo" />
    <title><?php wp_title(' » ',true, 'right'); ?>The Commonwell</title>
    <script>
    
        dataLayer = [{
            'userId': '<?php echo get_current_user_id(); ?>'
        }];
    
    </script>
    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
        new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
                                                  j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
        '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-MWQJ2F');</script>

    <link rel="shortcut icon" type="image/x-icon" href="<?php bloginfo('url'); ?>/favicon.ico">
    <link rel="apple-touch-icon" href="<?php bloginfo('url'); ?>/apple-touch-icon.png">
    <?php wp_head() ?>
</head>
<body <?php body_class() ?>>
<script>
    var $ = jQuery;
</script>
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-MWQJ2F"
                  height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

<!-- End Google Tag Manager -->
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
    your browser</a> to improve your experience.</p>
<![endif]-->
<div id="content-wrap">
    <?php if (!is_front_page()): ?>
        <header id="page-header">
            <div id="other-header">
                <div id="page-logo">
                    <a href="<?php bloginfo('url') ?>"
                       title="<?php bloginfo('name') ?> - <?php bloginfo('description') ?>">
                        <img id="otherpage-logo"
                             src="<?php bloginfo('template_directory') ?>/images/Commonwell-logo.svg" width="266"
                             height="106" alt="Commonwell Mutual Insurance Group logo"/>
                    </a>
                </div>
            
            </div>
        </header>
    <?php endif; ?>


    <?php if(is_front_page() && is_active_sidebar( 'canada-post-widget' )) : ?>
    <div class="canada-post-strike-container">
        <a href="javascript:void(0)" data-featherlight="#canada-post-strike-content" class="canada-post-icon-button"><div class="canada-post-logo"></div><span class="strike-notice">POSTAL STRIKE NOTICE</span></a>
    </div>
    <div id="canada-post-strike-content" class="canada-post-strike-content">
        <?php dynamic_sidebar( 'canada-post-widget' ); ?>
    </div>
    <?php endif; ?>