<?php
/**
 * Displays top header
 *
 * @package Pet Accessory Store
 */
?>

<div class="top-info text-end">
	<div class="container">
		<div class="row top-header">
			<div class="col-xl-6 col-lg-6 col-md-5 col-sm-12 align-self-center">
				<?php if ( get_theme_mod('pet_accessory_store_topbar_text') != "" ) {?>
			        <div class="text-start py-2">
			            <p class="topbar-text"><?php echo esc_html(get_theme_mod('pet_accessory_store_topbar_text')); ?></p>  
			        </div>
		        <?php }?>
			</div>
			<div class="col-xl-6 col-lg-6 col-md-7 col-sm-12 align-self-center d-flex justify-content-end gap-10 meta-box">
                <?php if(class_exists('WOOCS')){ ?>
                    <span class="currency">
                        <?php echo do_shortcode('[woocs]');?>
                    </span>
                <?php }?>
                <span class="text-center translate-btn">
                    <?php if(class_exists('GTranslate')){ ?>
                        <?php echo do_shortcode('[gtranslate]', 'pet-accessory-store');?>
                    <?php }?>
                </span>
				<span class="social-link">
					<?php if(get_theme_mod('pet_accessory_store_facebook_url') != '' || get_theme_mod('pet_accessory_store_twitter_url') != '' || get_theme_mod('pet_accessory_store_intagram_url') != '' || get_theme_mod('pet_accessory_store_linkedin_url') != '' || get_theme_mod('pet_accessory_store_pintrest_url') != ''){ ?>
						<?php echo esc_html('Connect With Us- ','pet-accessory-store'); ?>
				      	<?php if(get_theme_mod('pet_accessory_store_facebook_url') != ''){ ?>
				          <a href="<?php echo esc_url(get_theme_mod('pet_accessory_store_facebook_url','')); ?>"><i class="<?php echo esc_attr( get_theme_mod('pet_accessory_store_facebook_icon') ); ?>"></i></a>
				        <?php }?>
				        <?php if(get_theme_mod('pet_accessory_store_twitter_url') != ''){ ?>
				          <a href="<?php echo esc_url(get_theme_mod('pet_accessory_store_twitter_url','')); ?>"><i class="<?php echo esc_attr( get_theme_mod('pet_accessory_store_twitter_icon') ); ?>"></i></a>
				      	<?php }?>
				        <?php if(get_theme_mod('pet_accessory_store_intagram_url') != ''){ ?>
				          <a href="<?php echo esc_url(get_theme_mod('pet_accessory_store_intagram_url','')); ?>"><i class="<?php echo esc_attr( get_theme_mod('pet_accessory_store_intagram_icon') ); ?>"></i></a>
				        <?php }?>
				        <?php if(get_theme_mod('pet_accessory_store_linkedin_url') != ''){ ?>
				          <a href="<?php echo esc_url(get_theme_mod('pet_accessory_store_linkedin_url','')); ?>"><i class="<?php echo esc_attr( get_theme_mod('pet_accessory_store_linkedin_icon') ); ?>"></i></a>
				        <?php }?>
				        <?php if(get_theme_mod('pet_accessory_store_pintrest_url') != ''){ ?>
				          <a href="<?php echo esc_url(get_theme_mod('pet_accessory_store_pintrest_url','')); ?>"><i class="<?php echo esc_attr( get_theme_mod('pet_accessory_store_pintrest_icon') ); ?>"></i></a>
				        <?php }?>
				    <?php }?>
			    </span>
			</div>
		</div>
	</div>
</div>