<?php
/**
 * The template part for Top Header
 *
 * @package Movie Critic Review 
 * @subpackage movie-critic-review
 * @since movie-critic-review 1.0
 */
?>
<!-- Top Header -->
<div class="top-header">
  <?php if (get_theme_mod('movie_critic_review_hide_show_topbar_section', true) == 1 || get_theme_mod( 'movie_critic_review_resp_topbar_hide_show', true) == 1) {  ?>
    <div class="container">
      <div class="row">
        <div class="col-lg-8 col-md-6 col-12 topbar-left align-self-center text-md-start text-lg-start text-center">
          <?php if( get_theme_mod('movie_critic_review_topbar_text') != '' || get_theme_mod('movie_critic_review_topbar_text_click') != '' || get_theme_mod('movie_critic_review_topbar_link') != ''){ ?>
            <div class="header-text">
              <span class="badge"><?php echo esc_html('New','movie-critic-review');?></span>
              <span class="long-text"><?php echo esc_html(get_theme_mod('movie_critic_review_topbar_text',''));?></span><a class="link-text" href="<?php echo esc_url(get_theme_mod('movie_critic_review_topbar_link',''));?>"><?php echo esc_html(get_theme_mod('movie_critic_review_topbar_text_click',''));?></span></a>
            </div>
          <?php } ?>
        </div>
        <div class="col-lg-4 col-md-6 col-12 text-lg-end text-md-end text-center align-self-center topbar-col">
          <div class="social-icons">
            <?php if (is_active_sidebar('social-widget')) : ?>
              <?php dynamic_sidebar('social-widget'); ?>
            <?php else : ?>
              <!-- Default Social Icons Widgets -->
                <div class="widget">
                    <ul class="custom-social-icons pt-2 mb-2" >
                      <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> 
  <?php }?>  
</div> 