<?php
global $mf_options;
if (isset($mf_options['mobile-logo']['url'])) {     $mlogo = $mf_options['mobile-logo']['url'];    }else{     $mlogo = esc_url_raw( get_template_directory_uri().'/assets/img/mf-dark.png'); ;}
$telephone = $mf_options['text-mobile-phone'];
$email = $mf_options['text-mobile-mail'];
$moblang = $mf_options['moblang'];
$showsocial = $mf_options['showsocial'];
$header14 = get_template_directory_uri().'/assets/img/header14.png';
if (isset($mf_options['logo-type'])) {     $logotype = $mf_options['logo-type'];    }else{     $logotype = 1; ;} 
$logotext = $mf_options['logo-text'];
?>
<?php if ($mf_options['page-header-version'] != $header14) { ?>
<header class="header mob-header cart-true nz-clearfix">
  <div class="mob-header-top nz-clearfix">
    <div class="container plr-no">
	
      <div class="logo logo-mob">
	  <a href="<?php echo esc_url(site_url()); ?>">
	  <?php if ( $logotype == '1' ) { ?>
        <img src="<?php echo esc_url($mlogo); ?>" alt="">
		<?php }else { ?>
					 <?php echo esc_attr($logotext); ?>
					 <?php } ?>
		 </a>
      </div>
	  <?php if ($moblang == '1') { ?>
	  <div class="lang"><?php do_action('wpml_add_language_selector');?></div>
	  <?php }else {} ?>
      <span class="mob-menu-toggle">
      </span>
    </div>
  </div>
</header>
<div class="mob-header-content nz-clearfix">
  <span class="mob-menu-toggle2">
  </span>  
<?php   if (isset($mf_options['hide-mobile-menu'])) {     $hidemobilemenu = $mf_options['hide-mobile-menu'];    }else{     $hidemobilemenu = 0; ;} ?>
  <div class="custom-scroll-bar
  	 	          <?php if ($hidemobilemenu == '1') { ?>
            <?php echo " mob-menu-toggle2";?>
		         <?php  }else { echo ""; }?>
				 ">
		<?php if ($showsocial == '1') { ?>
		<div class="list-inline footer-social"><?php mf_social_media() ?></div>
		<div class="mob-menu nz-clearfix"><?php mf_top_menu() ?></div>
		<?php  }else { echo ""; }?>																 
    <?php mf_mobile_menu() ?>
    <div class="slogan nz-clearfix">
      <div>
        <div class="nz-bar">
          <span class="nz-icon none small icon-phone animate-false">
          </span>
          <span class="header-top-label">
		  	 <?php   if (isset($mf_options['phone-on-off'])) {     $mobilephone = $mf_options['phone-on-off'];    }else{     $mobilephone = 0; ;} ?>
	 	          <?php if ($mobilephone == '1') { ?>
				  <a href="tel:<?php echo esc_html($telephone); ?>" target="_top"><?php echo esc_html($telephone); ?></a>
            		         <?php  }else { echo ""; }?>
          </span>
        </div>
        <div class="nz-bar">
          <span class="nz-icon none small icon-envelope animate-false">
          </span>
		  		  	 <?php   if (isset($mf_options['email-on-off'])) {     $mobilemail = $mf_options['email-on-off'];    }else{     $mobilemail = 0; ;} ?>
	 	          <?php if ($mobilemail == '1') { ?>
		  <a href="mailto:<?php echo esc_html($email); ?>" target="_top"><?php echo esc_html($email); ?></a>
		  		         <?php  }else { echo ""; }?>
        </div>
      </div>
    </div>
  </div>
</div>
<div class="mob-overlay">&nbsp;
</div>
<?php } ?>
