<?php global $post, $pixomi_data;
$switch_topbar = $pixomi_data['switch_topbar']; 
$choose_header = pixomi_choose_header();
$topbar_class = '';
if($choose_header == '2'){
    $topbar_class = 'topbar-modern'; 
} ?> 
<?php if( $switch_topbar ){ ?>
	<div id="topbar" class="<?php echo esc_attr( $topbar_class ); ?>">
		<div class="container">
			<div class="content">
				<!-- Contact Info -->
				<?php if($pixomi_data['topbar_left'] == 'topbar_contacts') { ?>
				
				<?php if($pixomi_data['topbar_address'] != "") { ?>
				<span class="info"><i class="<?php echo wp_kses_post($pixomi_data['topbar_address_icon']); ?>"></i><?php echo wp_kses_post($pixomi_data['topbar_address']); ?></span>
				<?php } ?>
				
				<?php if($pixomi_data['topbar_phone'] != "") { ?>
				<span class="info"><i class="<?php echo wp_kses_post($pixomi_data['topbar_phone_icon']); ?>"></i><?php echo wp_kses_post($pixomi_data['topbar_phone']); ?></span>
				<?php } ?>
				
				<?php if($pixomi_data['tobpar_working_hour'] != "") { ?>
				<span class="info"><i class="<?php echo wp_kses_post($pixomi_data['tobpar_working_hour_icon']); ?>"></i><?php echo wp_kses_post($pixomi_data['tobpar_working_hour']); ?></span>
				<?php } ?>
																	
				<!-- Social Icons -->
				<?php } elseif($pixomi_data['topbar_left'] == 'topbar_social') { ?>
				<div class="topbar-social"><?php get_template_part( 'functions/socialmedia' ); ?></div>
				
				<!-- Navigation -->
				<?php } elseif($pixomi_data['topbar_left'] == 'topbar_nav') { ?>
				
				<?php if(has_nav_menu('pixomi-topbar_menu')) {
				wp_nav_menu( array( 'theme_location' => 'pixomi-topbar_menu' ) ); } ?>

				<!-- Button -->
				<?php } elseif($pixomi_data['topbar_left'] == 'topbar_button') {  ?>
				<span class="topbar-button"><a href="<?php echo wp_kses_post($pixomi_data['topbar_button_link']); ?>"><?php echo wp_kses_post($pixomi_data['topbar_button_text']); ?></a></span>
										
				<!-- Empty -->
				<?php } elseif($pixomi_data['topbar_left'] == 'topbar_empty') { } ?>
			</div>

			<div class="content pull-right">					
				<?php if($pixomi_data['topbar_right'] == 'topbar_contacts') { ?>
				
				<?php if($pixomi_data['topbar_address'] != "") { ?>
				<span class="info"><i class="droplet-location-marker"></i><?php echo wp_kses_post($pixomi_data['topbar_address']); ?></span>
				<?php } ?>
				
				<?php if($pixomi_data['topbar_phone'] != "") { ?>
				<span class="info"><i class="droplet-old-telephone"></i><?php echo wp_kses_post($pixomi_data['topbar_phone']); ?></span>
				<?php } ?>
				
				<?php if($pixomi_data['tobpar_working_hour'] != "") { ?>
				<span class="info"><i class="droplet-clock-circle"></i><?php echo wp_kses_post($pixomi_data['tobpar_working_hour']); ?></span>
				<?php } ?>
																
				<!-- Social Icons -->
				<?php } elseif($pixomi_data['topbar_right'] == 'topbar_social') { ?>
				<div class="topbar-social"><?php get_template_part( 'functions/socialmedia' ); ?></div>
				
				<!-- Navigation -->
				<?php } elseif($pixomi_data['topbar_right'] == 'topbar_nav') { ?>
				
				<?php if(has_nav_menu('pixomi-topbar_menu')) {
				wp_nav_menu( array( 'theme_location' => 'pixomi-topbar_menu' ) ); } ?>

				<!-- Button -->
				<?php } elseif($pixomi_data['topbar_right'] == 'topbar_button') {  ?>
				<span class="topbar-button"><a href="<?php echo wp_kses_post($pixomi_data['topbar_button_link']); ?>"><?php echo wp_kses_post($pixomi_data['topbar_button_text']); ?></a></span>
										
				<!-- Empty -->
				<?php } elseif($pixomi_data['topbar_right'] == 'topbar_empty') { } ?>
			</div>
		</div>
	</div>
<?php } ?>
