<?php
/**
 * Displays top header
 *
 * @package Villa Estate Zone
 */
?>
<?php if(get_theme_mod('villa_estate_zone_facebook_url') != '' || get_theme_mod('villa_estate_zone_twitter_url') != '' || get_theme_mod('villa_estate_zone_twitter_url') != '' ||get_theme_mod('villa_estate_zone_intagram_url') != '' || get_theme_mod('villa_estate_zone_linkedin_url') != '' || get_theme_mod('villa_estate_zone_pintrest_url') != '' || get_theme_mod('villa_estate_zone_topbar_email') != '' || get_theme_mod('villa_estate_zone_topbar_location') != '' ){ ?>
    <div class="top-info py-2">
        <div class="row">
            <div class="col-lg-8 col-md-8 col-sm-12 col-12 align-self-center top-box">
                <div class="row">
                    <div class="col-lg-6 col-md-6 col-sm-6 col-12 align-self-center">
                        <div class="head-contact text-start">  
                            <?php if ( get_theme_mod('villa_estate_zone_topbar_email') != "" ) {?>
                                <i class="fas fa-envelope"></i><a href="mailto:<?php echo esc_attr(get_theme_mod('villa_estate_zone_topbar_email')); ?>"><?php echo esc_html(get_theme_mod('villa_estate_zone_topbar_email')); ?></a>
                            <?php }?>
                        </div>
                    </div>
                    <div class="col-lg-6 col-md-6 col-sm-6 col-12 align-self-center text-start location">
                        <div class="head-contact">  
                            <?php if ( get_theme_mod('villa_estate_zone_topbar_location') != "" ) {?>
                                <i class="fas fa-map-marker-alt"></i><?php echo esc_html(get_theme_mod('villa_estate_zone_topbar_location')); ?>
                            <?php }?>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-4 col-md-4 col-sm-12 col-12 align-self-center social-icons text-end">                    
                <?php if(get_theme_mod('villa_estate_zone_facebook_url') != '' || get_theme_mod('villa_estate_zone_twitter_url') != '' || get_theme_mod('villa_estate_zone_twitter_url') != '' ||get_theme_mod('villa_estate_zone_intagram_url') != '' || get_theme_mod('villa_estate_zone_linkedin_url') != '' || get_theme_mod('villa_estate_zone_pintrest_url') != '' ){ ?>
                    <div class="social-icon">
                        <?php if(get_theme_mod('villa_estate_zone_facebook_url') != ''){ ?>
                            <a href="<?php echo esc_url(get_theme_mod('villa_estate_zone_facebook_url','')); ?>"><i class="<?php echo esc_attr( get_theme_mod('villa_estate_zone_facebook_icon') ); ?>"></i></a>
                        <?php }?>
                        <?php if(get_theme_mod('villa_estate_zone_twitter_url') != ''){ ?>
                            <a href="<?php echo esc_url(get_theme_mod('villa_estate_zone_twitter_url','')); ?>"><i class="<?php echo esc_attr( get_theme_mod('villa_estate_zone_twitter_icon') ); ?>"></i></a>
                        <?php }?>
                        <?php if(get_theme_mod('villa_estate_zone_intagram_url') != ''){ ?>
                            <a href="<?php echo esc_url(get_theme_mod('villa_estate_zone_intagram_url','')); ?>"><i class="<?php echo esc_attr( get_theme_mod('villa_estate_zone_intagram_icon') ); ?>"></i></a>
                        <?php }?>
                        <?php if(get_theme_mod('villa_estate_zone_linkedin_url') != ''){ ?>
                            <a href="<?php echo esc_url(get_theme_mod('villa_estate_zone_linkedin_url','')); ?>"><i class="<?php echo esc_attr( get_theme_mod('villa_estate_zone_linkedin_icon') ); ?>"></i></a>
                        <?php }?>
                        <?php if(get_theme_mod('villa_estate_zone_pintrest_url') != ''){ ?>
                            <a href="<?php echo esc_url(get_theme_mod('villa_estate_zone_pintrest_url','')); ?>"><i class="<?php echo esc_attr( get_theme_mod('villa_estate_zone_pintrest_icon') ); ?>"></i></a>
                        <?php }?>
                    </div>
                <?php }?>
            </div>
        </div>
    </div>
<?php }?>