<?php
/**
 * Header template for the theme
 *
 * Displays all of the <head> section and everything up till <div class="wrapper_content">.
 *
 * @since luxuryconcept
 */
?><!DOCTYPE html>
<html <?php language_attributes();?>>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Meta for IE support -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    
  	<?php wp_head(); ?>

</head>
<body <?php body_class(); ?>>
<div class="main_wrapper">
	
<?php wp_body_open(); ?>
 <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'luxuryconceptfree' ); ?></a>
 
<div class="wrapper-grid">
	
	<?php if(esc_attr(get_theme_mod( 'luxuryconcept_topbar_message')) != ''){ ?>
		<section class="topbar">
			<div class="topbar__content">
				<?php if(esc_attr(get_theme_mod( 'luxuryconcept_topbar_message')) != '' && esc_attr(get_theme_mod( 'luxuryconcept_topbar_link')) == ''){ 
						echo esc_attr(get_theme_mod( 'luxuryconcept_topbar_message'));
				}
				elseif(esc_attr(get_theme_mod( 'luxuryconcept_topbar_message')) != '' && esc_attr(get_theme_mod( 'luxuryconcept_topbar_link')) != ''){
					?> 
					<a href="<?php echo esc_url(get_theme_mod( 'luxuryconcept_topbar_link')); ?>" rel="nofollow"><?php echo esc_html(get_theme_mod( 'luxuryconcept_topbar_message')); ?></a>
				<?php } ?> 

			</div>
		</section>
	<?php } ?>
    <header id="header-section" class="header">
	  <div class="header__content">
        <?php 
        $luxuryconcept_logo_id = get_theme_mod( 'custom_logo' );
        $luxuryconcept_logo = wp_get_attachment_image_src( $luxuryconcept_logo_id , 'full' ); ?>
       
	  <div class="header__logo">
			<?php if ( has_custom_logo() ) { ?>
			  <a href="<?php echo esc_url(home_url()); ?>"><img width="265" height="110" class="header__logo-img" src="<?php echo esc_url( $luxuryconcept_logo[0] ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' )); ?>"></a>
			<?php } else { ?>
			  <a href="<?php echo esc_url(home_url()); ?>"> 	       
			     <?php if( get_theme_mod( 'luxuryconceptfree_site_title', 1 ) != 0) : ?><h1 class="site-title"><?php bloginfo('name'); ?></h1> <?php endif; ?>
			     <?php if( get_theme_mod( 'luxuryconceptfree_site_description', 0 ) != 0) : ?> <h2 class="site-description"><?php bloginfo('description'); ?></h2>  <?php endif; ?>
			  </a>
			<?php } ?>
	  </div>	  
	  
	  <div class="header__hamburger">
		  <button class="icon-hamburger">
				<strong><?php esc_html_e( 'Menu', 'luxuryconceptfree' ); ?></strong>
				<span></span>
				<span></span>
				<span></span>
		  </button>
      </div>
	
	<!-- <nav Header Menu -->
	<nav class="header__menu">	
	 <?php // insert custom menu header
        wp_nav_menu(array(
          'theme_location' => 'headermenu',
          'container' => false,
		  'depth' => 5,
          'items_wrap' => '<ul class="menu">%3$s</ul>'
        ));
      ?>    		
	</nav>	
	 <!-- </nav>-->
		
	 <!-- <nav> Quick Menu -->
	 <nav class="header__quick">	
      <?php if ( has_nav_menu( 'quickmenu' ) ) { ?>		   
           <?php // insert quick menu
            wp_nav_menu(array(
              'theme_location' => 'quickmenu',
              'container' => false,
			  'depth' => 1,
			   'items_wrap' => '<ul class="quickmenu">%3$s</ul>'
            ));
            ?>    
		   
      <?php } ?>	
		 		 
	  			<!-- Widget Cart menu -->
					<?php do_action('luxuryconceptfree_show_header_cart'); ?>
				<!-- / Widget Cart menu -->	

	  <!--</nav>-->
	  </nav>		  
	</div>
  </header>
	
  <div class="wrapper_content load"> <!-- Begin wrapper content -->
	  
	   
	  	<?php /* INSERT BREADCRUMBS */
			do_action('luxuryconceptfree_show_breadcrumb');			 
	    ?>

		<?php if (is_front_page()) { ?>
			<!-- Hidden SEO title home -->
			<h1 class="home-title"><?php bloginfo('name'); ?> -  <?php bloginfo('description'); ?></h1>
		<?php } ?>
