<?php
	if ( ! defined( 'ABSPATH' ) ) exit;
	if ( ! function_exists( 'conceptly_above_header' ) ) :
	function conceptly_above_header() {
	$conceptly_azwa_hide_show_preloader		= get_theme_mod('hide_show_preloader','0');
	$conceptly_azwa_hide_show_social_icon		= get_theme_mod('hide_show_social_icon','1');
	$conceptly_azwa_social_icons				= get_theme_mod('social_icons',conceptly_get_social_icon_default());
	$conceptly_azwa_hide_show_contact_infot	= get_theme_mod('hide_show_contact_infot','1');
	$conceptly_azwa_header_email_icon			= get_theme_mod('header_email_icon','fa-envelope-o');
	$conceptly_azwa_header_email				= get_theme_mod('header_email',__('380 St Kilda Road','clever-fox'));
	$conceptly_azwa_header_email_sub			= get_theme_mod('header_email_sub',__('email@companyname.com','clever-fox'));
	$conceptly_azwa_header_phone_icon			= get_theme_mod('header_phone_icon','fa-phone'); 
	$conceptly_azwa_header_phone_number		= get_theme_mod('header_phone_number',__('Call Us: (210) 123-451','clever-fox'));
	$conceptly_azwa_header_phone_sub			= get_theme_mod('header_phone_sub',__('+1 231-214-3567','clever-fox'));
	$conceptly_azwa_header_faq_icon 			= get_theme_mod('header_faq_icon','fa-question');
	$conceptly_azwa_header_faq 				= get_theme_mod('header_faq',__('Ask Your Question','clever-fox'));
	$conceptly_azwa_header_faq_sub 			= get_theme_mod('header_faq_sub',__('On Azwa','clever-fox'));
	$conceptly_azwa_hide_show_email_infot		= get_theme_mod('hide_show_email_infot','1');
	$conceptly_azwa_hide_show_faq				= get_theme_mod('hide_show_faq','1');
?>
 	<!-- Start: Header Top
    ============================= -->
    <div id="header-top" class="header-above">
    	<div class="header-abover-mobile">
			<div class="header-above-button">
				<button type="button" class="pull-down-toggle"><i class="fa fa-chevron-down"></i></button>
			</div>
			<div id="mobi-above" class="mobi-above"></div>
		</div>
		<div class="header-above-desk">
	        <div class="container">
	            <div class="row">
	            	<div class="col-lg-3 col-md-12 text-lg-left text-center my-auto">
						<?php if($conceptly_azwa_hide_show_social_icon =='1') { ?>
	                    <ul class="trh-social d-inline-block">
							<?php
								$conceptly_azwa_social_icons = json_decode($conceptly_azwa_social_icons);
								if( $conceptly_azwa_social_icons!='' )
								{
								foreach($conceptly_azwa_social_icons as $conceptly_azwa_social_item){	
								$conceptly_azwa_repeater_social_icon = ! empty( $conceptly_azwa_social_item->icon_value ) ? apply_filters( 'conceptly_translate_single_string', $conceptly_azwa_social_item->icon_value, 'Header section' ) : '';	
								$conceptly_azwa_repeater_social_link = ! empty( $conceptly_azwa_social_item->link ) ? apply_filters( 'conceptly_translate_single_string', $conceptly_azwa_social_item->link, 'Header section' ) : '';
							?>
								<li><a href="<?php echo esc_url( $conceptly_azwa_repeater_social_link ); ?>" ><i class="fa <?php echo esc_attr( $conceptly_azwa_repeater_social_icon ); ?> "></i></a></li>
							<?php								
								}
							 }
							?>
	                    </ul>  
						<?php }	?>
	                </div>
	                <div class="col-lg-9 col-md-12 text-lg-right text-center my-auto mb-lg-0 mb-sm-3 mb-3">
	                    <ul class="header-info d-inline-block">
							<?php if($conceptly_azwa_hide_show_contact_infot =='1'){ ?>
								<?php if($conceptly_azwa_header_phone_sub) {?>
									<li class="tlh-phone">
										<a href="tel:<?php echo esc_attr($conceptly_azwa_header_phone_sub); ?>">
											<div class="tlh-icon"><i class="fa <?php echo esc_attr($conceptly_azwa_header_phone_icon); ?>"></i></div>
											<div class="tlh-content">
												<strong><?php echo esc_html($conceptly_azwa_header_phone_number); ?></strong>
												<p><?php echo esc_html($conceptly_azwa_header_phone_sub); ?></p>
											</div>
										</a>
									</li>
								<?php 
										} 
									}
								?>
							<?php if($conceptly_azwa_hide_show_email_infot =='1'){ ?>
								<?php if($conceptly_azwa_header_email_sub) {?>
									<li class="tlh-email">
										<a href="mailto:<?php echo esc_attr($conceptly_azwa_header_email_sub); ?>">
											<div class="tlh-icon"><i class="fa <?php  echo esc_attr( $conceptly_azwa_header_email_icon ); ?>"></i></div>
											<div class="tlh-content">
												<strong><?php echo esc_html($conceptly_azwa_header_email); ?></strong>
												<p><?php echo esc_html($conceptly_azwa_header_email_sub); ?></p>
											</div>
										</a>
									</li>
								<?php } ?>	
							<?php } ?>
							<?php if($conceptly_azwa_hide_show_faq =='1'){ ?>
								<?php if($conceptly_azwa_header_faq) {?>
									<li class="tlh-faq">
										<a href="#">
											<div class="tlh-icon"><i class="fa <?php echo esc_attr($conceptly_azwa_header_faq_icon); ?>"></i></div>
											<div class="tlh-content">
												<strong><?php echo esc_html($conceptly_azwa_header_faq); ?></strong>
												<p><?php echo esc_html($conceptly_azwa_header_faq_sub); ?></p>
											</div>
										</a>
									</li>
								<?php } ?>
							<?php } ?>						
	                    </ul>
	                </div>
			     </div>
	        </div>
	    </div>
    </div>
	<?php 
} endif;
add_action('conceptly_above_header', 'conceptly_above_header');
?>
