<?php
/**
 * Plugin Name: BLR Backline
 * Description: Front-end band dashboard powered by WordPress.
 * Version: 1.0.1
 * Author: Bad Little Robot
 * Requires at least: 6.9
 * Requires PHP: 8.0
 * License: GPL-2.0-or-later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: blr-backline
 * Domain Path: /languages
 */

if (!defined('ABSPATH')) {
    exit;
}

define('BLR_BA_VERSION', '1.0.1');
define('BLR_BA_FILE', __FILE__);
define('BLR_BA_DIR', plugin_dir_path(__FILE__));
define('BLR_BA_URL', plugin_dir_url(__FILE__));

require_once BLR_BA_DIR . 'app/Core/Assets.php';
require_once BLR_BA_DIR . 'app/Core/CrudHelpers.php';
require_once BLR_BA_DIR . 'app/Core/Money.php';
require_once BLR_BA_DIR . 'app/Core/Request.php';
require_once BLR_BA_DIR . 'app/Core/Format.php';
require_once BLR_BA_DIR . 'app/Core/PostQueries.php';
require_once BLR_BA_DIR . 'app/Core/ListPage.php';
require_once BLR_BA_DIR . 'app/Core/Media.php';
require_once BLR_BA_DIR . 'app/Core/Sanitizer.php';
require_once BLR_BA_DIR . 'app/Core/TrackBulkUpload.php';
require_once BLR_BA_DIR . 'app/Core/Access.php';
require_once BLR_BA_DIR . 'app/Core/Views.php';
require_once BLR_BA_DIR . 'app/Core/FrontendFormHandler.php';
require_once BLR_BA_DIR . 'app/Core/Router.php';
require_once BLR_BA_DIR . 'app/Core/SettingsPage.php';
require_once BLR_BA_DIR . 'app/Core/PublicApi.php';
require_once BLR_BA_DIR . 'app/Core/template-functions.php';
require_once BLR_BA_DIR . 'app/Core/AdminMenu.php';
require_once BLR_BA_DIR . 'app/Core/Privacy.php';
require_once BLR_BA_DIR . 'app/Core/RelatedRecords.php';
require_once BLR_BA_DIR . 'app/Core/Plugin.php';

add_action('plugins_loaded', static function (): void {
    \BLR\Backline\Core\Plugin::instance()->boot();
});

require_once BLR_BA_DIR . 'app/Core/activate.php';
register_activation_hook(BLR_BA_FILE, 'blr_ba_activate');
register_deactivation_hook(BLR_BA_FILE, 'blr_ba_deactivate');

