<?php

/**
 * The plugin bootstrap file
 *
 * This file is read by WordPress to generate the plugin information in the plugin
 * admin area. This file also includes all of the dependencies used by the plugin,
 * registers the activation and deactivation functions, and defines a function
 * that starts the plugin.
 *
 * @link              https://30liones.com/team
 * @since             1.0.0
 * @package           Apartment_Fee_Display_Manager
 *
 * @wordpress-plugin
 * Plugin Name:       RentPress: Apartment Fee Display Manager
 * Plugin URI:        https://30lines.com
 * Description:       A comprehensive add-on for RentPress that simplifies apartment fee transparency. Automatically displays one-time, monthly, and annual fees on properties and floorplans using intelligent data inheritance, customizable modals, and inline calculators.
 * Version:           1.2.8
 * Author:            30 Lines
 * Author URI:        https://30lines.com/
 * License:           GPL-2.0+
 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
 * Text Domain:       apartment-fee-display-manager
 * Requires at least: 6.0
 * Requires PHP:      7.2
 * Requires Plugins:  advanced-custom-fields-pro, rentpress-for-websites
 * Domain Path:       /languages
 */

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

/**
 * Currently plugin version.
 * Start at version 1.0.0 and use SemVer - https://semver.org
 * Rename this for your plugin and update it as you release new versions.
 */
define( 'APARTMENT_FEE_DISPLAY_MANAGER_VERSION', '1.2.8' );

/**
 * The code that runs during plugin activation.
 * This action is documented in includes/class-apartment-fee-display-manager-activator.php
 */
function activate_apartment_fee_display_manager() {
	require_once plugin_dir_path( __FILE__ ) . 'includes/class-apartment-fee-display-manager-activator.php';
	Apartment_Fee_Display_Manager_Activator::activate();
}

/**
 * The code that runs during plugin deactivation.
 * This action is documented in includes/class-apartment-fee-display-manager-deactivator.php
 */
function deactivate_apartment_fee_display_manager() {
	require_once plugin_dir_path( __FILE__ ) . 'includes/class-apartment-fee-display-manager-deactivator.php';
	Apartment_Fee_Display_Manager_Deactivator::deactivate();
}

register_activation_hook( __FILE__, 'activate_apartment_fee_display_manager' );
register_deactivation_hook( __FILE__, 'deactivate_apartment_fee_display_manager' );

/**
 * The core plugin class that is used to define internationalization,
 * admin-specific hooks, and public-facing site hooks.
 */
require plugin_dir_path( __FILE__ ) . 'includes/class-apartment-fee-display-manager.php';

/**
 * Begins execution of the plugin.
 *
 * Since everything within the plugin is registered via hooks,
 * then kicking off the plugin from this point in the file does
 * not affect the page life cycle.
 *
 * @since    1.0.0
 */
function run_apartment_fee_display_manager() {

	$plugin = new Apartment_Fee_Display_Manager();
	$plugin->run();

}
run_apartment_fee_display_manager();

require 'includes/plugin-update-checker/plugin-update-checker.php';
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;

$myUpdateChecker = PucFactory::buildUpdateChecker(
    'https://bitbucket.org/30lines/rentpress-fees-calculator-add-on',
    __FILE__,
    'apartment-fee-display-manager'
);