<?php
/**
 * Displays top header
 *
 * @package Timber Work
 */
?>

<div class="top-info">
	<div class="container">
		<div class="row top-header">
			<div class="col-xl-3 col-lg-4 col-md-12 col-sm-12 top-heading pt-3">
				<?php if(get_theme_mod('timber_work_topbar_text') != '' ){ ?>
	                <p class="contact-text"><?php echo esc_html(get_theme_mod('timber_work_topbar_text','')); ?></p>
	            <?php }?>
            </div>
			<div class="col-xl-9 col-lg-8 col-md-12 col-sm-12 align-self-center mb-4 pt-3">
				<div class="row ">
			        <div class="col-lg-4 col-md-4 col-sm-4 col-12 align-self-center">
			            <?php if( get_theme_mod('timber_work_working_time_text') != '' || get_theme_mod('timber_work_woring_time') != '' ){ ?>
			                <div class="row">
			                    <div class="col-lg-2 col-md-2 col-sm-2 col-2 align-self-center">
			                        <i class="fas fa-envelope-open-text"></i>
			                    </div>
			                    <div class="col-lg-10 col-md-10 col-sm-10 col-10 align-self-center text-lg-start">
			                        <p class="contact-text"><?php echo esc_html(get_theme_mod('timber_work_working_time_text','')); ?></p>
			                        <p class="contact-time"><?php echo esc_html(get_theme_mod('timber_work_woring_time','')); ?></p>
			                        
			                    </div>
			                </div>
			            <?php }?>
			        </div>
			        <div class="col-lg-4 col-md-4 col-sm-4 col-12 align-self-center">
			            <?php if(get_theme_mod('timber_work_phone_number') != '' || get_theme_mod('timber_work_phone_text') != '' ){ ?>
			                <div class="row">
			                    <div class="col-lg-2 col-md-3 col-sm-3 col-2 align-self-center">
			                        <i class="fas fa-phone"></i>
			                    </div>
			                    <div class="col-lg-10 col-md-9 col-sm-9 col-10 align-self-center text-lg-start">
			                        <a href="tel:<?php echo esc_attr(get_theme_mod('timber_work_phone_number','')); ?>"><p class="mb-0"><?php echo esc_html(get_theme_mod('timber_work_phone_number','')); ?></p></a>
			                        <a href="mailto:<?php echo esc_attr(get_theme_mod('timber_work_email','')); ?>"><p class="mb-0 mail-id"><?php echo esc_html(get_theme_mod('timber_work_email','')); ?></p></a>
			                    </div>
			                </div>
			            <?php }?>
			        </div>
			        <div class="col-lg-4 col-md-4 col-sm-4 col-12 align-self-center">
			            <?php if(get_theme_mod('timber_work_location') != '' || get_theme_mod('timber_work_location_text') != '' ){ ?>
			                <div class="row">
			                    <div class="col-lg-2 col-md-2 col-sm-2 col-2 align-self-center">
			                        <i class="fas fa-map-marker-alt"></i>
			                    </div>
			                    <div class="col-lg-10 col-md-10 col-sm-10 col-10 align-self-center text-lg-start">
			                        <p class="contact-text"><?php echo esc_html(get_theme_mod('timber_work_location_text','')); ?></p>
			                        <p class="mb-0"><?php echo esc_html(get_theme_mod('timber_work_location','')); ?></p>
			                    </div>
			                </div>
			            <?php }?>
			        </div>
				</div>
			</div>
		</div>
	</div>
</div>