<?php
/*
* Display Logo and Menu Social Icons Details
*/
?>

<div class="headerbox">
  <div class="row sidebar-position">
    <div class="col-lg-12 col-md-4 align-self-center">
      <?php $conference_event_planner_logo_settings = get_theme_mod( 'conference_event_planner_logo_settings','Different Line');
      if($conference_event_planner_logo_settings == 'Different Line'){ ?>
        <div class="logo logo-hr">
          <?php if( has_custom_logo() ) conference_event_planner_the_custom_logo(); ?>
          <?php if( get_theme_mod('conference_event_planner_site_title_text',true) == 1){ ?>
            <?php if (is_front_page() && is_home()) : ?>
              <h1 class="text-capitalize">
                  <a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a>
              </h1> 
            <?php else : ?>
                <p class="text-capitalize site-title">
                    <a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a>
                </p>
            <?php endif; ?>
          <?php }?>
          <?php $conference_event_planner_description = get_bloginfo( 'description', 'display' );
          if ( $conference_event_planner_description || is_customize_preview() ) : ?>
            <?php if( get_theme_mod('conference_event_planner_site_tagline_text',false)){ ?>
              <p class="site-description"><?php echo esc_html($conference_event_planner_description); ?></p>
            <?php }?>
          <?php endif; ?>
        </div>
      <?php }else if($conference_event_planner_logo_settings == 'Same Line'){ ?>
        <div class="logo logo-hr logo-same-line">
          <div class="row">
            <div class="col-lg-5 col-md-5 align-self-center">
              <?php if( has_custom_logo() ) conference_event_planner_the_custom_logo(); ?>
            </div>
            <div class="col-lg-7 col-md-7 align-self-center">
              <?php if( get_theme_mod('conference_event_planner_site_title_text',true) == 1){ ?>
                <h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
              <?php }?>
              <?php $conference_event_planner_description = get_bloginfo( 'description', 'display' );
              if ( $conference_event_planner_description || is_customize_preview() ) : ?>
                <?php if( get_theme_mod('conference_event_planner_site_tagline_text',false)){ ?>
                  <p class="site-description"><?php echo esc_html($conference_event_planner_description); ?></p>
                <?php }?>
              <?php endif; ?>
            </div>
          </div>
        </div>
      <?php }?>
    </div>
    <div class="col-lg-12 col-md-2 align-self-center">
      <div class="menubar">
          <div class="menubox align-self-center">
              <div class="innermenubox">                  
                <div class="toggle-nav mobile-menu">
                  <button onclick="conference_event_planner_menu_open_nav()" class="responsivetoggle"><i class="fas fa-bars"></i><span class="screen-reader-text"><?php esc_html_e('Open Button','conference-event-planner'); ?></span></button>
                </div>
              <div id="mySidenav" class="nav sidenav">
                  <nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Top Menu', 'conference-event-planner' ); ?>">
                      <?php
                        wp_nav_menu( array(
                          'theme_location' => 'primary-menu',
                          'container_class' => 'main-menu clearfix' ,
                          'menu_class' => 'clearfix',
                          'items_wrap' => '<ul id="%1$s" class="%2$s mobile_nav">%3$s</ul>',
                          'fallback_cb' => 'wp_page_menu',
                        ) );
                      ?>
                      <a href="javascript:void(0)" class="closebtn mobile-menu" onclick="conference_event_planner_menu_close_nav()"><i class="fas fa-times"></i><span class="screen-reader-text"><?php esc_html_e('Close Button','conference-event-planner'); ?></span></a>
                    </nav>
                  </div>
                <div class="clearfix"></div>
            </div>
          </div>
      </div>
    </div>
    <div class="col-lg-12 col-md-6 align-self-center">
      <div class="social-media">
        <?php                  
            $conference_event_planner_facebook_new_tab = esc_attr(get_theme_mod('conference_event_planner_facebook_new_tab','true'));
            $conference_event_planner_twitter_new_tab = esc_attr(get_theme_mod('conference_event_planner_twitter_new_tab','true'));
            $conference_event_planner_instagram_new_tab = esc_attr(get_theme_mod('conference_event_planner_instagram_new_tab','true'));
            $conference_event_planner_youtube_new_tab = esc_attr(get_theme_mod('conference_event_planner_youtube_new_tab','true'));
            $conference_event_planner_pint_new_tab = esc_attr(get_theme_mod('conference_event_planner_pint_new_tab','true'));
            $conference_event_planner_linkedin_new_tab = esc_attr(get_theme_mod('conference_event_planner_linkedin_new_tab','true'));
            ?>
        <?php if( get_theme_mod( 'conference_event_planner_facebook_url' ) != '') { ?>
          <a <?php if($conference_event_planner_facebook_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'conference_event_planner_facebook_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('conference_event_planner_facebook_icon','fab fa-facebook-f')); ?> mr-2"></i></a>
        <?php } ?>
        <?php if( get_theme_mod( 'conference_event_planner_twitter_url' ) != '') { ?>
          <a <?php if($conference_event_planner_twitter_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'conference_event_planner_twitter_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('conference_event_planner_twitter_icon','fab fa-twitter')); ?> mr-2"></i></a>
        <?php } ?>
        <?php if( get_theme_mod( 'conference_event_planner_instagram_url' ) != '') { ?>
          <a <?php if($conference_event_planner_instagram_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod('conference_event_planner_instagram_url','') );?>"><i class="<?php echo esc_attr(get_theme_mod('conference_event_planner_instagram_icon','fab fa-instagram')); ?> mr-2"></i></a>
        <?php } ?>
        <?php if( get_theme_mod( 'conference_event_planner_youtube_url' ) != '') { ?>
          <a <?php if($conference_event_planner_youtube_new_tab != false) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod('conference_event_planner_youtube_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('conference_event_planner_youtube_icon','fab fa-youtube')); ?> mr-2"></i></a>
        <?php } ?>
         <?php if( get_theme_mod( 'conference_event_planner_pint_url' ) != '') { ?>
              <a <?php if($conference_event_planner_pint_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'conference_event_planner_pint_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('conference_event_planner_pint_icon','fab fa-pinterest')); ?> mr-2"></i></a>
            <?php } ?>
        <?php if( get_theme_mod( 'conference_event_planner_linkedin_url' ) != '') { ?>
          <a <?php if($conference_event_planner_linkedin_new_tab != false ) { ?>target="_blank" <?php } ?>href="<?php echo esc_url( get_theme_mod( 'conference_event_planner_linkedin_url','' ) ); ?>"><i class="<?php echo esc_attr(get_theme_mod('conference_event_planner_linkedin_icon','fab fa-linkedin')); ?> mr-2"></i></a>
        <?php } ?>
      </div>
    </div>
    <div class="clear"></div>
  </div>
</div>