<div class="header">  
  <div class="container">
      <div class="row">
        <div class="col-mg-3 col-sm-4 col-xs-12">
          <div class="logo">
            <a href="<?php echo esc_url(home_url('/')); ?>" title="<?php bloginfo( 'name' ); ?>" rel="home">
              <?php if(get_theme_mod('andaman_logo_upload', 'enable') == true)  { ?>
              <img src="<?php echo esc_url(get_theme_mod('andaman_logo_upload', get_template_directory_uri() . '/assets/images/logo.png')); ?>" alt="<?php the_title_attribute(); ?>" style="height: <?php echo esc_attr(get_theme_mod('andaman_logo_height', '45px')); ?>;">
              <?php } else { ?>
                <h1 style="line-height:124px;margin:0;"><?php echo the_title(); ?></h1>
              <?php } ?>
            </a>
          </div>
        </div>
        <div class="col-mg-9 col-sm-8 hidden-xs">
          <?php if(get_theme_mod('andaman_top_contact') == true)  { ?>
            <ul class="contacts-top">
              <?php if(get_theme_mod('andaman_top_contact_address', 'enable') == true)  { ?><li><span><?php esc_html_e('Our Location','andaman') ?></span><?php echo esc_attr(get_theme_mod('andaman_top_contact_address', '455 Martinson, Los Angeles')); ?></li><?php }; ?> 
              <?php if(get_theme_mod('andaman_top_contact_phone', 'enable') == true)  { ?><li><span><?php esc_html_e('Office Phone','andaman') ?></span><a href="tel:<?php echo preg_replace('/\s+/', '',get_theme_mod('andaman_top_contact_phone', '+1 (043) 567-8930')); ?>"><?php echo esc_attr(get_theme_mod('andaman_top_contact_phone', '+1 (043) 567-8930')); ?></a></li><?php }; ?> 
              <?php if(get_theme_mod('andaman_top_contact_hours', 'enable') == true)  { ?><li><span><?php esc_html_e('Opening Hours','andaman') ?></span><?php echo esc_attr(get_theme_mod('andaman_top_contact_hours', 'Mon-Sut: 10 AM-8 PM')); ?></li><?php }; ?> 
            </ul>
          <?php }; ?> 
        </div>  
      </div>
    </div>
    <nav class="navbar navbar-wrap navbar-custom navbar-fixed-top menu-wrap sticky-menu">
      <div class="container">
        <div class="black-search-block">
          <div class="black-search-table">
            <div class="black-search-table-cell">
              <form role="search" method="get" id="searchform" action="<?php echo esc_url(home_url('/')); ?>" >
                <input type="text" class="focus-input" placeholder="<?php esc_attr_e('Type here to search', 'andaman') ?>" value="<?php echo get_search_query() ?>" name="s" id="s" />
              </form>
              <div class="close-black-block"><a href="#"><i class="fas fa-times"></i></a></div>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="col-md-8 col-sm-6 col-xs-6">
            <?php if(get_theme_mod('andaman_menu_select', 'standard') == 'standard')  { ?> 
              <div class="menu-center">
                <div class="menu-responsive desktop">
                  <div class="collapse navbar-collapse navbar-main-collapse pull-left responsive-menu">
                          <?php wp_nav_menu( array(
                            'theme_location' => 'menu',
                            'container' => false,
                            'menu_class' => 'nav navbar-nav',
                            'sort_column' => 'menu_order',
                            'walker' => new Andaman_My_Walker_Nav_Menu(),
                            'fallback_cb' => 'andaman_MenuFallback'
                          )); ?> 
                  </div>
                </div>
                <div class="menu-responsive mobile">
                  <div class="burger_andaman_normal_holder"><a href="#" class="nav-icon3" id="open-button"><span></span><span></span><span></span><span></span><span></span><span></span></a></div>
                    <div class="burger_andaman_menu_overlay_normal">
                      <div class="burger_andaman_menu_vertical">
                        <?php wp_nav_menu( array(
                          'theme_location' => 'menu',
                          'menu_class' => 'burger_andaman_main_menu',
                          'depth' => 3,
                        )); ?>
                      </div>
                    </div>
                </div>
            </div>
            <?php } else { ?>
              <div class="menu-center">
                <div class="menu-responsive desktop">
                  <div class="collapse navbar-collapse navbar-main-collapse pull-left responsive-menu">
                          <?php wp_nav_menu( array(
                            'theme_location' => 'onepage-menu',
                            'container' => false,
                            'menu_class' => 'nav navbar-nav share-class',
                            'menu_id' => 'menu-onepage',
                            'sort_column' => 'menu_order',
                            'walker' => new Andaman_My_Walker_Nav_Menu(),
                            'fallback_cb' => 'andaman_MenuFallback'
                          )); ?> 
                  </div>
                </div>
                <div class="menu-responsive mobile">
                  <div class="burger_andaman_normal_holder"><a href="#" class="nav-icon3" id="open-button"><span></span><span></span><span></span><span></span><span></span><span></span></a></div>
                    <div class="burger_andaman_menu_overlay_normal">
                      <div class="burger_andaman_menu_vertical">
                        <?php wp_nav_menu( array(
                          'theme_location' => 'onepage-menu',
                          'menu_class' => 'burger_andaman_main_menu share-class',
                          'menu_id' => 'menu-onepage',
                          'depth' => 1,
                        )); ?>
                      </div>
                    </div>
                </div>
            </div>
            <?php } ?>
          </div>



          <div class="col-md-4 col-sm-6 col-xs-6">
            <ul class="soc-top pull-right">
              <?php if(get_theme_mod('andaman_menu_soc') == true)  { ?>
                <?php if(get_theme_mod('andaman_menu_soc_facebook', 'enable') == true) {?><li><a target="_blank" href="<?php echo esc_url(stripslashes(get_theme_mod('andaman_menu_soc_facebook'))) ?>"><i class="fab fa-facebook-f"></i></a></li><?php }; ?> 
                <?php if(get_theme_mod('andaman_menu_soc_twitter', 'enable') == true) {?><li><a target="_blank" href="<?php echo esc_url(stripslashes(get_theme_mod('andaman_menu_soc_twitter'))) ?>"><i class="fab fa-twitter"></i></a></li><?php }; ?> 
                <?php if(get_theme_mod('andaman_menu_soc_googleplus', 'enable') == true) {?><li><a target="_blank" href="<?php echo esc_url(stripslashes(get_theme_mod('andaman_menu_soc_googleplus'))) ?>"><i class="fab fa-google-plus-g"></i></a></li><?php }; ?> 
                <?php if(get_theme_mod('andaman_menu_soc_linkedin') == true) {?><li><a target="_blank" href="<?php echo esc_url(stripslashes(get_theme_mod('andaman_menu_soc_linkedin'))) ?>"><i class="fab fa-linkedin-in"></i></a></li><?php }; ?> 
                <?php if(get_theme_mod('andaman_menu_soc_dribbble') == true) {?><li><a target="_blank" href="<?php echo esc_url(stripslashes(get_theme_mod('andaman_menu_soc_dribbble'))) ?>"><i class="fab fa-dribbble"></i></a></li><?php }; ?> 
                <?php if(get_theme_mod('andaman_menu_soc_instagram') == true) {?><li><a target="_blank" href="<?php echo esc_url(stripslashes(get_theme_mod('andaman_menu_soc_instagram'))) ?>"><i class="fab fa-instagram"></i></a></li><?php }; ?> 
                <?php if(get_theme_mod('andaman_menu_soc_youtube') == true) {?><li><a target="_blank" href="<?php echo esc_url(stripslashes(get_theme_mod('andaman_menu_soc_youtube'))) ?>"><i class="fab fa-youtube"></i></a></li><?php }; ?>   
                <?php if(get_theme_mod('andaman_menu_soc_flickr') == true) {?><li><a target="_blank" href="<?php echo esc_url(stripslashes(get_theme_mod('andaman_menu_soc_flickr'))) ?>"><i class="fab fa-flickr"></i></a></li><?php }; ?>   
                <?php if(get_theme_mod('andaman_menu_soc_tumblr') == true) {?><li><a target="_blank" href="<?php echo esc_url(stripslashes(get_theme_mod('andaman_menu_soc_tumblr'))) ?>"><i class="fab fa-tumblr"></i></a></li><?php }; ?>   
                <?php if(get_theme_mod('andaman_menu_soc_foursquare') == true) {?><li><a target="_blank" href="<?php echo esc_url(stripslashes(get_theme_mod('andaman_menu_soc_foursquare'))) ?>"><i class="fab fa-foursquare"></i></a></li><?php }; ?>  
                <?php if(get_theme_mod('andaman_menu_soc_vk') == true) {?><li><a target="_blank" href="<?php echo esc_url(stripslashes(get_theme_mod('andaman_menu_soc_vk'))) ?>"><i class="fab fa-vk"></i></a></li><?php }; ?>   
                <?php if(get_theme_mod('andaman_menu_soc_behance') == true) {?><li><a target="_blank" href="<?php echo esc_url(stripslashes(get_theme_mod('andaman_menu_soc_behance'))) ?>"><i class="fab fa-behance"></i></a></li><?php }; ?>   
                <?php if(get_theme_mod('andaman_menu_soc_pinterest') == true) {?><li><a target="_blank" href="<?php echo esc_url(stripslashes(get_theme_mod('andaman_menu_soc_pinterest'))) ?>"><i class="fab fa-pinterest-p"></i></a></li><?php }; ?>
              <?php }; ?>
              <?php if(get_theme_mod('andaman_menu_search') == true)  { ?>
              <li class="search">
                <div class="search-icon-header">
                  <a href="#"><i class="fas fa-search"></i></a>
                </div>
              </li>
              <?php }; ?>              
              <?php if ( is_plugin_active( 'polylang/polylang.php' )) { ?>
                  <?php if(get_theme_mod('andaman_language') == true)  { ?>
                  <li class="lang"><a href="<?php echo esc_url(home_url('/')); ?>"><img src="<?php echo get_template_directory_uri() . '/assets/images/lang-' . pll_current_language('slug') . '.png'; ?>" alt=""> <?php echo pll_current_language('name'); ?></a>
                    <ul class="lang-ul">
                    <?php 
                      $languages = pll_the_languages( array('raw'=> true, 'hide_if_no_translation'=>true, 'hide_current'=>true) ); 
                      foreach ($languages as $language )  {
                        echo '<li><a href="'.$language['url'].'"><img src="'.get_template_directory_uri(). '/assets/images/lang-'.$language['slug'].'.png" alt="'.$language['slug'].'">' .$language['name'].'</a></li>';
                      };
                    ?>
                    </ul>
                  </li>
                <?php }; ?>
              <?php }; ?>
            </ul>
          </div>
      </div> 
    </div>
  </nav>
</div>