<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/**
 * @package   Aviser
 */
if ( ! function_exists( 'avril_above_header_contact_info' ) ) :
	function avril_above_header_contact_info() {
		$hide_show_cntct_details 	= get_theme_mod( 'hide_show_cntct_details','1'); 
		$hide_show_email_details 	= get_theme_mod( 'hide_show_email_details','1');
		$hide_show_mbl_details 		= get_theme_mod( 'hide_show_mbl_details','1'); 	
		if($hide_show_cntct_details == '1'  || $hide_show_email_details == '1'  || $hide_show_mbl_details == '1') {
	?>
	<div class="contact-details"> 
		<div class="widget-right text-av-right text-center"> 
			<?php 
				$tlh_contct_icon 			= get_theme_mod( 'tlh_contct_icon','fa-clock-o'); 	
				$tlh_contact_title 			= get_theme_mod( 'tlh_contact_title',__('8:00AM - 6:00PM','clever-fox')); 
				$tlh_contact_sbtitle 		= get_theme_mod( 'tlh_contact_sbtitle',__('Monday to Saturday','clever-fox')); 
			?>
			<?php if($hide_show_cntct_details == '1') { ?>
				<aside class="widget widget-contact wgt-1">
					<div class="contact-area">
						<div class="contact-icon">
						   <i class="fa <?php echo  esc_attr($tlh_contct_icon); ?>"></i>
						</div>
						<a href="javascript:void(0)" class="contact-info">
							<span class="text"><?php echo esc_html($tlh_contact_title); ?></span>
							<span class="title"><?php echo esc_html($tlh_contact_sbtitle); ?></span>
						</a>
					</div>
				</aside>
			<?php } ?>
		<?php 
			$tlh_email_icon 			= get_theme_mod( 'tlh_email_icon','fa-phone'); 	
			$tlh_email_title 			= get_theme_mod( 'tlh_email_title',__('Email Us','clever-fox')); 
			$tlh_email_sbtitle 			= get_theme_mod( 'tlh_email_sbtitle',__('email@email.com','clever-fox')); 
		?>	
		<?php if($hide_show_email_details == '1') { ?>
			<aside class="widget widget-contact wgt-2">
				<div class="contact-area">
					<div class="contact-icon">
						<i class="fa <?php echo  esc_attr($tlh_email_icon); ?>"></i>
					</div>
					<a href="mailto:<?php echo esc_html($tlh_email_sbtitle); ?>" class="contact-info">
						<span class="text"><?php echo esc_html($tlh_email_title); ?></span>
						<span class="title"><?php echo esc_html($tlh_email_sbtitle); ?></span>
					</a>
				</div>
			</aside>
		<?php } ?>	
		<?php 
			$tlh_mobile_icon 			= get_theme_mod( 'tlh_mobile_icon','fa-map-marker');
			$tlh_mobile_title 			= get_theme_mod( 'tlh_mobile_title',__('Online 24x7','clever-fox')); 
			$tlh_mobile_sbtitle 		= get_theme_mod( 'tlh_mobile_sbtitle',__('+1-0120-400-00-00','clever-fox')); 
		?>
		<?php if($hide_show_mbl_details == '1') { ?>
			<aside class="widget widget-contact wgt-3">
				<div class="contact-area">
					<div class="contact-icon">
						<i class="fa <?php echo  esc_attr($tlh_mobile_icon); ?>"></i>
					</div>
					<a href="tel:<?php echo esc_html($tlh_mobile_sbtitle); ?>" class="contact-info">
						<span class="text"><?php echo esc_html($tlh_mobile_title); ?></span>
						<span class="title"><?php echo esc_html($tlh_mobile_sbtitle); ?></span>
					</a>
				</div>
			</aside>
		<?php } ?>	
		</div>	
	</div>	
								  
	<?php 
}} endif;
add_action('avril_above_header_contact_info', 'avril_above_header_contact_info'); 