<?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">
        <!-- </?php the_title( '<h1 class="ht-main-title wow zoomIn">', '</h1>' ); ?> -->
        <?php if( get_theme_mod('breadcrumb_button_display','show' ) == 'show') : ?>
        <div class="breadcrumbbox wow bounceInLeft">
            <div class='button'>
             <?php luzuk_lite_the_breadcrumb(); ?> </div>
            <div class="clearfix"></div>
        </div>
        <?php endif ?>
        <div class="clearfix"></div>
    </div>
    <div class="clearfix"></div>
</header>


<main id="innerpage-box" >
	<div class="container">
		<?php 
			$phone = get_theme_mod('luzuk_contactus_phone', '(123) 456-7890');			  		
			$email = get_theme_mod('luzuk_contactus_email', 'Support@Wineshop.Com');			    	
			$address = get_theme_mod('luzuk_contactus_address', '123 Vineyard Lane, Wine Country, CA 12345');
			$shortcode = get_theme_mod('luzuk_contactus_shortcode', 'Add your form shortcode customizer');
			$iframe = get_theme_mod('luzuk_contactus_embade', 'Add your Embed code in customizer');
			$contactus_lefttitle = get_theme_mod('luzuk_contactus_lefttitle', 'Come Visit Us');
			$contactus_leftbtntxt = get_theme_mod('luzuk_contactus_leftbtntxt', 'Plan Your Visit');
			$contactus_leftbtnlink = get_theme_mod('luzuk_contactus_leftbtnlink', '#');
			$contactus_lefttxt = get_theme_mod('luzuk_contactus_lefttxt', 'Lorem ipsum dolor sit amet, consectetur incididunt ut labore et dolore magna aliqua.');
			$contactus_righttitle = get_theme_mod('luzuk_contactus_righttitle', 'Join Our Wine Club');
			$contactus_rightbtntxt = get_theme_mod('luzuk_contactus_rightbtntxt', 'Learn More');
			$contactus_rightbtnlink = get_theme_mod('luzuk_contactus_rightbtnlink', '#');
			$contacttop_img_display = get_theme_mod( 'contacttop_img_display', 'show' ); 
		?>	
		<div class="contactbox ">
			<div class="row">
				<?php if( $address ){ ?>
					<div class="col-lg-5">
						<div class="cntpgbx cntpgadd">
							<div class="row mr-0">
				   				<div class="col-lg-1 col-md-1 pd-0">
							   		<div class="cntpgicn">
							   			<svg width="29.688" height="26" viewBox="0 0 29.688 26">
										  <path id="Path_295" data-name="Path 295" d="M21.029,6.185c0,2.814-3.768,7.829-5.422,9.9a.97.97,0,0,1-1.526,0C12.427,14.014,8.659,9,8.659,6.185a6.185,6.185,0,1,1,12.37,0Zm.412,4.144c.18-.356.345-.711.495-1.062.026-.062.052-.129.077-.191l5.979-2.392a1.236,1.236,0,0,1,1.7,1.149V21.792a1.243,1.243,0,0,1-.778,1.149l-7.469,2.984ZM7.092,7.128a9.783,9.783,0,0,0,.66,2.139c.149.35.314.706.495,1.062V23.287L1.7,25.91A1.236,1.236,0,0,1,0,24.761V10.8A1.243,1.243,0,0,1,.778,9.654L7.1,7.128Zm9.8,9.984c.716-.9,1.84-2.355,2.9-3.969v12.85l-9.9-2.83V13.143c1.057,1.613,2.18,3.072,2.9,3.969A2.621,2.621,0,0,0,16.9,17.112ZM14.844,7.834a2.062,2.062,0,1,0-2.062-2.062A2.062,2.062,0,0,0,14.844,7.834Z"/>
										</svg>
							   		</div>
							   	</div>
							   	<div class="col-lg-11 col-md-11">
							   		<div class="cntpgtxt">
							   			<span>Company office</span>
							   			<p><?php echo $address;?></p>
							   		</div>
							   	</div>
						   		<div class="clearfix"></div>
						   </div>
					    </div>
					</div>
				<?php } ?>
				<?php if(  $phone ){ ?>
					<div class="col-lg-3">
				   		<div class="cntpgbx  ">		
				   			<div class="row mr-0">
				   				<div class="col-lg-1 col-md-1 pd-0">
						   			<div class="cntpgicn">
					   					<svg width="17.875" height="26" viewBox="0 0 17.875 26">
										  <path id="Path_296" data-name="Path 296" d="M16,3.25A3.253,3.253,0,0,1,19.25,0H30.625a3.253,3.253,0,0,1,3.25,3.25v19.5A3.253,3.253,0,0,1,30.625,26H19.25A3.253,3.253,0,0,1,16,22.75Zm10.562,19.5a1.625,1.625,0,1,0-1.625,1.625A1.625,1.625,0,0,0,26.562,22.75Zm4.062-19.5H19.25V19.5H30.625Z" transform="translate(-16)"/>
										</svg>
						   			</div>	
						   		</div>
						   		<div class="col-lg-11 col-md-11">
							   		<div class=" cntpgtxt">
							   			<span>Phone:</span>
							   			<a class="" href="tel:<?php echo $phone;?>"><p><?php echo $phone;?></p></a>
						   			</div>
						   		</div>
						   		<div class="clearfix"></div>
						   	</div>
					   	</div>
					</div>
				<?php } ?>
				<?php if(  $email  ){ ?>
					<div class="col-lg-4">
						<div class="cntpgbx ">
							<div class="row mr-0">
				   				<div class="col-lg-1 col-md-1 pd-0">
							   		<div class="cntpgicn">
							   			<svg width="26.254" height="26.26" viewBox="0 0 26.254 26.26">
										  <path id="Path_297" data-name="Path 297" d="M25.532.284a1.64,1.64,0,0,1,.692,1.6L22.942,23.215a1.642,1.642,0,0,1-2.256,1.261l-6.133-2.549-3.513,3.8A1.64,1.64,0,0,1,8.195,24.61V20.323a.8.8,0,0,1,.215-.549L17,10.4a.819.819,0,0,0-1.149-1.164L5.426,18.5.9,16.231a1.634,1.634,0,0,1-.908-1.42,1.653,1.653,0,0,1,.826-1.472L23.789.212a1.646,1.646,0,0,1,1.743.072Z" transform="translate(0.01 0.004)"/>
										</svg>
							   		</div>
							   	</div>
							   	<div class="col-lg-11 col-md-11">
							   		<div class=" cntpgtxt">	
							   			<span>Email:</span>
							   			<a href="mailto:<?php echo $email;?>"><p><?php echo $email;?></p></a>
							   		</div>
						   		</div>
						   		<div class="clearfix"></div>
						   	</div>
					    </div>
					</div>
				<?php } ?>	
			</div>
			<div class="clearfix"></div>
	 	</div>
	</div>
	<div class="contact-mapbox wow zoomIn">
		<?php echo $iframe; ?>
	</div>
	<div class="container">
		<div class="contact-address-area  wow zoomIn">
			<div class="c_area_oly"></div>
			<div class="row mr-0">	
				<div class="col-lg-5 col-md-6 col-sm-12 pd-0 ">
					<div class="cntlhsbx">
						<div class="callimg">
							<?php 
								$cal_image = get_theme_mod('cal_image');
								if(!empty($cal_image)){
									echo '<img alt="'. esc_html(get_the_title()) .'" src="'.esc_url($cal_image).'" class="img-responsive secondry-bg-img" />';
								}else{
									echo '<img src="'.get_template_directory_uri().'/images/conpg.jpg" class="img-responsive" />';
								}
							?>	
						</div>
					</div>
				</div>
				<div class="col-lg-7 col-md-6 col-sm-12 pd-0 ">
					<div class="contforminn">
						<div id="ht-contactus-wrap">
							<div class="contact-form">	
				          		<div class="ctform"><?php echo do_shortcode($shortcode);?></div>		
								<div class="clearfix"></div>					
							</div>
						</div>
					</div>
				</div>
			</div>
		  	<div class="clearfix"></div>
		</div>
		<div class="contact-bottomarea">
			<div class="row">
				<div class="col-xl-5">
					<div class="contact-bottoleftbox">
						<?php if(  $contactus_lefttitle  ){ ?>
							<div class="contact-lefttitle">
								<h3><?php echo $contactus_lefttitle; ?></h3>
							</div>
						<?php } ?>	
						<?php if(  $contactus_leftbtntxt  ){ ?>
							<div class="contact-leftbtn">
								<a href="<?php echo $contactus_leftbtnlink; ?>"><?php echo $contactus_leftbtntxt; ?></a>
							</div>
						<?php } ?>	
						<?php if(  $contactus_lefttxt  ){ ?>
							<p><?php echo $contactus_lefttxt; ?></p>
						<?php } ?>	
					</div>
				</div>
				<div class="col-xl-7">
					<div class="contact-bottorightbox">
						<?php
							if ( $contacttop_img_display === 'show' ) {
						?>
							<div class="contact-bottomimg">
								<img src="<?php echo get_template_directory_uri() ?>/images/contact.png" class="img-responsive" />
							</div>
						<?php } ?>
						<?php if(  $address  ){ ?>
							<div class="contact-details">
								<span>Company office</span>
								<p><?php echo $address;?></p>
							</div>
						<?php } ?>
						<?php if(  $phone  ){ ?>
							<div class="contact-details">
								<span>Phone:</span>
								<a href="tel:<?php echo $phone;?>"><p><?php echo $phone;?></p></a>
							</div>
						<?php } ?>
						<?php if(  $contactus_righttitle  ){ ?>
							<div class="contact-righttitle">
								<h3><?php echo $contactus_righttitle;?></h3>
							</div>
						<?php } ?>
						<?php if(  $contactus_rightbtntxt  ){ ?>
							<div class="contact-rightbtn">
								<a href="<?php echo $contactus_rightbtnlink;?>"><?php echo $contactus_rightbtntxt;?></a>
							</div>
						<?php } ?>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="clearfix"></div>
</main>
<?php get_footer(); ?>