<?php
/**
 * Displays top header
 *
 * @package Real Estate Escrow
 */
?>

<div class="top-header text-center text-md-left py-2">
    <div class="container">
        <div class="row">
            <div class="col-lg-4 col-md-4 col-sm-12 align-self-center email-box">
                <?php if(get_theme_mod('real_estate_escrow_header_email_text') != '' || get_theme_mod('real_estate_escrow_header_email') != ''){ ?>
                            <i class="fas fa-paper-plane"></i>
                            <span class="heading mb-0"><?php echo esc_html(get_theme_mod('real_estate_escrow_header_email_text','')); ?></span>
                            <a class="mail" href="mailto:<?php echo esc_html(get_theme_mod('real_estate_escrow_header_email','')); ?>"><span class="text  mb-0"><?php echo esc_html(get_theme_mod('real_estate_escrow_header_email','')); ?></span></a>
                        </span>
                <?php }?>
            </div>
            <div class="col-lg-4 col-md-4 col-sm-12 phone-text align-self-center">
                <?php if(get_theme_mod('real_estate_escrow_header_phone_text') != '' || get_theme_mod('real_estate_escrow_header_phone') != ''){ ?>
                      <i class="fas fa-phone"></i>
                      <span class="heading mb-0"><?php echo esc_html(get_theme_mod('real_estate_escrow_header_phone_text','')); ?></span>
                      <a class="phone" href="tel:<?php echo esc_html(get_theme_mod('real_estate_escrow_header_phone','')); ?>"><span class="text mb-0"><?php echo esc_html(get_theme_mod('real_estate_escrow_header_phone','')); ?></span></a>
    
                <?php }?>
            </div>
            <div class="col-lg-4 col-md-4">
            </div>
        </div>
    </div>
</div>
