<?php $options = _WSH()->option();
	manufacto_bunch_global_variable();
?>
 	
    <!-- Main Header-->
    <header class="main-header">
    	
        <!--Header Top-->
    	<div class="header-top">
        	<div class="auto-container">
            	<div class="inner-container clearfix">
                    <div class="top-left">
                        <ul class="clearfix">
                            <?php if(manufacto_set($options, 'welcome_text')): ?><li><?php echo wp_kses_post(manufacto_set($options, 'welcome_text')); ?></li><?php endif; ?>
                            <?php if(manufacto_set($options, 'address')): ?><li><a href="javascript:;"><span class="icon fa fa-globe"></span><?php echo wp_kses_post(manufacto_set($options, 'address')); ?></a></li><?php endif; ?>
                            <?php if(manufacto_set($options, 'phone_1')): ?><li><a href="telto:<?php echo esc_attr(manufacto_set($options, 'phone_1')); ?>"><span class="icon fa fa-volume-control-phone"></span> <?php echo wp_kses_post(manufacto_set($options, 'phone_1')); ?></a></li><?php endif; ?>
                        </ul>
                    </div>
                    
                    <?php if(manufacto_set($options, 'head_social_1')): ?>
						<?php if(manufacto_set( $options, 'social_media' ) && is_array( manufacto_set( $options, 'social_media' ) )): ?>
                            <div class="top-right clearfix">
                                <ul class="social-icon-one">
                                    <?php $social_icons = manufacto_set( $options, 'social_media' );
										foreach( manufacto_set( $social_icons, 'social_media' ) as $social_icon ):
										if( isset( $social_icon['tocopy' ] ) ) continue; ?>
										<li><a href="<?php echo esc_url(manufacto_set( $social_icon, 'social_link')); ?>"><span class="fa <?php echo esc_attr(manufacto_set( $social_icon, 'social_icon')); ?>"></span></a></li>
									<?php endforeach; ?>
                                </ul>
                            </div>
                        <?php endif;?>
                    <?php endif;?>
                </div>
            </div>
        </div>
        
    	<!--Header-Upper-->
        <div class="header-upper">
        	<div class="auto-container">
            	<div class="clearfix">
                	
                	<div class="pull-left logo-outer">
                    	<?php if(manufacto_set($options, 'logo_image')):?>
                            <div class="logo"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url(manufacto_set($options, 'logo_image'));?>" alt="<?php esc_html_e('Mecaval', 'manufacto');?>" title="<?php esc_html_e('Mecaval', 'manufacto');?>"></a></div>
                        <?php else:?>
                            <div class="logo"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url(get_template_directory_uri().'/images/logo.png');?>" alt="<?php esc_html_e('Mecaval', 'manufacto');?>"></a></div>
                        <?php endif;?>
                    </div>
                    
                    <div class="pull-right upper-right clearfix">
                    	<?php if(manufacto_set($options, 'certified_company')): ?>
                        <!--Info Box-->
                        <div class="upper-column info-box">
                        	<div class="icon-box"><span class="flaticon-stamp-1"></span></div>
                            <ul>
                            	<?php echo wp_kses_post(manufacto_set($options, 'certified_company')); ?>
                            </ul>
                        </div>
                        <?php endif; ?>
                        
						<?php if(manufacto_set($options, 'great_industry')): ?>
                        <!--Info Box-->
                        <div class="upper-column info-box">
                        	<div class="icon-box"><span class="flaticon-trophy-2"></span></div>
                            <ul>
                            	<?php echo wp_kses_post(manufacto_set($options, 'great_industry')); ?>
                            </ul>
                        </div>
                        <?php endif; ?>
                        
						<?php if((manufacto_set($options, 'btn_title')) && (manufacto_set($options, 'btn_link'))): ?>
                        <!--Info Box-->
                        <div class="upper-column info-box">
                        	<a href="<?php echo esc_url(manufacto_set($options, 'btn_link')); ?>" class="order-btn theme-btn"><?php echo wp_kses_post(manufacto_set($options, 'btn_title')); ?></a>
                        </div>
                        <?php endif; ?>
                    </div>
                    
                </div>
            </div>
        </div>
        <!--End Header Upper-->
        
        <!--Header Lower-->
        <div class="header-lower">
            
        	<div class="auto-container">
            	<div class="nav-outer clearfix">
                    <!-- Main Menu -->
                    <nav class="main-menu">
                        <div class="navbar-header">
                            <!-- Toggle Button -->    	
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            </button>
                        </div>
                        
                        <div class="navbar-collapse collapse clearfix">
                            <ul class="navigation clearfix">
                                <?php wp_nav_menu( array( 'theme_location' => 'main_menu', 'container_id' => 'navbar-collapse-1',
									'container_class'=>'navbar-collapse collapse navbar-right',
									'menu_class'=>'nav navbar-nav',
									'fallback_cb'=>false, 
									'items_wrap' => '%3$s', 
									'container'=>false,
									'walker'=> new Bunch_Bootstrap_walker()  
								) ); ?>
                            </ul>
                        </div>
                    </nav>
                    <!-- Main Menu End-->
                    <div class="outer-box">
                    	
                        <!--Search Box-->
                        <div class="dropdown dropdown-outer">
                            <button class="search-box-btn dropdown-toggle" type="button" id="dropdownMenu3" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="fa fa-search"></span></button>
                            <ul class="dropdown-menu pull-right search-panel" aria-labelledby="dropdownMenu3">
                                <li class="panel-outer">
                                    <div class="form-container">
                                        <?php get_template_part('searchform2')?>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        
                    </div>
                </div>
            </div>
        </div>
        <!--End Header Lower-->
        
        <!--Sticky Header-->
        <div class="sticky-header">
        	<div class="auto-container clearfix">
            	<!--Logo-->
            	<div class="logo pull-left">
                	<?php if(manufacto_set($options, 'responsive_logo_image')):?>
                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="img-responsive"><img src="<?php echo esc_url(manufacto_set($options, 'responsive_logo_image'));?>" alt="<?php esc_html_e('Mecaval', 'manufacto');?>" title="<?php esc_html_e('Mecaval', 'manufacto');?>"></a>
                    <?php else:?>
                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="img-responsive"><img src="<?php echo esc_url(get_template_directory_uri().'/images/logo-small.png');?>" alt="<?php esc_html_e('Mecaval', 'manufacto');?>"></a>
                    <?php endif;?>
                </div>
                
                <!--Right Col-->
                <div class="right-col pull-right">
                	<!-- Main Menu -->
                    <nav class="main-menu">
                        <div class="navbar-header">
                            <!-- Toggle Button -->    	
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                        </div>
                        
                        <div class="navbar-collapse collapse clearfix">
                            <ul class="navigation clearfix">
                                <?php wp_nav_menu( array( 'theme_location' => 'main_menu', 'container_id' => 'navbar-collapse-1',
									'container_class'=>'navbar-collapse collapse navbar-right',
									'menu_class'=>'nav navbar-nav',
									'fallback_cb'=>false, 
									'items_wrap' => '%3$s', 
									'container'=>false,
									'walker'=> new Bunch_Bootstrap_walker()  
								) ); ?>
                            </ul>
                        </div>
                    </nav><!-- Main Menu End-->
                </div>
                
            </div>
        </div>
        <!--End Sticky Header-->
    
    </header>
    <!--End Main Header -->