<?php

if(get_theme_mod('contact_section_disable') != 'on' ){
	?>	
	<div class="contact-area" id="contact">
		<?php
			$contact_subtitle = get_theme_mod('contact_subtitle', 'Contact');
			$contact_title = get_theme_mod('contacttitle', 'Get In Touch');
			$contact_headtext = get_theme_mod('contact_headtext', 'There are many variations of passages of Lorem Ipsum avai lable, believable.');

			$cnt_emtitle = get_theme_mod('cnt_emtitle', 'Email');
			$emailtxt = get_theme_mod('emailtxt', 'hello@visit360.com');

			$cnt_phtitle = get_theme_mod('cnt_phtitle', 'Phone');
			$phonetxt = get_theme_mod('phonetxt', '( 00 ) 1234 - 456 - 789');

			$cnt_addtitle = get_theme_mod('cnt_addtitle', 'Address');
			$addtxt = get_theme_mod('addtxt', '1234 9th st, #0090 san francisco, ca 94120');
		?>
		<div class="container">  
			<div class="row ">
				<div class="contact-l-block">		
					<h3><?php echo ($contact_subtitle); ?> </h3>
					<h2><?php echo ($contact_title); ?></h2>
					<p><?php echo ($contact_headtext); ?></p>			
					<div class="d-bxout">
						<div class="row">
							<?php if($emailtxt || $cnt_emtitle){ ?>
							<div class="dbx d-bx1">							
								<div class="contactbx ">
									<div class="row">
										<div class="icnbx" data-wow-duration="1s">
											<!-- <i class="fa fa-envelope "></i> -->
											<i class="fa-solid fa-envelope"></i>
										</div>
										<div class="cont-info" data-wow-duration="1s"> 
											<?php if($cnt_emtitle){ ?>
											<div class="cont-label inner-area-title">
												<?php echo ($cnt_emtitle);  ?>
											</div>
											<?php } ?>
											<a href="mailto:<?php echo $emailtxt;?>"><?php echo $emailtxt;?></a> 
										</div>
										<div class="clearfix"></div>
									</div>
								</div>
							</div>
							<?php } ?>
							<?php if( $cnt_phtitle || $phonetxt ){ ?>
							<div class="dbx d-bx2">
								<div class="contactbx ">
									<div class="row">
										<div class="icnbx " data-wow-duration="2s">
											<!-- <i class="fa fa-phone"></i> -->
											<i class="fa-solid fa-phone-volume"></i>
										</div>
										<div class="cont-info" data-wow-duration="2s"> 
											<?php if($cnt_phtitle){ ?>
											<div class="cont-label inner-area-title">
												<?php echo ($cnt_phtitle);  ?>
											</div>
											<?php } ?> 
											<a href="tel:<?php echo $phonetxt;?>"><?php echo $phonetxt;?></a>
										 </div>
									</div>
									<div class="clearfix"></div>	
								</div>
							</div>
							<?php } ?>
							<?php if( $cnt_addtitle || $addtxt ){ ?>
							<div class="dbx d-bx3">
								<div class="contactbx ">
									<div class="row">
										<div class="icnbx " data-wow-duration="2s">
											<!-- <i class="fa fa-map-marker" ></i> -->
											<i class="fa-solid fa-map-location-dot"></i>
										</div>
										<div class="cont-info" data-wow-duration="2s"> 
										<?php if($cnt_addtitle){ ?>
											<div class="cont-label inner-area-title">
												<?php echo ($cnt_addtitle);  ?>
											</div>
											<?php } ?> 
											<p><?php echo $addtxt;?></p>
										 </div>
										<div class="clearfix"></div>	
									</div>
								</div>
							</div>
							<?php } ?>
						</div>
					</div>	
				</div>				
				<div class="appont-mg">					
				<?php 
					//$contsec_form_title = get_theme_mod('contsec_form_title', 'Make An Enquiry');
					$contact_form_shortcode = get_theme_mod('contact_form_shortcode', 'Add your form shortcode on customiser');
				?>	
					<div class="ht-contact-member-wrap">
						<?php echo do_shortcode($contact_form_shortcode);?>
						<div class="clearfix"></div>
					</div>
					<div class="clearfix"></div>
				</div>
				
			</div>
			<div class="clearfix"></div>
		</div>
		<?php if( get_theme_mod('cntfimg_display','show' ) == 'show'): ?>
			<div class="cntbttmimg">
				<img class="img-responsive" src="<?php echo esc_url(get_template_directory_uri().'/images/rose.png');?>" alt="rose" />
			</div>
		<?php endif ?>
	</div> 
	
<?php } 