<?php
/**
 * Template Name: Contact Page
 *
 * @package luzuk Premium
 */
get_header(); 
?>

<?php $image = wp_get_attachment_url( get_post_thumbnail_id($post->ID));?>
<header class="page-main-header">
	<div class="container">
		<div class="innheader-img" <?php  if (!empty($image)) : ?> style="background: url('<?php echo esc_url($image); ?>'); background-repeat: no-repeat; background-size:cover;"<?php endif ?>>
			<div class="heder-ovly1"></div>
	        <div class="headinnbox">
	            <?php if( get_theme_mod('breadcrumb_button_display','show' ) == 'show') : ?>
		            <div class="breadcrumbbox wow zoomIn">
		                <div class='button'><?php luzuk_lite_the_breadcrumb(); ?></div>
		                <div class="clearfix"></div>
		            </div>
	            <?php endif ?>
	            <?php the_title( '<h1 class="ht-main-title wow zoomIn">', '</h1>' ); ?>
	        </div>
	    </div>
	</div>
	<div class="clearfix"></div>
</header>
<main id="innerpage-box" >
	<div class="inner-contactarea">
	    <?php 
	    	$cntct_twitter = get_theme_mod('cntct_twitter', 'https://twitter.com/');
			$cntct_instagram = get_theme_mod('cntct_instagram', 'https://www.instagram.com/');
			$cntct_facebook = get_theme_mod('cntct_facebook', 'https://www.facebook.com/');
			$cntct_pinterest = get_theme_mod('cntct_pinterest', 'https://in.pinterest.com/');
			$shortcode = get_theme_mod('luzuk_contactus_shortcode', 'Add your form shortcode customizer');
	    	$contheading = get_theme_mod('contheading', 'Lets Talk');
	    	$conttext = get_theme_mod('conttext', 'We’ve More Than 745,000 Apartments, Place & Plot.');
	  		$phone1 = get_theme_mod('luzuk_contactus_phone1', '+123 456 789');
	    	$email = get_theme_mod('luzuk_contactus_email', 'info@youremailidhere.com');
			$address = get_theme_mod('luzuk_contactus_address', 'Delanson, New York, 12053');
			$iframe = get_theme_mod('luzuk_contactus_embade', 'Add your Embed code in customizer');
		?>
		<div class="container">
			<div class="row">
				<div class="col-xl-5 col-lg-6">
					<div class="contct-detailbx">
						<?php if($contheading){ ?>	
							<div class="cont-hdtitle inner-area-title">
								<?php echo ($contheading);  ?>
							</div>
						<?php }?>
						<?php if($conttext){ ?>	
							<div class="cont-hdtext">
								<?php echo ($conttext);  ?>
							</div>
						<?php }?>
						<?php if(!empty( $phone1 || $email || $address)){ ?>
							<div class="cntlhsbx">	
								<?php if( $phone1){ ?>
							   		<div class="cntpgbx wow zoomIn">
								   			<div class="cntpgicn">
								   				<i class="fa fa-phone" ></i> 
								   			</div>
								   			<p>
								   				<span>Phone : </span>
								   				<a href="tel:<?php echo $phone1;?>"><?php echo $phone1;?></a>
								   			</p>
								   		<div class="clearfix"></div>
								   	</div>
								 <?php } ?>	
								 <?php if( $email ){ ?>
									<div class="cntpgbx wow zoomIn">
							   			<div class="cntpgicn">
							   				<i class="fa fa-envelope" ></i>
							   			</div>
								   		<p>
								   			<span>Email : </span>
								   			<a href="mailto:<?php echo $email;?>"><?php echo $email;?></a>
								   		</p>
								   		<div class="clearfix"></div>
								   	</div>
								<?php } ?>	
								<?php if($address ){ ?>
									<div class="cntpgbx wow zoomIn">
							   			<div class="cntpgicn">
							   				<i class="fa fa-map-marker" ></i>
							   			</div>
							   			<p >
							   				<span>Address : </span>
							   				<?php echo $address;?>
							   			</p>
								   		<div class="clearfix"></div>
								   	</div>
								 <?php } ?>
							 	<div class="clearfix"></div>
							</div>
						<?php }?> 
						<?php if ($cntct_twitter || $cntct_instagram || $cntct_facebook || $cntct_pinterest) { ?>
			                    <div class="cnct-social-icon">
			                    	<?php if ($cntct_facebook) { ?> 
			                            <li>
			                                <a target="_blank" href="<?php echo esc_url($cntct_facebook) ?>">
			                                <i class="fa fa-facebook"></i></a>
			                            </li>
			                        <?php } ?>
			                        <?php if ($cntct_instagram) { ?>
			                            <li>
			                                <a target="_blank" href="<?php echo esc_url($cntct_instagram) ?>" ><i class="fa fa-instagram"></i></a> 
			                            </li>
			                        <?php } ?>
			                    	<?php if ($cntct_twitter) { ?>
			                            <li>
			                                <a target="_blank" href="<?php echo esc_url($cntct_twitter) ?>" ><i class="fa-brands fa-x-twitter"></i></a>
			                            </li>
			                        <?php } ?>
			                       <?php if ($cntct_pinterest) { ?>
			                            <li>
			                                <a target="_blank" href="<?php echo esc_url($cntct_pinterest) ?>"><i class="fa fa-pinterest-p" aria-hidden="true"></i></i></a>
			                            </li>
			                        <?php } ?>
			                    </div>
			                <?php } ?>
						</div>
				</div>
				<div class="col-xl-7 col-lg-6">
					<div class="contform" >
						<div class="contact-ovly"></div>
								<div id="ht-contactus-wrap">
									
									<div class="contact-form">
										<p><?php echo do_shortcode($shortcode);?>	</p>
										<div class="clearfix"></div>					
									</div>
							<div class="clearfix"></div>
						</div>
					</div>
				</div>
			</div>
			
			<div class="contact-mapbox wow zoomIn">
				<?php echo $iframe; ?>
			</div>
		</div>
	<div class="clearfix"></div>
</div>
</div>
</main>
<?php get_footer(); ?>