<?php

	if (get_theme_mod('dinero_contact_enable', true) == true) { ?>
	<!-- contact Area Start -->	
	<div class="contact-area" id="contact">
		
		 <div class="contact-bg"></div>
		
		<div class="<?php if(get_theme_mod('dinero_contact_section_width','Box Width') == 'Box Width'){ ?>container <?php } elseif(get_theme_mod('dinero_contact_section_width','Box Width') == 'Full Width'){ ?> container-fluid <?php }?>">
			<div class="row">
				<div class="col-md-5">							
							<?php
							$dinero_Addresslabel = get_theme_mod('dinero_contact_addresslabel', ' Our Location');
							$dinero_Address = get_theme_mod('dinero_contact_address', 'TA-134/A Gulshan Badda Link Rd, Dhaka');
							$dinero_emaillabel = get_theme_mod('dinero_contact_emaillabel', 'E-mail Us');
							$dinero_phonelabel = get_theme_mod('dinero_contact_phonelabel', 'Lets Talk');
							$dinero_email1 = get_theme_mod('dinero_contact_email1', 'info@yourmail.com');
							$dinero_phone1 = get_theme_mod('dinero_contact_phone1', '(+782) 983 0965');
							$dinero_email2 = get_theme_mod('dinero_contact_email2', 'info@exe.com');
							$dinero_phone2 = get_theme_mod('dinero_contact_phone2', '(+452) 320 1946');
						?>
						<div class="dinero-contact">
							<?php if($dinero_phonelabel || $dinero_phone1 || $dinero_phone2){ ?>
							<div class="dinero-contact-phone <?php echo esc_attr(get_theme_mod('dinero_contact_box_onload_effects','wow zoomIn')); ?>" data-wow-duration="2s">
								<div class="col-md-2 dinero-contact-icon"><i class="fa fa-phone" aria-hidden="true"></i></div>
								<div class="col-md-10 pd-0 dinero-contact-label"> <?php echo $dinero_phonelabel;?></div>
								<div class="clearfix"></div>
								<div class="dinero-contact-info">
								<a class="dinero-contact-data" href="telto:<?php echo $dinero_phone1;?>"><?php echo $dinero_phone1 ;?></a> , <a  class="dinero-contact-data"href="telto:<?php echo $dinero_phone2;?>"><?php echo $dinero_phone2 ;?></a>	
								</div>	
								<div class="clearfix"></div>	
							</div>
							<?php }?>
							<?php if($dinero_Addresslabel || $dinero_Address){ ?>
							<div class="dinero-contact-address <?php echo esc_attr(get_theme_mod('dinero_contact_box_onload_effects','wow zoomIn')); ?>" data-wow-duration="2s">
								<div class="col-md-2 dinero-contact-icon"><i class="fa fa-map-marker" aria-hidden="true"></i></div>
								<div class="col-md-10 pd-0 dinero-contact-label"> <?php echo $dinero_Addresslabel;?></div>
								<div class="clearfix"></div>
								<div class="dinero-contact-info">
								<div class="dinero-contact-data"><?php echo $dinero_Address ;?></div>
								</div>	
								<div class="clearfix"></div>
							</div>
							<?php }?>
							<div class="dinero-contact-mailid <?php echo esc_attr(get_theme_mod('dinero_contact_box_onload_effects','wow zoomIn')); ?>" data-wow-duration="2s">
							<?php if($dinero_emaillabel || $dinero_email1 || $dinero_email2){ ?>
								<div class="col-md-2 dinero-contact-icon"><i class="fa fa-envelope-o" aria-hidden="true"></i></div>
								<div class="col-md-10 pd-0 dinero-contact-label"><?php echo $dinero_emaillabel;?></div>
								<div class="clearfix"></div>
								<div class="dinero-contact-info">
								<a class="dinero-contact-data" href="mailto:<?php echo $dinero_email1;?>"> <?php echo $dinero_email1 ;?></a> , <a class="dinero-contact-data" href="mailto:<?php echo $dinero_email2;?>"> <?php echo $dinero_email2 ;?></a>	
							</div>
							<?php }?>
							<div class="clearfix"></div>		
							</div>
						
						</div>

				</div>
				<div class="col-md-7">	
					<div class="dinero-contact-block <?php echo esc_attr(get_theme_mod('dinero_contact_box_onload_effects','wow zoomIn')); ?>" data-wow-duration="2s">
						<?php
							$dinero_contact_page_id = get_theme_mod('dinero_contact_page');	
							$dinero_contact_maintitle = get_theme_mod('dinero_contact_maintitle', 'CONTACT US');							
							?>
						<div class="dinero-section-head" style="text-align: <?php if(get_theme_mod('dinero_contact_head_align','Center') == 'Center'){ ?> center <?php } elseif(get_theme_mod('dinero_contact_head_align','Left') == 'Left'){ ?> left <?php } elseif(get_theme_mod('dinero_contact_head_align','Right') == 'Right'){ ?> right <?php } ?> ">
							
							<?php if($dinero_contact_maintitle){ ?>
		                        <h2><?php echo ($dinero_contact_maintitle);  ?></h2>
		                        <?php }?>
							   <?php if( get_theme_mod('dinero_contact_head_icon_enable','No') == 'Yes'){ ?>
          						<div class="dinero-section-head-icon">
      								<i class="<?php echo esc_attr(get_theme_mod('dinero_contact_head_icon', 'fa fa-bell')); ?>"></i>
      							</div>
      							<?php }?>				
						</div>


						<?php 
						$dinero_contact_form_shortcode = get_theme_mod('dinero_contact_form_shortcode', 'Add form shortcode on customiser');
						?>
						<div class="dinero-contact-member-wrap">
							<?php echo do_shortcode($dinero_contact_form_shortcode);?>
							<div class="clearfix"></div>
						</div>
					</div>
				</div>
				
			</div>
	<div class="clearfix"></div>
		</div>
	</div> 
	<!-- contact Area Start -->
<script>
	var matchHeight = function () {
	
	function init() {
		eventListeners();
		matchHeight();
	}
	
	function eventListeners(){
		$(window).on('resize', function() {
			matchHeight();
		});
	}
	
	function matchHeight(){
		var groupName = $('[feature-match-height]');
		var groupHeights = [];
		
		groupName.css('min-height', 'auto');
		
		groupName.each(function() {
			groupHeights.push($(this).outerHeight());
		});
		
		var maxHeight = Math.max.apply(null, groupHeights);
		groupName.css('min-height', maxHeight);
	};
	
	return {
		init: init
	};
	
} ();

$(document).ready(function() {
	matchHeight.init();
});
</script>
	
<?php } 