<?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="overlay1"></div> 
    <div class="pgtlebx">
        <?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 class="clearfix"></div>
    </div>
    <div class="clearfix"></div>
</header>

<main id="innerpage-box" >
	<?php
        // width 
        $c_width = get_theme_mod('innpg_c_width', 'container');

        if ($c_width === 'container') {
            $c_alignment = 'container';
        } elseif ($c_width === 'container-fluid') {
            $c_alignment = 'container-fluid';
        } else {
            $text_alignment = 'container'; // Default to 'container' if the setting is invalid
        }
            
    ?>
	<?php 
		$scodesubtitle = get_theme_mod('scodesubtitle', 'Contact Us');
		$scodetitle = get_theme_mod('scodetitle', 'We’re Here To Provide ');
		$scodetitle2 = get_theme_mod('scodetitle2', '24X7 Support');
		$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');
			
		$bx1_tlte = get_theme_mod('bx1tlte', 'Say Hello!');	
		$bx1_txt = get_theme_mod('bx1_txt', 'There Are Many Variations Of Passages Of Lorem Ipsum Available, But The Majority Have Suffered Slightly Believable.');	

		$imgtitle = get_theme_mod('imgtitle', '24/7 Contact Support');
		$imglink = get_theme_mod('imglink', 'info@example.com');

		$dbx_subtle = get_theme_mod('dbx_subtle', 'Contact Us');	
		$dbx_tle = get_theme_mod('dbx_tle', 'Our Global Office Locations');	
		
		$c_nme1 = get_theme_mod('luzuk_contactus_c_nme1', 'USA');	
		$address = get_theme_mod('luzuk_contactus_address', 'Add Address here..');
		$phone = get_theme_mod('luzuk_contactus_phone', '000-123-456789');	
		$email = get_theme_mod('luzuk_contactus_email', 'info@example.com');
		
		$c_nme2 = get_theme_mod('luzuk_contactus_c_nme2', 'Spain');	
		$address2 = get_theme_mod('luzuk_contactus_address2', 'Add Address here..');
		$phone2 = get_theme_mod('luzuk_contactus_phone2', '1111-222-333');	
		$email2 = get_theme_mod('luzuk_contactus_email2', 'Info@gmail.com');
		
		$c_nme3 = get_theme_mod('luzuk_contactus_c_nme3', 'France');	
		$address3 = get_theme_mod('luzuk_contactus_address3', 'Add Address here..');
		$phone3 = get_theme_mod('luzuk_contactus_phone3', '1111-222-444');	
		$email3 = get_theme_mod('luzuk_contactus_email3', 'Infoext@gmail.com');
		

	?>	
		<div class="contact-address-area ">
			<div class="<?php echo esc_attr($c_width); ?>"> 
				<div class="fmbx ">
					<div class="row mr-0">	
						<div class="col-lg-7 col-md-12 col-sm-12 ">
							<?php if( $scodesubtitle || $scodetitle || $shortcode ){ ?>			
							<div id="ht-contactus-wrap">													
								<div class="conformbx">
									<?php if( $scodesubtitle ){ ?>
									<div class="submaintle inner-area-title"><i class="fa fa-arrows-alt" ></i> <?php echo $scodesubtitle;?></div>
									<?php } ?>	
						         	<div class="maintle inner-area-title"><?php echo $scodetitle;?><span><?php echo $scodetitle2;?></span></div>	
				     			</div>		     			
				          		<div class="ctform"><?php echo do_shortcode($shortcode);?></div>		
								<div class="clearfix"></div>												
							</div>				
							<?php } ?>
						</div>
						<?php if(  $bx1_tlte || $bx1_txt ){ ?>
						<div class="col-lg-5 col-md-12 col-sm-12 ">
							<div class="cntlhsbx">
								<div class="txtbx">
									<div class="bxtitle inner-area-title"><?php echo $bx1_tlte;?></div>
									<div class="bxtxt"><?php echo $bx1_txt;?></div>
							    </div>	 
							    <div class="contpgimgbx">
							    	<?php 
										$contpg_image1 = get_theme_mod('contpg_image1');
										if(!empty($contpg_image1)){
											echo '<img alt="'. esc_html(get_the_title()) .'" src="'.esc_url($contpg_image1).'" class="img-responsive secondry-bg-img" />';
										}else{
											echo '<img src="'.get_template_directory_uri().'/images/conpgimg.jpg" class="img-responsive" />';
										}
									?>	
									<div class="fmimgoly"></div>
									<div class="m_enk">
										<div class="enktitle"><?php echo $imgtitle;?></div>
										<a href="mailto:<?php echo $imglink;?>"><div class="enklink"><?php echo $imglink;?></div></a>
										
									</div>
									<?php if( get_theme_mod('plane_display','show' ) == 'show') :?>
									<div class="plane">
									<?php 
										$contpg_image2 = get_theme_mod('contpg_image2');
										if(!empty($contpg_image2)){
											echo '<img alt="'. esc_html(get_the_title()) .'" src="'.esc_url($contpg_image2).'" class="img-responsive secondry-bg-img" />';
										}else{
											echo '<img src="'.get_template_directory_uri().'/images/contpg_plane.png" class="img-responsive" />';
										}
									?>	
									</div>
									<?php endif ?>
							    </div>  
							</div>
						</div>
						<?php } ?>		
					</div>
				</div>
			</div>
			<div class="conbx ">
				<div class="<?php echo esc_attr($c_width); ?>"> 	
					<?php if(  $dbx_subtle  ){ ?>
					<div class="dbxsubtitlebx">
						<div class="dbxsubtitle"><?php echo $dbx_subtle;?></div>
					</div>
					<?php } ?>
					<div class="dbxtitle"><?php echo $dbx_tle;?></div>		
					<div class="conbxinn">
						<div class="row mr-0">	
							<?php if( $c_nme1 || $address || $phone || $email  ){ ?>
							<div class="col-lg-4 col-md-6 box">		
								<div class="cntpgbx ">
									<?php if(  $c_nme1  ){ ?>
									<div class="cname"><?php echo $c_nme1;?></div>
									<?php } ?>
								   	<!--  -->
								   	<?php if(  $address  ){ ?>
								   	<div class="cntpgbxinn">
									   	<div class="row mr-0">
							   				<div class="col-lg-1 col-md-2 col-sm-2 col-2 ">
										   		<div class="cntpgicn icnbx2">		
										   			<i class="fa fa-home" ></i>
										   		</div>
										   	</div>
										   	<div class="col-lg-10 col-md-10 col-sm-10 col-10 ">
										   		<div class="cntpgtxt">					   			
										   			<p><?php echo $address;?></p>
										   		</div>
										   	</div>
									   		<div class="clearfix"></div>
									   </div>
									</div>
								   <?php } ?>
								   <!--  -->
								   	<?php if(  $phone  ){ ?>
								   	<div class="cntpgbxinn">
									   	<div class="row mr-0">
							   				<div class="col-lg-1 col-md-2 col-sm-2 col-2 ">
									   			<div class="cntpgicn icnbx3">
								   					<i class="fa fa-envelope" aria-hidden="true"></i>
									   			</div>	
									   		</div>
									   		<div class="col-lg-10 col-md-10 col-sm-10 col-10">
										   		<div class=" cntpgtxt">							   			
										   			<a class="" href="tel:<?php echo $phone;?>"><p><?php echo $phone;?></p></a>
									   			</div>
									   		</div>
									   		<div class="clearfix"></div>
									   	</div>
								  	</div>
								   	<?php } ?>
								   	<?php if(  $email  ){ ?>
								   	<div class="cntpgbxinn">
										<div class="row mr-0">
							   				<div class="col-lg-1 col-md-2 col-sm-2 col-2 ">
										   		<div class="cntpgicn icnbx1">
										   			<i class="fa fa-phone" aria-hidden="true"></i>
										   		</div>
										   	</div>
										   	<div class="col-lg-10 col-md-10 col-sm-10 col-10 ">
										   		<div class=" cntpgtxt">						   			
										   			<a href="mailto:<?php echo $email;?>"><p><?php echo $email;?></p></a>
										   		</div>
									   		</div>
									   		<div class="clearfix"></div>
									   	</div>
								    </div>
								   	<?php } ?>
							    </div>					
							</div>	
							<?php } ?>

							<?php if( $c_nme2 || $address2 || $phone2 || $email2  ){ ?>
							<div class="col-lg-4 col-md-6 box">	    			
								<div class="cntpgbx ">	
									<?php if(  $c_nme2  ){ ?>				
									<div class="cname"><?php echo $c_nme2;?></div>
									<?php } ?>
									<?php if(  $address2 ){ ?>
								   	<div class="cntpgbxinn ">
									   	<div class="row mr-0">
							   				<div class="col-lg-1 col-md-2 col-sm-2 col-2 ">
										   		<div class="cntpgicn icnbx2">								   			
										   			<i class="fa fa-home" ></i>
										   		</div>
										   	</div>
										   	<div class="col-lg-10 col-md-10 col-sm-10 col-10 ">
										   		<div class="cntpgtxt">					   			
										   			<p><?php echo $address2;?></p>
										   		</div>
										   	</div>
									   	<div class="clearfix"></div>
									   </div>
									</div>
								   <?php } ?>
								   <!--  -->
								   	<?php if(  $phone2 || $c_nme3 ){ ?>
								   	<div class="cntpgbxinn">
									   	<div class="row mr-0">
							   				<div class="col-lg-1 col-md-2 col-sm-2 col-2 ">
									   			<div class="cntpgicn icnbx3">
								   					<i class="fa fa-envelope" aria-hidden="true"></i>
									   			</div>	
									   		</div>
									   		<div class="col-lg-10 col-md-10 col-sm-10 col-10">
										   		<div class=" cntpgtxt">
										   			
										   			<a class="" href="tel:<?php echo $phone2;?>"><p><?php echo $phone2;?></p></a>
									   			</div>
									   		</div>
									   		<div class="clearfix"></div>
									   	</div>
								    </div>
								   	<?php } ?>
								   	<?php if(  $email2  ){ ?>
								   	<div class="cntpgbxinn">
										<div class="row mr-0">
							   				<div class="col-lg-1 col-md-2 col-sm-2 col-2 ">
										   		<div class="cntpgicn icnbx1">
										   			<i class="fa fa-phone" aria-hidden="true"></i>
										   		</div>
										   	</div>
										   	<div class="col-lg-10 col-md-10 col-sm-10 col-10 ">
										   		<div class=" cntpgtxt">							   			
										   			<a href="mailto:<?php echo $email2;?>"><p><?php echo $email2;?></p></a>
										   		</div>
									   		</div>
									   		<div class="clearfix"></div>
									   	</div>
								    </div>
								   	<?php } ?>
							    </div>					
							</div>
							<?php } ?>

							<?php if( $c_nme3 || $address3 || $phone3 || $email3  ){ ?>
							<div class="col-lg-4 col-md-6 box">
								<div class="cntpgbx ">
									<?php if(  $c_nme3  ){ ?>	
									<div class="cname"><?php echo $c_nme3;?></div>
									<?php } ?>
								   	<!--  -->
								   	<?php if(  $address3  ){ ?>
								   	<div class="cntpgbxinn">
									   	<div class="row mr-0">
							   				<div class="col-lg-1 col-md-2 col-sm-2 col-2 ">
										   		<div class="cntpgicn icnbx2">								   			
										   			<i class="fa fa-home" ></i>
										   		</div>
										   	</div>
										   	<div class="col-lg-10 col-md-10 col-sm-10 col-10 ">
										   		<div class="cntpgtxt">					   			
										   			<p><?php echo $address3;?></p>
										   		</div>
										   	</div>
									   	<div class="clearfix"></div>
									   </div>
									</div>
								   <?php } ?>
								   <!--  -->
								   	<?php if(  $phone3  ){ ?>
								   	<div class="cntpgbxinn">
									   	<div class="row mr-0">
							   				<div class="col-lg-1 col-md-2 col-sm-2 col-2 ">
									   			<div class="cntpgicn icnbx3">
								   					<i class="fa fa-envelope" aria-hidden="true"></i>
									   			</div>	
									   		</div>
									   		<div class="col-lg-10 col-md-10 col-sm-10 col-10">
										   		<div class=" cntpgtxt">
										   			
										   			<a class="" href="tel:<?php echo $phone3;?>"><p><?php echo $phone3;?></p></a>
									   			</div>
									   		</div>
									   		<div class="clearfix"></div>
									   	</div>
								    </div>
								   	<?php } ?>
								   	<?php if(  $email3  ){ ?>
								   	<div class="cntpgbxinn">
										<div class="row mr-0">
							   				<div class="col-lg-1 col-md-2 col-sm-2 col-2 ">
										   		<div class="cntpgicn icnbx1">
										   			<i class="fa fa-phone" aria-hidden="true"></i>
										   		</div>
										   	</div>
										   	<div class="col-lg-10 col-md-10 col-sm-10 col-10 ">
										   		<div class=" cntpgtxt">										   	
										   			<a href="mailto:<?php echo $email3;?>"><p><?php echo $email3;?></p></a>
										   		</div>
									   		</div>
									   		<div class="clearfix"></div>
									   	</div>
								    </div>
								   	<?php } ?>
							    </div>	
								<?php } ?>
							</div>
							<div class="clearfix"></div>
						</div>
					</div>
				</div>
			</div>
			<div class="contact-mapbox ">
				<?php echo $iframe; ?>
			</div> 
		</div>
	
	<div class="clearfix"></div>
</main>

<?php get_footer(); ?>