<?php
/**
 * Plugin Name: CurrencyRate.Today - Currency Blocks and Widgets
 * Description: Help your visitors check live exchange rates and convert 180+ currencies instantly with beautiful, flexible currency widgets and blocks — free.
 * Version:     0.2.0
 * Author:      falselight
 * License:     GPL-2.0-or-later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: currencyrate-today-currency-blocks
 * Domain Path: /languages
 * Requires at least: 6.3
 * Requires PHP: 7.4
 */

declare(strict_types=1);

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

define('CRTODAY_PLUGIN_FILE', __FILE__);
define('CRTODAY_PLUGIN_DIR', plugin_dir_path(__FILE__));
define('CRTODAY_PLUGIN_URL', plugin_dir_url(__FILE__));
define('CRTODAY_PLUGIN_VERSION', '0.2.0');

/* Load native BigDecimal implementation (BCMath-based) */
require_once CRTODAY_PLUGIN_DIR . 'includes/class-crtoday-bigdecimal.php';

require_once CRTODAY_PLUGIN_DIR . 'includes/class-crtoday-plugin.php';

register_activation_hook(CRTODAY_PLUGIN_FILE, ['CRToday_Plugin', 'activate']);
register_deactivation_hook(CRTODAY_PLUGIN_FILE, ['CRToday_Plugin', 'deactivate']);

CRToday_Plugin::bootstrap();
