<?php
/**
 * Plugin Name: Swairish Header Bar & Offer Notifications
 * Description: Create offer bars, coupon and countdown notices, social proof alerts, local integrations, and privacy-first metrics.
 * Version: 1.4.0
 * Requires at least: 6.5
 * Requires PHP: 7.4
 * Author: Swairish
 * Author URI: https://swadhinkhan.com/
 * License: GPLv2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: swairish-header-bar-offer-notifications
 */

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

define('SWAIRISHX_VERSION', '1.4.0');
define('SWAIRISHX_API_VERSION', '1.1');
define('SWAIRISHX_FILE', __FILE__);
define('SWAIRISHX_PATH', plugin_dir_path(__FILE__));
define('SWAIRISHX_URL', plugin_dir_url(__FILE__));

require_once SWAIRISHX_PATH . 'includes/class-swairishx-registry.php';
require_once SWAIRISHX_PATH . 'includes/class-swairishx-storage.php';
require_once SWAIRISHX_PATH . 'includes/class-swairishx-integrations.php';
require_once SWAIRISHX_PATH . 'includes/class-swairishx-renderer.php';
require_once SWAIRISHX_PATH . 'includes/class-swairishx-admin.php';
require_once SWAIRISHX_PATH . 'includes/class-swairishx-plugin.php';

register_activation_hook(__FILE__, array('SwairishX_Plugin', 'activate'));
register_deactivation_hook(__FILE__, array('SwairishX_Plugin', 'deactivate'));

function swairishx() {
    return SwairishX_Plugin::instance();
}

add_action('plugins_loaded', 'swairishx');
