<?php
/**
 * Plugin Name:       Fogless Analytics
 * Plugin URI:        https://akoenterprise.cz/pluginsbysajmn/fogless-analytics-plugin/
 * Description:       Cookieless, privacy-first website analytics — readable data right inside WordPress. Live visitors, traffic, sources and more, with no GA4 chaos and no consent banner.
 * Version:           1.0.0
 * Author URI:        https://akoenterprise.cz/pluginsbysajmn/
 * Requires at least: 6.2
 * Requires PHP:      7.4
 * Author:            sajmn
 * License:           GPLv2 or later
 * License URI:       https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
 * Text Domain:       fogless-analytics
 * Domain Path:       /languages
 *
 * Fogless Analytics is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License, version 2, as
 * published by the Free Software Foundation.
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // No direct access.
}

define( 'DEFOG_VERSION', '1.0.0' );
define( 'DEFOG_FILE', __FILE__ );
define( 'DEFOG_DIR', plugin_dir_path( __FILE__ ) );
define( 'DEFOG_URL', plugin_dir_url( __FILE__ ) );
define( 'DEFOG_BASENAME', plugin_basename( __FILE__ ) );

require_once DEFOG_DIR . 'includes/helpers.php';
require_once DEFOG_DIR . 'includes/class-defog-install.php';
require_once DEFOG_DIR . 'includes/class-defog-privacy.php';
require_once DEFOG_DIR . 'includes/class-defog-bot-filter.php';
require_once DEFOG_DIR . 'includes/class-defog-tracker.php';
require_once DEFOG_DIR . 'includes/class-defog-aggregator.php';
require_once DEFOG_DIR . 'includes/class-defog-query.php';
require_once DEFOG_DIR . 'includes/class-defog-rest.php';
require_once DEFOG_DIR . 'includes/class-defog-woocommerce.php';
require_once DEFOG_DIR . 'includes/class-defog-admin.php';
require_once DEFOG_DIR . 'includes/class-defog.php';

// Activation / deactivation.
register_activation_hook( __FILE__, array( 'Defog_Install', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'Defog_Install', 'deactivate' ) );

// Boot.
add_action( 'plugins_loaded', array( 'Defog', 'instance' ) );
