<!DOCTYPE html>
<html <?php language_attributes(); ?>>
    <head>
        <meta charset="<?php bloginfo('charset'); ?>">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
	<meta name="format-detection" content="telephone=no">
        <?php if (is_singular() && pings_open(get_queried_object())) : ?>
            <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
        <?php endif; ?>
        <?php /* <link rel="shortcut icon" type="image/png" href="<?php echo get_template_directory_uri(); ?>/images/favicon.png"> */ ?>
        <?php wp_head(); ?>
    </head>

    <body <?php body_class(); ?>>
        <header id="header" class="page-row">
            <div class="sub_header">
                <div class="container">
                    <ul id="top_links">
                        <?php
                        $email = get_field('email', 'options');
                        if ($email):
                            ?>
                            <li class="ti-email"><a href="mailto:<?php echo antispambot($email, true) ?>"><?php echo antispambot($email, false) ?></a></li>
                            <?php
                        endif;
                        
                        $phone = get_field('phone', 'options');

                        if ($phone):
                            ?>
                            <li class="ti-mobile"><a href="tel:<?php echo preg_replace('/[^0-9.]+/', '', $phone); ?>"><?php echo $phone; ?></a></li>
                            <?php
                        endif;
                        ?>
                    </ul>
                </div>
            </div>
            <div class="container">
                <a href="<?php echo esc_url(home_url('/')); ?>" id="logo" title="<?php bloginfo('name'); ?>"><img src="<?php the_field('logo', 'options') ?>"  alt="<?php bloginfo('name'); ?>" /></a>
                <?php if (has_nav_menu('mainmenu')) : ?>
                    <button class="menu_trigger" type="button">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <nav class="nav-bar">
                        <?php wp_nav_menu(array('theme_location' => 'mainmenu', 'menu_class' => 'clearfix', 'menu_id' => 'menu', 'container' => '', 'depth' => 1)); ?>
                    </nav>
                <?php endif; ?>
            </div>
            <!-- / container -->
        </header>
        <!-- / header -->