<?php

/*



Template Name: RC Details Page



*/



?>

<?php 

get_header('');



include_once(ABSPATH.'wp-admin/includes/plugin.php');



if (is_plugin_active( 'RealConnect/RealConnect.php' )) {

	echo '<div class="property-details-template">';

	include_once(LoadPHPFile('/RealConnect/controllers/details.php'));

	 $mls_id = get_query_var( 'page', 1 ); 

	  global $post;

    $post_slug=$post->post_name;

	 if(is_numeric($mls_id) && ($mls_id != 0)){

		$property_type =  $post_slug;

		/* it use for capital leter url */

		if( $property_type == "multifamily"){

			$property_type = "multiFamily";	

		} 

	    details($property_type,$mls_id);

	   

	}

	echo '</div>';

}



?>

<?php get_footer(); ?>

