<?php
/**
 * Plugin Name: Real Estate Manager Pro
 * Plugin URI: https://wp-rem.com/
 * Description: A multi purpose classifieds and listings plugin
 * Version: 12.8.1
 * Author: WebCodingPlace
 * Author URI: https://webcodingplace.com/
 * License: GPLv2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: real-estate-manager
 * Domain Path: /languages
 */

require_once(__DIR__ . '/core.functions.php');
require_once(__DIR__ . '/classes/setup.class.php');
require_once(__DIR__ . '/classes/shortcodes.class.php');
require_once(__DIR__ . '/classes/hooks.class.php');
require_once(__DIR__ . '/classes/routes.class.php');
require_once(__DIR__ . '/classes/emails.class.php');
require_once(__DIR__ . '/classes/blocks.class.php');
require_once(__DIR__ . '/classes/widgets/mortgage-calculator.php');
require_once(__DIR__ . '/classes/widgets/search-properties.php');
require_once(__DIR__ . '/classes/widgets/ajax-search-properties.php');
require_once(__DIR__ . '/classes/widgets/tags-cloud.php');
require_once(__DIR__ . '/classes/widgets/recent-properties.php');
require_once(__DIR__ . '/classes/widgets/related-properties.php');
require_once(__DIR__ . '/classes/countries.class.php');
require_once(__DIR__ . '/classes/aichat.class.php');

/**
 * Iniliatizing main class object for setting up listing system
 */
if( class_exists('WCP_Real_Estate_Management')){
    register_activation_hook( __FILE__, array( 'WCP_Real_Estate_Management', 'rem_activated' ) );
    $rem_ob = new WCP_Real_Estate_Management;
}

/**
 * Initilaizing Shortcodes and WP Bakery Page Builder (Visual Composer) Components 
 */
if( class_exists('REM_Shortcodes')){
    $rem_sc_ob = new REM_Shortcodes;
}

/**
 * Initializing Custom hooks (actions + filters)
 */
if( class_exists('REM_Hooks')){
    $rem_hk_ob = new REM_Hooks;
}

/**
 * Initializing REST Routes
 */
if( class_exists('REM_REST_ROUTES')){
    $rem_rest_routes = new REM_REST_ROUTES;
}

/**
 * Initializing Emails
 */
if( class_exists('REM_Emails_Management')){
    $rem_emails_manager = new REM_Emails_Management;
}

/**
 * Initializing Gutenberg Blocks
 */
if( class_exists('REM_Gutenberg_Blocks')){
    $rem_blocks = new REM_Gutenberg_Blocks;
}
?>