<?php
$options = _WSH()->option();
$upper = buildark_set( $options, 'show_upper_header3' );
$logo = buildark_set( $options, 'logo_image_3' );
$logo = ( $logo ) ? $logo : get_template_directory_uri() . '/assets/images/footer-logo.svg';

if ( $upper ) :

?>


<!--Header-Upper-->
<div class="header-upper">
	<div class="auto-container">
		<div class="clearfix">

			<div class="pull-left logo-outer">
				<?php if($logo):?>
                <div class="logo"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $logo );  ?>" alt="<?php esc_attr_e('Awesome Image', 'buildark'); ?>"></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()). '/assets/images/footer-logo.svg';  ?>" alt="<?php esc_attr_e('Awesome Image', 'buildark'); ?>"></a></div>
                <?php endif;?>
            </div>

			<div class="upper-right pull-right clearfix">

				<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>

			</div>

		</div>
	</div>
</div>
<!--End Header Upper-->

<?php endif; ?>