<?php

/*
Header Style 1
*/
global $unipix_option;
$drob_aligns        = (!empty($unipix_option['drob_align_s'])) ? 'menu-drob-align' : '';
$mobile_hide_search = (!empty($unipix_option['mobile_off_search'])) ? 'mobile-hide-search' : '';
$mobile_hide_cart   = (!empty($unipix_option['mobile_off_cart'])) ? 'mobile-hide-cart-no' : 'mobile-hide-cart';
$mobile_hide_button = (!empty($unipix_option['mobile_off_button'])) ? 'mobile-hide-button' : '';
$mobile_logo_height = !empty($unipix_option['mobile_logo_height']) ? 'style = "max-height: '.$unipix_option['mobile_logo_height'].'"' : '';

// Header Options here
require get_parent_theme_file_path('inc/header/header-options.php');
//off convas here
get_template_part('inc/header/off-canvas');
?> 

<?php if ( has_nav_menu( 'menu-1' ) ) {
    $menugap_minus = 'menugap-minus';
}else{
    $menugap_minus = '';
}

    //include sticky search here
    get_template_part('inc/header/search');
?>

<!-- Header Menu Start -->  
<?php
$menu_bg_color = !empty($menu_bg) ? 'style=background:'.$menu_bg.'' : '';
?>   
<div class="menu-area menu_type_<?php echo esc_attr($main_menu_type);?>" <?php echo wp_kses($menu_bg_color, 'unipix');?>>    
    <div class="menu_one">
            <div class="row-table"> 
            <div class="col-cell header-logo">
                <?php 
                 if (!empty( $unipix_option['wplogo_mobile_rt']['url'] ) ) { ?>
                  <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><img <?php echo wp_kses($mobile_logo_height, 'unipix');?> src="<?php echo esc_url( $unipix_option['wplogo_mobile_rt']['url']); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>"></a>
                <?php }else{
                 get_template_part('inc/header/logo'); 
                } ?>
            </div>  
                    
            <div class="col-cell menu-responsive primary-menu">  
                <?php                  
                    if(is_page_template('page-single.php')){
                        require get_parent_theme_file_path('inc/header/menu-single.php'); 
                    }else{
                        require get_parent_theme_file_path('inc/header/menu.php'); 
                    }               
                ?>
            </div>            

            <div class="col-cell header-quote">                
                <div class="sidebarmenu-area text-right primary-menu mobilehum">                                    
                <ul class="offcanvas-icon layout-2">
					<li class="nav-link-container center"> 
						<a href="#" class="nav-menu-link menu-button">
							
							<svg width="20" height="16" viewBox="0 0 20 16" fill="none" xmlns="http://www.w3.org/2000/svg">
							<rect y="14" width="18" height="2" fill="#1C2539"></rect>
							<rect y="7" width="18" height="2" fill="#1C2539"></rect>
							<rect width="18" height="2" fill="#1C2539"></rect>
							</svg>
																	
						</a> 
					</li>
				</ul>                

            </div> 
        </div>
    </div>    
</div> 
