<?php
/*
* Display Logo and contact details
*/
?>
<div class="top-position">
    <div class="topbar">
        <div class="container-fuild">
            <div class="row m-0">
                <div class="col-xl-2 col-lg-3 col-md-3 logo-col p-0">
                    <div class="logo">
                        <?php if (has_custom_logo()) job_seeker_resume_the_custom_logo(); ?>
                        <?php if (get_theme_mod('job_seeker_resume_site_title', 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 mb-1">
                                    <a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a>
                                </p>
                            <?php endif; ?>
                        <?php } ?>
                        <?php $job_seeker_resume_description = get_bloginfo('description', 'display');
                        if ($job_seeker_resume_description || is_customize_preview()) : ?>
                            <?php if (get_theme_mod('job_seeker_resume_site_tagline', false)) { ?>
                                <p class="site-description mb-1"><?php echo esc_html($job_seeker_resume_description); ?></p>
                            <?php } ?>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="col-xl-10 col-lg-9 col-md-9 p-0">
                    <span class="menu-box">
                        <div class="menu-left">
                            <?php get_template_part('template-parts/navigation/site-nav'); ?>
                        </div>
                        <div class="menu-center">
                            <?php 
                            $job_seeker_resume_download_btn_link_sec = get_theme_mod('job_seeker_resume_download_btn_link_sec');
                            $job_seeker_resume_download_btn_text_sec = get_theme_mod('job_seeker_resume_download_btn_text_sec', esc_html__('Download My CV', 'job-seeker-resume'));
                            if ($job_seeker_resume_download_btn_link_sec) : ?>
                                <span class="header-btn sec">
                                    <a href="<?php echo esc_url($job_seeker_resume_download_btn_link_sec); ?>" class="book-appoin">
                                        <?php echo esc_html($job_seeker_resume_download_btn_text_sec); ?>
                                    </a>
                                </span>
                            <?php endif; ?>
                        </div>
                        <div class="menu-right">
                            <?php if (get_theme_mod('job_seeker_resume_mail') != '') { ?>
                                <a href="mailto:<?php echo esc_attr(get_theme_mod('job_seeker_resume_mail')); ?>">
                                    <i class="<?php echo esc_attr(get_theme_mod('job_seeker_resume_mail_icon', 'fas fa-envelope')); ?>"></i>
                                </a>
                            <?php } ?>
                        </div>
                    </span>
                </div>
            </div>
        </div>
    </div>
</div>