<?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" <?php  if (!empty($image)) : ?> style="background: url('<?php echo esc_url($image); ?>'); background-repeat: no-repeat; background-size:cover; position: relative;"<?php endif ?> >  
<div class="innheadpgimg"></div>    
    <div class="  container" >
        <div class="headinnbox">
            <!-- </?php the_title( '<h1 class="ht-main-title ">', '</h1>' ); ?>  -->
            <?php if( get_theme_mod('breadcrumb_button_display','show' ) == 'show') : ?>
            <div class="breadcrumbbox ">
                <div class='button'><?php luzuk_lite_the_breadcrumb(); ?></div>
                <div class="clearfix"></div>
            </div>
             <?php endif ?>
        </div>
    </div>
    <div class="clearfix"></div>
</header>
<main id="innerpage-box" >
	<div class="inner-contactarea">
		<div class="container">
			<div class="contact-address-area">
			    <?php 
			    	$contheading = get_theme_mod('contheading', 'Contact Info');
			    	$conttext = get_theme_mod('conttext', 'Pellentesque quis purus tempus, varius lectus et, scelerisque nisl. Duis faucibus justo purus, laoreet efficitur odio Bibendum.');
			  		$phone1 = get_theme_mod('luzuk_contactus_phone1', '(+800) 841 098 371 , ');
			  		$phone2 = get_theme_mod('luzuk_contactus_phone2', '(+324) 907 206 195');

			    	$email = get_theme_mod('luzuk_contactus_email', 'info@support.com , ');
			    	$email2 = get_theme_mod('luzuk_contactus_email2', ' info@example.com');

					$address = get_theme_mod('luzuk_contactus_address', '21 Main St Lockport North Dakota 14094 (716) 434-0500 United States.');

					$shortcodeLbl = get_theme_mod('luzuk_contactus_shortcode_lbl', 'Leave A Message For Us');
					$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');

				?>
				<div class="contform" >
					<div class="row mr-0">
						<div class="detailbx">
							<div class="contct-leftbx">
								<?php if($contheading){ ?>	
									<div class="cont-hdtitle">
										<?php echo ($contheading);  ?>
									</div>
								<?php }?>
								<?php if($conttext){ ?>	
									<div class="cont-hdtext">
										<?php echo ($conttext);  ?>
									</div>
								<?php }?>
								<?php if(!empty( $phone1 || $phone2 || $email || $email2 || $address)){ ?>
									<div class="cntlhsbx">	
						    			 <?php if( $phone1 || $phone2){ ?>
									   		<div class="cntpgbx ">
									   			<div class="row mr-0">
										   			<div class="col-lg-1 col-md-1 col-sm-1 col-2 pd-0 cntpgicon">
											   			<div class="cntpgicn">
											   				<i class="fa fa-phone" ></i> 
											   			</div>
											   		</div>
											   		<div class="col-lg-11 col-md-11 col-sm-11 col-10 cntpgtxt">
											   			<p><a class="" href="tel:<?php echo $phone1;?>"><?php echo $phone1;?></a>
											   				<a class="" href="tel:<?php echo $phone2;?>"><?php echo $phone2;?></a>
											   			</p>
										   			</div>
										   		</div>
										   		<div class="clearfix"></div>
										   	</div>
										 <?php } ?>	

											<?php if( $email || $email2 ){ ?>
											<div class="cntpgbx ">
												<div class="row mr-0">
													<div class="col-lg-1 col-md-1 col-sm-1 col-2 pd-0 cntpgicon">
											   			<div class="cntpgicn">
											   				<i class="fa fa-envelope" ></i>
											   			</div>
											   		</div>
											   		<div class="col-lg-11 col-md-11 col-sm-11 col-10 cntpgtxt">
											   			<p><a href="mailto:<?php echo $email;?>"><?php echo $email;?></a>
											   				<a href="mailto:<?php echo $email2;?>"><?php echo $email2;?></a></p>
											   		</div>
											   	</div>
										   		<div class="clearfix"></div>
										   	</div>
											<?php } ?>	

											<?php if($address ){ ?>
											<div class="cntpgbx ">
												<div class="row mr-0">
													<div class="col-lg-1 col-md-1 col-sm-1 col-2 pd-0 cntpgicon">
											   			<div class="cntpgicn">
											   				<i class="fa fa-map-marker" ></i>
											   			</div>
											   		</div>
											   		<div class="col-lg-11 col-md-11 col-sm-11 col-10 cntpgtxt">
											   			<p><?php echo $address;?></p>				   			
											   		</div>
											   	</div>
										   		<div class="clearfix"></div>
										   	</div>
											 <?php } ?>

									 		<div class="clearfix"></div>
									</div>
								<?php }?> 
							</div>
						</div>
						<?php if($shortcodeLbl || $shortcode ){ ?>
						<div class="contforminn">
							<div id="ht-contactus-wrap">
								
								<?php if(!empty($shortcodeLbl)){ ?>
					                <div class="maintle inner-area-title">
					                	<h1><?php echo $shortcodeLbl;?></h1>
					                </div>	
					            <?php }?>
								<div class="contact-form">
					                <div class="ctform">
										<?php echo do_shortcode($shortcode);?>
										<div class="clearfix"></div>
										
									</div>
									<div class="clearfix"></div>					
								</div>
								<div class="clearfix"></div>
							</div>
						</div>
						<?php }?>
					</div>
					<div class="clearfix"></div>
				</div>
	  			<div class="clearfix"></div>
			</div>
		</div>	
	</div>
	<div class="contact-mapbox ">
		<?php echo $iframe; ?>
	</div>
	<!-- <div class="container"> --> 
		
	<!-- </div> -->
	<div class="clearfix"></div>
</main>
<?php 
  get_template_part('template-parts/section','support');
 ?>
 <?php 
  get_template_part('template-parts/section','newsletter');
 ?>
<?php get_footer(); ?>