<?php
/**
 * The Header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="content">
 *
 * @package ares
 */
?><!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="http://gmpg.org/xfn/11">
		<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">

		<?php wp_head(); ?>
        <!-- Google Tag Manager -->
        <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=
         'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
         })(window,document,'script','dataLayer','GTM-MHNHHHF');</script>
        <!-- End Google Tag Manager -->
	</head>

	<body <?php body_class(); ?>>
        <!-- Google Tag Manager (noscript) -->
        <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MHNHHHF"
        height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
        <!-- End Google Tag Manager (noscript) -->
		<div id="page" class="hfeed site <?php echo 'no' == of_get_option('ares_headerbar_bool', 'yes') ? 'no_toolbar' : ''; ?>">
			<header id="masthead" class="site-header" role="banner">
				<div class="mobile-call-us"><a href="tel:0419 683 676"><i class="fa fa-phone" aria-hidden="true"></i> Call Now</a></div>
				<div class="site-branding">
					 <div class="row ">
							<div class="col-sm-3">
								<div id="tasty-mobile-toggle">
									<i class="fa fa-bars"></i>
									<?php wp_nav_menu(array('theme_location' => 'primary')); ?>
								</div>
									 
					 			<h2 class="site-title">
									<a href="<?php echo esc_url(home_url('/')); ?>" rel="home">
										<?php if (of_get_option('ares_logo_image') != '') : ?>
										<img src="<?php echo esc_attr( of_get_option('ares_logo_image') ); ?>" alt="" id="sc_logo"/>
										<?php else : ?>
											<?php bloginfo('name');?>
										<?php endif; ?>
									</a>
								</h2>
								<?php if (of_get_option('ares_logo_image') == '') : ?>
									<h3 class="site-description"><?php bloginfo('description'); ?></h3>
								<?php endif; ?>
							</div>
							<div class="col-sm-9 menu-bar">
								<nav id="site-navigation" class="main-navigation" role="navigation">
									<?php wp_nav_menu(array('theme_location' => 'primary')); ?>
								</nav>
							</div>
					</div>
				</div>
			</header><!-- #masthead -->


