<!doctype html>
<!--[if IE 8]><html class="ie-8" <?php language_attributes(); ?>><![endif]-->
<!--[if IE 9]><html class="ie-9" <?php language_attributes(); ?>><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html <?php language_attributes(); ?>><!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<?php wp_head(); ?>
<!--[if lt IE 9]><script src="<?php echo get_template_directory_uri(); ?>/js/lib/html5.js"></script><![endif]-->
</head>

<body <?php body_class(); ?>>
  <?php do_action('myarcadetheme_before_wrapper'); ?>
  <div class="all<?php if ( myarcadetheme_get_option( 'boxed' ) ){ echo' boxed-cont'; } ?>">
    <?php
    // Do some actions before the header output
    do_action('myarcadetheme_before_header');
    ?>
    <header class="hdcn" id="hd">

      <?php get_template_part( "partials/header" , "topbar" ); ?>

      <div class="hdcn-2" itemscope="itemscope" itemtype="http://schema.org/WPHeader">
        <div class="cont">
          <div class="logo">
            <a href="<?php echo home_url(); ?>" title="<?php bloginfo('name');?>" itemprop="url">
              <?php
              $logo = myarcadetheme_get_option( 'logohd' );
              if ( empty( $logo['url'] ) ) {
                $logo['url'] = get_template_directory_uri() .' /images/my-arcade-theme.png';
              }
              ?>
              <img src="<?php echo $logo['url']; ?>" alt="<?php bloginfo('blogname'); ?>" title="<?php bloginfo('blogname'); ?>" itemprop="image"/>
            </a>
            <meta itemprop="name" content="<?php bloginfo('blogname'); ?>">
          </div>

          <?php if ( myarcadetheme_get_option( 'header_banner' ) ) : ?>
          <div class="bnr728">
            <?php echo myarcadetheme_get_option( 'header_banner' ); ?>
          </div>
          <?php endif; ?>
        </div>
      </div>

      <div class="hdcn-3">
        <div class="cont">
          <?php
          // Do some actions before the main menu
          do_action('myarcadetheme_before_menu');
          ?>
          <nav class="menu">
            <button class="menu-botn"><span class="fa-bars"><?php _e('Menu', 'myarcadetheme'); ?></span></button>
            <ul>
              <?php wp_nav_menu( array(
                'container' => false,
                'theme_location' => 'primary',
                'items_wrap' => '%3$s',
                'fallback_cb' => 'myarcadetheme_default_menu')
              ); ?>
            </ul>

            <?php if ( myarcadetheme_get_option( 'randomgame' ) ) : ?>
            <a href="<?php echo home_url(); ?>/?randomgame=1" class="rndgame fa-random" title="<?php _e("Play a random game!", 'myarcadetheme' ); ?>">
              <?php _e('RANDOM GAME', 'myarcadetheme'); ?>
            </a>
            <?php endif ?>
          </nav>

          <?php
          // Do some actions after the main menu
          do_action('myarcadetheme_after_menu');
          ?>
        </div>
      </div>

      <?php get_template_part( "partials/header", "carousel" ); ?>

      <?php get_template_part( "partials/header", "news" ); ?>
    </header>

      <div class="bdcn">
        <?php
        // Do some actions before the content wrap
        do_action('myarcadetheme_before_content');
        ?>