<?php
$options = _WSH()->option();
$upper =  buildark_set( $options, 'show_upper_header1' );
$logo = buildark_set( $options, 'logo_image1' );
$logo = ( $logo ) ? $logo : get_template_directory_uri() . '/assets/images/logo.svg';
$addr_sec = buildark_set( $options, 'address_media' );
$address_sec = buildark_set( $addr_sec, 'address_media' );
?>

<!--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/logo.svg';  ?>" alt="<?php esc_attr_e('Awesome Image', 'buildark'); ?>"></a></div>
                <?php endif;?>
            </div>

			<div class="pull-right upper-right clearfix">
	
			<?php if ( $address_sec ) :  ?>	
			
				<?php foreach ( $address_sec as $address ) :
				
						if ( isset( $address['tocopy' ] ) ) continue;

									$value = buildark_set( $address, 'address_desc1');

									$icon = buildark_set( $address, 'address_icon1');
				
									$title = buildark_set( $address, 'address_title1');
				
				?>
					<!--Info Box-->
					<div class="upper-column info-box">
						<div class="icon-box"><span class="<?php echo esc_attr( $icon ); ?>"></span></div>
						<ul>
							<li><strong><?php echo wp_kses_post( $title ); ?> </strong></li>
							<li><?php echo wp_kses_post( $value ); ?></li>
						</ul>
					</div>
					
					
				<?php endforeach; ?>
				
			<?php endif; ?>

			</div>

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