<?php
/**
 * The template part for Top Header
 *
 * @package Affiliate Review
 * @subpackage affiliate-review
 * @since affiliate-review 1.0
 */
?>
<?php if(get_theme_mod('affiliate_review_topbar_hide_show',true) == 1 || get_theme_mod( 'affiliate_review_resp_topbar_hide_show', true) == 1) {  ?>
    <div class="top-header py-2">
        <div class="container">
            <div class="row">
                <div class="col-lg-6 col-md-6">
                    <?php if(get_theme_mod('affiliate_review_topbar_text1') != ''){ ?>
                        <p class="topbar-text1 mb-md-0 text-md-start text-center"><?php echo esc_html(get_theme_mod('affiliate_review_topbar_text1')); ?></p>
                    <?php }?>
                </div>
                <div class="col-lg-4 col-md-6">
                    <?php if(get_theme_mod('affiliate_review_topbar_text2') != ''){ ?>
                        <p class="topbar-text2 mb-md-0 text-md-end text-center"><?php echo esc_html(get_theme_mod('affiliate_review_topbar_text2')); ?></p>
                    <?php }?>
                </div>
                <div class="col-lg-2 col-md-2 ps-md-0">
                    <div class="social-icons text-md-end text-center">
                        <?php if (is_active_sidebar('topbar-social-icons')) : ?>
                            <?php dynamic_sidebar('topbar-social-icons'); ?>
                        <?php else : ?>
                          <!-- Default Social Icons Widgets -->
                            <div class="widget">
                                <ul class="custom-social-icons" >
                                  <li><a href="https://facebook.com" target="_blank"><i class="fab fa-facebook"></i></a></li> 
                                  <li><a href="https://twitter.com" target="_blank"><i class="fab fa-twitter"></i></a></li> 
                                  <li><a href="https://instagram.com" target="_blank"><i class="fab fa-instagram"></i></a></li> 
                                  <li><a href="https://pinterest.com" target="_blank"><i class="fab fa-pinterest"></i></a></li>                     
                                </ul>
                            </div>
                        <?php endif; ?>    
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php }?>