<?php
$forexn_header_section= get_theme_mod('forexn_show_header_section','true');
if($forexn_header_section=='true'){ 
$forexn_header_phone = get_theme_mod( 'forexn_header_phone', '' );
$forexn_header_email = get_theme_mod( 'forexn_header_email', '' );
$forexn_location = get_theme_mod( 'forexn_location', '' );

?>

<!-- header starts -->
<?php if(!has_custom_logo()){ ?>
    <header class="header-top header-top1 forexn-top-head">
    <?php } else { ?>
        <header class="header-top header-top1">
    <?php } ?>
        <div class="container">
            <div class="row">
                <div class="col-xl-4 col-lg-12 d-none d-lg-block">
                    <?php if(!has_custom_logo()){ ?>
                    <div class="logo my-3  logo-container forexn-logo">
                    <?php } else { ?>
                       <div class="logo my-3  logo-container"> 
                       <?php } ?>
                        <a class="img-fluid logo" href="<?php echo esc_url( home_url( '/' ) ); ?>">
                        <?php the_custom_logo(); ?></a>   
                        <?php if (display_header_text()==true){ ?> 
                            <a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="logo">
                            <span class="site-title" ><?php bloginfo( 'title' ); ?> </span></a>
                            <p class="site-description">
                            <?php bloginfo( 'description' ); ?> </p>                               
                        <?php } ?>
                    </div>
                </div>
                <div class="col-xl-8 col-lg-12">
                    <ul class="top-con">

                         <?php if ($forexn_header_phone) : ?>
                        <li> <i class="fa fa-phone"></i>
                        <?php echo esc_html($forexn_header_phone); ?> </li>

                        <?php endif; if ($forexn_header_email) : ?>
                        <li> <i class="fa fa-envelope-o"></i>
                        <?php echo esc_html($forexn_header_email); ?> </li>

                        <?php endif; if ($forexn_location) : ?>
                        <li> <i class="fa fa-map-marker"></i>
                        <?php echo esc_html($forexn_location); ?> </li> <?php endif; ?>

                    </ul>
                </div>
            </div>
        </div>
    </header>
<!-- header ends -->
<?php } ?>