<?php $mt_header_phone = get_theme_mod( 'mt_header_phone');
		$mt_header_address = get_theme_mod( 'mt_header_address');
	$mt_header_email = get_theme_mod( 'mt_header_email');
	
	$mt_social_facebook_url = get_theme_mod( 'mt_social_facebook_url');
	$mt_social_twitter_url = get_theme_mod( 'mt_social_twitter_url');
	$mt_social_instagram_url = get_theme_mod( 'mt_social_instagram_url');
	$mt_social_linkedin_url = get_theme_mod( 'mt_social_linkedin_url');
	$mt_social_pinterest_url = get_theme_mod( 'mt_social_pinterest_url');  
	$mt_social_youtube_url = get_theme_mod( 'mt_social_youtube_url'); 
	$mt_social_vimeo_url = get_theme_mod( 'mt_social_vimeo_url');
	$mt_social_dribbble_url = get_theme_mod( 'mt_social_dribbble_url');  
	$mt_social_skype_url = get_theme_mod( 'mt_social_skype_url');  
	$mt_social_email_url = get_theme_mod( 'mt_social_email_url');		
 ?>

<div class="menu-mask"></div><!-- /menu-mask -->
<div class="mobile-menu-holder">

<div class="modal-menu-container">
 <div class="exit-mobile">
<span class="icon-bar1"></span>
<span class="icon-bar2"></span>
 </div>

    <?php if (has_nav_menu('primary-menu')) {

		 wp_nav_menu(array('theme_location' => 'primary-menu', 'menu_class' => 'menu-mobile', 'container' => 'false'));
		 
	}   ?>
	
</div>	

<div class="menu-contact">

<ul class="mobile-contact">
<?php if (!empty($mt_header_address) ): ?>
<li><i class="fas fa-map-marker-alt"></i> <?php echo wp_kses_post($mt_header_address);?></li>
<?php endif; ?>

<?php if (!empty($mt_header_phone) ): ?>
<li><i class="fas fa-phone-alt"></i> <?php echo wp_kses_post($mt_header_phone);?></li>
<?php endif; ?>

<?php if (!empty($mt_header_email) ): ?>
<li><i class="far fa-envelope"></i> <?php echo wp_kses_post($mt_header_email);?></li>
<?php endif; ?>
</ul>

<ul class="social-media">
     
      <?php if (!empty($mt_social_facebook_url) ): ?>
         <li><a class="social-facebook" href="<?php echo esc_url($mt_social_facebook_url);?>" target="_blank"><i class="fab fa-facebook-f"></i></a></li>
         <?php endif; ?>
         <?php if (!empty($mt_social_twitter_url) ): ?>
         <li><a class="social-twitter" href="<?php echo esc_url($mt_social_twitter_url);?>" target="_blank"><i class="fab fa-twitter"></i></a></li>
         <?php endif; ?>
		 <?php if (!empty($mt_social_instagram_url) ): ?>
         <li><a class="social-instagram" href="<?php echo esc_url($mt_social_instagram_url);?>" target="_blank"><i class="fab fa-instagram"></i></a></li>
         <?php endif; ?>
		 <?php if (!empty($mt_social_pinterest_url) ): ?>
         <li><a class="social-pinterest" href="<?php echo esc_url($mt_social_pinterest_url);?>" target="_blank"><i class="fab fa-pinterest"></i></a></li>
         <?php endif; ?>
         <?php if (!empty($mt_social_linkedin_url) ): ?>
         <li><a class="social-linkedin" href="<?php echo esc_url($mt_social_linkedin_url);?>" target="_blank"><i class="fab fa-linkedin"></i></a></li>
         <?php endif; ?>
         <?php if (!empty($mt_social_youtube_url) ): ?>
         <li><a class="social-youtube" href="<?php echo esc_url($mt_social_youtube_url);?>" target="_blank"><i class="fab fa-youtube"></i></a></li>
         <?php endif; ?>
         <?php if (!empty($mt_social_vimeo_url) ): ?>
         <li><a class="social-vimeo" href="<?php echo esc_url($mt_social_vimeo_url);?>" target="_blank"><i class="fab fa-vimeo-square"></i></a></li>
         <?php endif; ?>
         <?php if (!empty($mt_social_dribbble_url) ): ?>
         <li><a class="social-dribbble" href="<?php echo esc_url($mt_social_dribbble_url);?>" target="_blank"><i class="fab fa-dribbble"></i></a></li>
         <?php endif; ?>
         <?php if (!empty($mt_social_skype_url) ): ?>
         <li><a class="social-skype" href="<?php echo wp_kses_post($mt_social_skype_url);?>" target="_blank"><i class="fab fa-skype"></i></a></li>
         <?php endif; ?>
		<?php if (!empty($mt_social_email_url) ): ?>
		<li><a class="social-email" href="mailto:<?php echo esc_url($mt_social_email_url);?>" target="_blank"><i class="far fa-envelope"></i></a></li>
		<?php endif; ?>	
      </ul>

</div><!-- /menu-contact-->

</div><!-- /mobile-menu-holder-->


<div class="mainWrapper">

<header id="header-1" class="container header-1">

<div class="headerHolder headerHolder1">

<div class="nav-button-holder">

	<?php if (has_nav_menu('primary-menu')) { ?>
	<button type="button" class="nav-button">
    <span class="icon-bar"></span>
    </button>
      
      <?php } ?>
      
</div><!--nav-button-holder-->
 
<div class="social-email">

	<ul class="social-media">
     
     <?php if (!empty($mt_social_facebook_url) ): ?>
         <li><a class="social-facebook" href="<?php echo esc_url($mt_social_facebook_url);?>" target="_blank"><i class="fab fa-facebook-f"></i></a></li>
         <?php endif; ?>
         <?php if (!empty($mt_social_twitter_url) ): ?>
         <li><a class="social-twitter" href="<?php echo esc_url($mt_social_twitter_url);?>" target="_blank"><i class="fab fa-twitter"></i></a></li>
         <?php endif; ?>
		 <?php if (!empty($mt_social_instagram_url) ): ?>
         <li><a class="social-instagram" href="<?php echo esc_url($mt_social_instagram_url);?>" target="_blank"><i class="fab fa-instagram"></i></a></li>
         <?php endif; ?>
		 <?php if (!empty($mt_social_pinterest_url) ): ?>
         <li><a class="social-pinterest" href="<?php echo esc_url($mt_social_pinterest_url);?>" target="_blank"><i class="fab fa-pinterest"></i></a></li>
         <?php endif; ?>
         <?php if (!empty($mt_social_linkedin_url) ): ?>
         <li><a class="social-linkedin" href="<?php echo esc_url($mt_social_linkedin_url);?>" target="_blank"><i class="fab fa-linkedin"></i></a></li>
         <?php endif; ?>
         <?php if (!empty($mt_social_youtube_url) ): ?>
         <li><a class="social-youtube" href="<?php echo esc_url($mt_social_youtube_url);?>" target="_blank"><i class="fab fa-youtube"></i></a></li>
         <?php endif; ?>
         <?php if (!empty($mt_social_vimeo_url) ): ?>
         <li><a class="social-vimeo" href="<?php echo esc_url($mt_social_vimeo_url);?>" target="_blank"><i class="fab fa-vimeo-square"></i></a></li>
         <?php endif; ?>
         <?php if (!empty($mt_social_dribbble_url) ): ?>
         <li><a class="social-dribbble" href="<?php echo esc_url($mt_social_dribbble_url);?>" target="_blank"><i class="fab fa-dribbble"></i></a></li>
         <?php endif; ?>
         <?php if (!empty($mt_social_skype_url) ): ?>
         <li><a class="social-skype" href="<?php echo wp_kses_post($mt_social_skype_url);?>" target="_blank"><i class="fab fa-skype"></i></a></li>
         <?php endif; ?>
			<?php if (!empty($mt_social_email_url) ): ?>
		<li><a class="social-email" href="mailto:<?php echo esc_url($mt_social_email_url);?>" target="_blank"><i class="far fa-envelope"></i></a></li>
		<?php endif; ?>
      </ul>

<?php if (!empty($mt_header_email) ): ?>
<div class="header-email"><i class="far fa-envelope"></i> <?php echo wp_kses_post($mt_header_email);?></div>

 <?php endif; ?>
 
 </div><!-- /social-mail-->
 
 <?php 	$mt_logo_img = get_theme_mod( 'custom_logo' );
		$mt_logo_img_url = wp_get_attachment_image_src( $mt_logo_img , 'full' );
		  
		 if (!empty($mt_logo_img)):
	?>
    
		    <div class="logo logo-1"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img class="img-fluid" src="<?php echo esc_url($mt_logo_img_url[0]); ?>" width="<?php echo esc_attr($mt_logo_img_url[1]); ?>" height="<?php echo esc_attr($mt_logo_img_url[2]); ?>" alt="<?php bloginfo('name'); ?>" /></a></div>
    
    <?php else: ?>
    
    <div class="logo logo-1"><div class="logo-txt"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo('name'); ?></a></div></div>
    
    <?php endif; ?>
	
<?php if (!empty($mt_header_phone) || !empty($mt_header_address) ): ?>

<div class="header-address">

<?php if (!empty($mt_header_phone) ): ?> <span><i class="fas fa-phone-alt"></i> <?php echo wp_kses_post($mt_header_phone);?></span>  <?php endif; ?>	

<?php if (!empty($mt_header_address) ): ?> <span><i class="fas fa-map-marker-alt"></i> <?php echo wp_kses_post($mt_header_address);?></span>  <?php endif; ?>	

</div>

 <?php endif; ?>	
 
 </div>

 </header>
 
 <nav class="nav-holder nav-holder-1">
 
 <div class="container">

<?php if (has_nav_menu('primary-menu')) {

		 wp_nav_menu(array('theme_location' => 'primary-menu', 'menu_class' => 'menu-nav menu-nav-1', 'container' => 'false'));
		 
	}   ?>

</div>	
</nav>