<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
  <meta charset="<?php bloginfo( 'charset' ); ?>">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="profile" href="http://gmpg.org/xfn/11">
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  <?php $allowed_html_array = wp_kses_allowed_html( 'post' )?>
  <?php if ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ) {?><link rel="shortcut icon" href="<?php echo esc_url(get_theme_mod('andaman_logo_favicon', get_template_directory_uri() . '/assets/images/favicon.png')); ?>"> <?php };?>
	<?php if(get_theme_mod('andaman_logo_favicon'))  : ?><link rel="apple-touch-icon" sizes="144x144" href="<?php echo esc_url(get_theme_mod('andaman_logo_favicon', get_template_directory_uri() . '/assets/images/favicon.png')); ?>" /><?php endif; ?>
  <?php wp_head(); ?>
</head>
<body id="page-top" <?php body_class(); ?>>
<?php if(get_theme_mod('andaman_preloader','enable') == true)  { ?>
<div id="preloader">
  <div id="status">
    <div class="circle1"></div>
    <div class="circle2"></div>
    <div class="circle3"></div>
  </div>
</div>
<?php }; ?>  
<?php if(get_theme_mod('andaman_scroll_up','enable') == true)  { ?><a href="#top" class="scroll-top scroll-top-hidden"><i class="fas fa-angle-up"></i></a><?php }; ?>  
<div class="wrapper">
<?php if(!is_404()) { 
  if(get_theme_mod('andaman_menu_style', 'style1') == 'style1')  {
    get_template_part( 'framework/content/menu'); 
  } else {
    get_template_part( 'framework/content/menu2'); 
  }
};
?>
<?php if(!is_page_template( array('homepage.php', 'coming-soon.php'))) {?>
<?php if(!is_search()) {?>
<?php if(!is_404()) {?>
<?php if(!is_single()) {?>
    <?php $post = get_post($id); $image = wp_get_attachment_image_src( get_post_thumbnail_id( $id ), 'wall-portfolio-squre'); ?> 
      <?php if (has_post_thumbnail()) { ?> 
        <div class="tag_line_image jarallax" style="background-image: url(<?php echo esc_url($image[0]); ?>)">
      <?php } else {?>
        <div class="tag_line_image jarallax" style="background-image: url(<?php echo get_template_directory_uri() . '/assets/images/10.jpg' ?>)">
      <?php };?>
      <div class="tag-body">
        <div class="container">
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                  <h1 class="tag_line_title">
                    <?php if (is_page()){ 
                        the_title();
                    } elseif (is_front_page()) { 
                        esc_html_e('Blog', 'andaman');
                    } elseif (is_category() || is_tag()) { 
                      printf( esc_html__( '%s', 'andaman' ), '<span>' . single_cat_title( '', false ) . '</span>' );
                    } elseif (is_archive()) { 
                      if ( is_day() ) :
                        printf( esc_html__( '%s', 'andaman' ), '<span>' . get_the_date() . '</span>' );
                      elseif ( is_month() ) :
                        printf( esc_html__( '%s', 'andaman' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'andaman' ) ) . '</span>' );
                      elseif ( is_year() ) :
                        printf( esc_html__( '%s', 'andaman' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'andaman' ) ) . '</span>' );
                      else :
                        esc_html_e( 'Archives', 'andaman' );
                      endif;
                    }; ?>  
                    </h1>
                </div>
            </div>
        </div>
    </div>
  </div>
  <?php };?>
<?php };?>
<?php } else { ?>
    <?php if(get_theme_mod('andaman_search_image', 'enable')) {?>
      <div class="tag_line tag_line_image jarallax" style="background-image: url(<?php echo esc_url(get_theme_mod('andaman_search_image', get_template_directory_uri() . '/assets/images/10.jpg')); ?>)">
    <?php } else { ?>
      <div class="tag_line tag_line_image jarallax" style="background-image: url(<?php echo get_template_directory_uri() . '/assets/images/10.jpg' ?>">
    <?php } ?>
      <div class="tag-body">
        <div class="container">
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                  <h1 class="tag_line_title">
                    <?php printf( wp_kses( __('Search Results: <span class="colored">%s</span>', 'andaman'), $allowed_html_array ), get_search_query() ); ?>
                  </h1>
                </div>
            </div>
        </div>
      </div>
    </div>
<?php };?>
<?php };?>
<div class="main-content">