<?php
/**
 * Displays main header
 *
 * @package Elearning Online Courses
 */
?>
<?php if(get_theme_mod('online_tutor_top_header_setting',true) != ''){ ?>
<div class="top_header py-2 text-center text-md-start">
    <div class="container">
        <div class="row">
            <div class="col-lg-5 col-md-5 col-sm-12 align-self-center">
                <?php if(get_theme_mod('online_tutor_ticket_text') != '' ){ ?>
                    <p class="mb-0"><?php echo esc_html(get_theme_mod('online_tutor_ticket_text','')); ?></p>
                <?php }?>
            </div>
            <div class="col-lg-4 col-md-4 col-sm-12 align-self-center text-md-end">
                <?php if(get_theme_mod('elearning_online_courses_admission') != '' || get_theme_mod('elearning_online_courses_admission_link') != ''){ ?>
                    <a href="<?php echo esc_url(get_theme_mod('elearning_online_courses_admission_link','')); ?>" class="me-3 info-text"><?php echo esc_html(get_theme_mod('elearning_online_courses_admission','')); ?></a>
                <?php }?>
                <?php if(get_theme_mod('elearning_online_courses_research') != '' || get_theme_mod('elearning_online_courses_research_link') != ''){ ?>
                    <a href="<?php echo esc_url(get_theme_mod('elearning_online_courses_research_link','')); ?>" class="me-3 info-text"><?php echo esc_html(get_theme_mod('elearning_online_courses_research','')); ?></a>
                <?php }?>
                <?php if(get_theme_mod('elearning_online_courses_faq') != '' || get_theme_mod('elearning_online_courses_faq_link') != ''){ ?>
                    <a  href="<?php echo esc_url(get_theme_mod('elearning_online_courses_faq_link','')); ?>" class="info-text"><?php echo esc_html(get_theme_mod('elearning_online_courses_faq','')); ?></a>
                <?php }?>
            </div>
            <div class="col-lg-2 col-md-2 col-sm-12 align-self-center">
                <?php if(get_theme_mod('online_tutor_facebook_url') != '' || get_theme_mod('online_tutor_twitter_url') != '' || get_theme_mod('online_tutor_intagram_url') != '' || get_theme_mod('online_tutor_linkedin_url') != '' || get_theme_mod('online_tutor_pintrest_url') != ''){ ?>
                    <div class="social-link text-md-right">
                        <?php if(get_theme_mod('online_tutor_facebook_url') != ''){ ?>
                            <a href="<?php echo esc_url(get_theme_mod('online_tutor_facebook_url','')); ?>"><i class="fab fa-facebook-f me-3"></i></a>
                        <?php }?>
                        <?php if(get_theme_mod('online_tutor_twitter_url') != ''){ ?>
                            <a href="<?php echo esc_url(get_theme_mod('online_tutor_twitter_url','')); ?>"><i class="fab fa-twitter me-3"></i></a>
                        <?php }?>
                        <?php if(get_theme_mod('online_tutor_intagram_url') != ''){ ?>
                            <a href="<?php echo esc_url(get_theme_mod('online_tutor_intagram_url','')); ?>"><i class="fab fa-instagram me-3"></i></a>
                        <?php }?>
                        <?php if(get_theme_mod('online_tutor_linkedin_url') != ''){ ?>
                            <a href="<?php echo esc_url(get_theme_mod('online_tutor_linkedin_url','')); ?>"><i class="fab fa-linkedin-in me-3"></i></a>
                        <?php }?>
                        <?php if(get_theme_mod('online_tutor_pintrest_url') != ''){ ?>
                            <a href="<?php echo esc_url(get_theme_mod('online_tutor_pintrest_url','')); ?>"><i class="fab fa-pinterest-p"></i></a>
                        <?php }?>
                    </div>
                <?php }?>
            </div>
            <div class="col-lg-1 col-md-1 col-sm-12 align-self-center text-start">
                <?php if(get_theme_mod('elearning_online_courses_search_setting',true) != ''){ ?>
                    <span class="head-search">
                        <div class="header-search-wrapper">
                            <span class="search-main">
                                <i class="fa fa-search"></i>
                            </span>
                            <div class="search-form-main clearfix">
                                <form method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
                                  <label>
                                    <input type="search" class="search-field form-control" placeholder="Search ..." value="<?php echo esc_attr( get_search_query() ); ?>" name="s">
                                  </label>
                                  <input type="submit" class="search-submit btn btn-primary mt-3" value="Search">
                                </form>
                            </div>
                        </div>
                    </span>
                <?php }?>
            </div>
        </div>
    </div>
</div>
<?php }?>