<?php
/**
 * Displays top header
 *
 * @package Recipe Maker
 */
?>

<div class="top-info">
	<div class="container">
		<div class="row">
			
			<div class="col-lg-9 col-md-8 col-sm-12 align-self-center">
				<?php if ( get_theme_mod('recipe_maker_topbar_text') != "" ) {?>
			        <div class="text-center py-2">
			            <h6 class="topbar-text"><?php echo esc_html(get_theme_mod('recipe_maker_topbar_text')); ?></h6>  
			        </div>
		        <?php }?>
			</div>
			<div class="col-lg-3 col-md-4 col-sm-12 col-12 align-self-center right-box">
                <div class="social-link text-end">
                    <?php if(get_theme_mod('recipe_maker_facebook_url') != ''){ ?>
                        <a href="<?php echo esc_url(get_theme_mod('recipe_maker_facebook_url','')); ?>"><i class="<?php echo esc_attr( get_theme_mod('recipe_maker_facebook_icon') ); ?>"></i></a>
                    <?php }?>
                    <?php if(get_theme_mod('recipe_maker_twitter_url') != ''){ ?>
                        <a href="<?php echo esc_url(get_theme_mod('recipe_maker_twitter_url','')); ?>"><i class="<?php echo esc_attr( get_theme_mod('recipe_maker_twitter_icon') ); ?>"></i></a>
                    <?php }?>
                    <?php if(get_theme_mod('recipe_maker_intagram_url') != ''){ ?>
                        <a href="<?php echo esc_url(get_theme_mod('recipe_maker_intagram_url','')); ?>"><i class="<?php echo esc_attr( get_theme_mod('recipe_maker_intagram_icon') ); ?>"></i></a>
                    <?php }?>
                    <?php if(get_theme_mod('recipe_maker_linkedin_url') != ''){ ?>
                        <a href="<?php echo esc_url(get_theme_mod('recipe_maker_linkedin_url','')); ?>"><i class="<?php echo esc_attr( get_theme_mod('recipe_maker_linkedin_icon') ); ?>"></i></a>
                    <?php }?>
                    <?php if(get_theme_mod('recipe_maker_pintrest_url') != ''){ ?>
                        <a href="<?php echo esc_url(get_theme_mod('recipe_maker_pintrest_url','')); ?>"><i class="<?php echo esc_attr( get_theme_mod('recipe_maker_pintrest_icon') ); ?>"></i></a>
                    <?php }?>
                </div>
            </div>
		</div>
	</div>
</div>