<?php
/**
 * Plugin Name: CurrencyRate.Today - Currency Blocks and Widgets
 * Description: Free: 5 beautiful currency blocks — live rates, converter, ticker, card, price badge. 173 currencies, 15 sources, custom rates. No API key.
 * Version:     1.0.3
 * 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', '1.0.3');
define('CRTODAY_DEBUG', false);

/* 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();
