<?php
	/**
	 * Template Name: Contact
	 * page_contact.php
	 * The contact page template in Ainex
	 * @author Vu Ngoc Linh
	 * @package Ainex
	 * @since 1.0.0
	 */
	get_header();
	the_post();
	global $ainex;
	get_template_part('loop/content','pagetitle');
?>
	<div class="container">
	    <div class="content_fullwidth">
	      	<div class="one_half">
	      		<div class="contact-text-info">
	        	<?php echo $ainex['contact_text']; ?>
	      		</div>
	        	<br />
	        	<?php get_template_part( 'content-parts/contact', 'form' ); ?>
	      	</div>
	      	<div class="one_half last">
	        	<div class="address-info">
		          	<?php if($ainex['contact_switch_address_info']){ ?>
			          	<h3><?php echo __('Address', 'themestudio'); ?> <strong><?php echo __('Info', 'themestudio'); ?></strong></h3>
			          	<ul>
			            	<li>
			            		<?php echo $ainex['contact_address_textarea']; ?>
			            	</li>
			          	</ul>
		          	<?php } ?>
	        	</div>
	        	<h3><i><?php echo __('Find the Address', 'themestudio'); ?></i></h3>
		        <?php if($ainex['contact_switch_map']){ ?>
		        	<?php get_template_part('content-parts/contact', 'map'); ?>
		        <?php } ?>
	    	</div>
	  	</div>
	</div>
  	<!-- end content area -->
  	<div class="clearfix mar_top5"></div>

<?php get_footer();