<?php
/**
 * Displays main header
 *
 * @package Fashion Blogs
 */
?>

<?php if(get_theme_mod('fashion_blogs_top_header_setting','1')){ ?>
<div class="top_header py-3 text-center text-md-start">
    <div class="container">
        <div class="row">
            <div class="col-lg-6 col-md-6 col-sm-5 align-self-center">
                <?php if(get_theme_mod('fashion_blogs_topbar_text') != ''){ ?>
                    <p class="mb-0"><?php echo esc_html(get_theme_mod('fashion_blogs_topbar_text','')); ?></p>
                <?php }?>
            </div>
            <div class="col-lg-4 col-md-3 col-sm-3 align-self-center">
                <?php if(get_theme_mod('fashion_blogs_facebook_url') != '' || get_theme_mod('fashion_blogs_twitter_url') != '' || get_theme_mod('fashion_blogs_intagram_url') != '' || get_theme_mod('fashion_blogs_linkedin_url') != '' || get_theme_mod('fashion_blogs_pintrest_url') != ''){ ?>
                    <div class="social-link text-center text-md-end">
                        <?php if(get_theme_mod('fashion_blogs_facebook_url') != ''){ ?>
                            <a href="<?php echo esc_url(get_theme_mod('fashion_blogs_facebook_url','')); ?>"><i class="<?php echo esc_html( get_theme_mod('fashion_blogs_facebook_icon') ); ?> me-2"></i></a>
                        <?php }?>
                        <?php if(get_theme_mod('fashion_blogs_twitter_url') != ''){ ?>
                            <a href="<?php echo esc_url(get_theme_mod('fashion_blogs_twitter_url','')); ?>"><i class="<?php echo esc_html( get_theme_mod('fashion_blogs_twitter_icon') ); ?> me-2"></i></a>
                        <?php }?>
                        <?php if(get_theme_mod('fashion_blogs_intagram_url') != ''){ ?>
                            <a href="<?php echo esc_url(get_theme_mod('fashion_blogs_intagram_url','')); ?>"><i class="<?php echo esc_html( get_theme_mod('fashion_blogs_intagram_icon') ); ?> me-2"></i></a>
                        <?php }?>
                        <?php if(get_theme_mod('fashion_blogs_linkedin_url') != ''){ ?>
                            <a href="<?php echo esc_url(get_theme_mod('fashion_blogs_linkedin_url','')); ?>"><i class="<?php echo esc_html( get_theme_mod('fashion_blogs_linkedin_icon') ); ?> me-2"></i></a>
                        <?php }?>
                        <?php if(get_theme_mod('fashion_blogs_pintrest_url') != ''){ ?>
                            <a href="<?php echo esc_url(get_theme_mod('fashion_blogs_pintrest_url','')); ?>"><i class="<?php echo esc_html( get_theme_mod('fashion_blogs_pintrest_icon') ); ?>"></i></a>
                        <?php }?>
                    </div>
                <?php }?>
            </div>
            <div class="col-lg-2 col-md-3 col-sm-4 align-self-center">
                <div class="topbtn text-md-end text-center">
                    <?php if(get_theme_mod('fashion_blogs_subscribe_url') != '' || get_theme_mod('fashion_blogs_subscribe_text') != ''){ ?>
                        <a href="<?php echo esc_url(get_theme_mod('fashion_blogs_subscribe_url','')); ?>"><?php echo esc_html(get_theme_mod('fashion_blogs_subscribe_text','')); ?></a>
                    <?php }?>
                </div>
            </div>
        </div>
    </div>
</div>
<?php }?>