<?php
/**
 * Template Name: Contact Page
 *
 * @package Luzuk Premium
 */
get_header(); 
?>
  <?php $image = wp_get_attachment_url( get_post_thumbnail_id($post->ID));?>
<div class="dinero-page-main"> 
    <header class="page-main-header" 
  <?php
    if(get_theme_mod('innerpage_featured_img_on_off') != 'on' ){
  ?>

 <?php  if (!empty($image)) : ?>
  style="background: url('<?php echo esc_url($image); ?>'); background-repeat: no-repeat; background-size:cover;
   height: <?php echo esc_attr(get_theme_mod('dinero_innerpage_image_height','300')) ?>px;
  "
  <?php endif ?> 

 <?php } ?>

  >
  
<?php
    if(get_theme_mod('page_title_on_off') != 'on' ){
  ?>
    <div class="<?php if(get_theme_mod('dinero_inner_page_width','Box Width') == 'Box Width'){ ?>container <?php } elseif(get_theme_mod('dinero_inner_page_width','Box Width') == 'Full Width'){ ?> container-fluid <?php }?> <?php echo esc_attr(get_theme_mod('dinero_innerpage_header_box_onload_effects','wow zoomIn')); ?>" data-wow-duration="1s">
        <?php the_title( '<h1 class="ht-main-title">', '</h1>' ); ?>
        <div class="clearfix"></div>
    </div>
 <?php } ?>    
  <?php
    if(get_theme_mod('breadcrumb_on_off') != 'on' ){
  ?>
        <div class="breadcrumbbox <?php echo esc_attr(get_theme_mod('dinero_innerpage_header_box_onload_effects','wow zoomIn')); ?>" data-wow-duration="1s">
            <div class="<?php if(get_theme_mod('dinero_inner_page_width','Box Width') == 'Box Width'){ ?>container <?php } elseif(get_theme_mod('dinero_inner_page_width','Box Width') == 'Full Width'){ ?> container-fluid <?php }?>">
                <div class='button'><?php luzuk_lite_the_breadcrumb(); ?></div>
                <!--  <?php //luzuk_lite_the_breadcrumb(); ?> -->
            </div>
        </div>
 <?php } ?>

</header><!-- .entry-header --> 
<div class="dinero-innerpage-overlay"></div>
</div>
<main id="innerpage-box">
		<div class="inner_contentbox">
		<?php 

		$dinero_contact_page_formtitle = get_theme_mod('dinero_contactpage_formtitle', 'Send Your Message Us');
		$dinero_contact_page_address_label = get_theme_mod('dinero_contactpage_address_label', 'Location');
		$dinero_contact_page_address = get_theme_mod('dinero_contactpage_address', 'Add Contact Address here..');
		$dinero_contact_page_address_line1 = get_theme_mod('dinero_contactpage_address_line1', '');
		$dinero_contact_page_address_line2 = get_theme_mod('dinero_contactpage_address_line2', '');
		$dinero_contact_page_phone_label = get_theme_mod('dinero_contactpage_phone_label', 'Phone');
		$dinero_contact_page_phone = get_theme_mod('dinero_contactpage_phone', '0(800 890-90-609)');
		$dinero_contact_page_phone_another = get_theme_mod('dinero_contactpage_phone_another', '0(800 890-90-620)');

		$dinero_contact_page_email_label = get_theme_mod('dinero_contactpage_email_label', 'Email');
		$dinero_contact_page_email = get_theme_mod('dinero_contactpage_email', 'info@example.com');
		$dinero_contact_page_email_another = get_theme_mod('dinero_contactpage_email_another', 'info@yourmail.com');
		$dinero_contact_page_time_label = get_theme_mod('dinero_contactpage_time_label', 'Working Hours');
		$dinero_contact_page_day = get_theme_mod('dinero_contactpage_day', 'Wednesday - Sunday');
		$dinero_contact_page_time_time = get_theme_mod('dinero_contactpage_time_time', '7:00AM - 5:00PM');

		$dinero_contact_page_form_shortcode = get_theme_mod('dinero_contactpage_form_shortcode', 'Add Form [SHORTCODE] Here');

		$dinero_contact_page_iframe_shortcode = get_theme_mod('dinero_contactpage_iframe_shortcode', 'Add Map Embed Code Here');
		?>
		<div id="dinero-contactus-wrap">
			  <div class="<?php if(get_theme_mod('dinero_inner_page_width','Box Width') == 'Box Width'){ ?>container <?php } elseif(get_theme_mod('dinero_inner_page_width','Box Width') == 'Full Width'){ ?> container-fluid <?php }?>">
			<div class="row">
				<?php if(!empty($dinero_contact_page_address_label || $dinero_contact_page_address || $dinero_contact_page_address_line1 || $dinero_contact_page_address_line2)){ ?>

				<div class="col-md-3 col-sm-3 col-xs-12 pd-0 dinero-contact-block <?php echo esc_attr(get_theme_mod('dinero_contactpage_box_onload_effects','wow zoomIn')); ?>" data-wow-duration="2s">
					<div class="dinero-contact-area" style="text-align: <?php if(get_theme_mod('dinero_contactpage_content_align','Center') == 'Center'){ ?> center <?php } elseif(get_theme_mod('dinero_contactpage_content_align','Left') == 'Left'){ ?> left <?php } elseif(get_theme_mod('dinero_contactpage_content_align','Right') == 'Right'){ ?> right <?php } ?> ">
						<i class="fa fa-map-marker" aria-hidden="true"></i>
						<div class="contact_l_area">
							<?php echo ($dinero_contact_page_address_label);  ?>
						</div>
						<div class="contact_info_area">
							<?php echo ($dinero_contact_page_address);  ?><br>					
							<?php echo ($dinero_contact_page_address_line1);  ?><br>
							<?php echo ($dinero_contact_page_address_line2);  ?>
						</div>
					</div>
				</div>
				<?php }?>
				<?php if(!empty($dinero_contact_page_phone_label || $dinero_contact_page_phone || $dinero_contact_page_phone_another)){ ?>
				<div class="col-md-3 col-sm-3 col-xs-12 pd-0 dinero-contact-block <?php echo esc_attr(get_theme_mod('dinero_contactpage_box_onload_effects','wow zoomIn')); ?>" data-wow-duration="2s">
					<div class="dinero-contact-area" style="text-align: <?php if(get_theme_mod('dinero_contactpage_content_align','Center') == 'Center'){ ?> center <?php } elseif(get_theme_mod('dinero_contactpage_content_align','Left') == 'Left'){ ?> left <?php } elseif(get_theme_mod('dinero_contactpage_content_align','Right') == 'Right'){ ?> right <?php } ?> ">
						<i class="fa fa-phone" aria-hidden="true"></i>
						<div class="contact_l_area">
							<?php echo ($dinero_contact_page_phone_label);  ?>
						</div>
						<div class="contact_info_area">
							<a href="telto:<?php echo $dinero_contact_page_phone;?>"><?php echo ($dinero_contact_page_phone);  ?></a><br>					
							<a href="telto:<?php echo $dinero_contact_page_phone_another;?>"><?php echo ($dinero_contact_page_phone_another);  ?></a>
						</div>
					</div>
				</div>
				<?php }?>
				<?php if(!empty($dinero_contact_page_email_label || $dinero_contact_page_email || $dinero_contact_page_email_another)){ ?>

				<div class="col-md-3 col-sm-3 col-xs-12 pd-0 dinero-contact-block <?php echo esc_attr(get_theme_mod('dinero_contactpage_box_onload_effects','wow zoomIn')); ?>" data-wow-duration="2s">
					<div class="dinero-contact-area" style="text-align: <?php if(get_theme_mod('dinero_contactpage_content_align','Center') == 'Center'){ ?> center <?php } elseif(get_theme_mod('dinero_contactpage_content_align','Left') == 'Left'){ ?> left <?php } elseif(get_theme_mod('dinero_contactpage_content_align','Right') == 'Right'){ ?> right <?php } ?> ">
						<i class="fa fa-envelope" aria-hidden="true"></i>
						<div class="contact_l_area">
							<?php echo ($dinero_contact_page_email_label);  ?>
						</div>
						<div class="contact_info_area">
							<a href="mailto:<?php echo $dinero_contact_page_email;?>"><?php echo ($dinero_contact_page_email);  ?></a><br>					
							<a href="mailto:<?php echo $dinero_contact_page_email_another;?>"><?php echo ($dinero_contact_page_email_another);  ?></a>
						</div>
					</div>
				</div>
				<?php }?>
				<?php if(!empty($dinero_contact_page_time_label || $dinero_contact_page_day || $dinero_contact_page_time_time)){ ?>
				<div class="col-md-3 col-sm-3 col-xs-12 pd-0 dinero-contact-block <?php echo esc_attr(get_theme_mod('dinero_contactpage_box_onload_effects','wow zoomIn')); ?>" data-wow-duration="2s">
					<div class="dinero-contact-area" style="text-align: <?php if(get_theme_mod('dinero_contactpage_content_align','Center') == 'Center'){ ?> center <?php } elseif(get_theme_mod('dinero_contactpage_content_align','Left') == 'Left'){ ?> left <?php } elseif(get_theme_mod('dinero_contactpage_content_align','Right') == 'Right'){ ?> right <?php } ?> ">
						<i class="fa fa-clock-o" aria-hidden="true"></i>
						<div class="contact_l_area">
							<?php echo ($dinero_contact_page_time_label);  ?>
						</div>
						<div class="contact_info_area">
							<?php echo ($dinero_contact_page_day);  ?><br>					
							<?php echo ($dinero_contact_page_time_time);  ?>
						</div>
					</div>
				</div>
				<?php }?>
				<div class="clearfix"></div>
			</div>
			<div class="clearfix"></div>
			</div>
		</div>
			<div class="dinero-contact-form-block">
				  <div class="<?php if(get_theme_mod('dinero_inner_page_width','Box Width') == 'Box Width'){ ?>container <?php } elseif(get_theme_mod('dinero_inner_page_width','Box Width') == 'Full Width'){ ?> container-fluid <?php }?>">
				  	<?php if(!empty($dinero_contact_page_formtitle)){ ?>
					<h2><?php echo ($dinero_contact_page_formtitle);  ?></h2>
					<?php }?>
					<div class="row">
						<?php if(!empty($dinero_contact_page_form_shortcode)){ ?>
						<div class="col-md-8 col-sm-8 col-xs-12">
							<div class="dinero-contact-page-form <?php echo esc_attr(get_theme_mod('dinero_contactpage_box_onload_effects','wow zoomIn')); ?>" data-wow-duration="2s">								
								<?php echo do_shortcode($dinero_contact_page_form_shortcode);?>
							</div>
						</div>
						<?php }?>
						<?php if(!empty($dinero_contact_page_iframe_shortcode)){ ?>
						<div class="col-md-4 col-sm-4 col-xs-12">
							<div class="dinero-contact-mapbox <?php echo esc_attr(get_theme_mod('dinero_contactpage_box_onload_effects','wow zoomIn')); ?>" data-wow-duration="2s">
								<?php echo ($dinero_contact_page_iframe_shortcode);  ?>
							</div>
						</div>
						<?php }?>
						<div class="clearfix"></div>
					</div>
				<div class="clearfix"></div>
				</div>
			</div>	
		<div class="clearfix"></div>
	</div>
</main>
<?php get_footer(); ?>