<?php
/**
 * Plugin Name:       maca Hold
 * Plugin URI:        https://github.com/maca59/maca-hold
 * Description:       Maintenance mode with HTTP 503, customizable page, page exceptions, social links, hero template, and more.
 * Version:           2.0.10
 * Requires at least: 6.0
 * Requires PHP:      7.4
 * Author:            macas
 * Author URI:        https://github.com/maca59
 * License:           GPL-2.0-or-later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:       maca-hold
 * Domain Path:       /languages
 *
 * @package MacaHold
 */

defined( 'ABSPATH' ) || exit;

define( 'MACA_HOLD_VERSION', '2.0.10' );
define( 'MACA_HOLD_FILE', __FILE__ );
define( 'MACA_HOLD_PATH', plugin_dir_path( __FILE__ ) );
define( 'MACA_HOLD_URL', plugin_dir_url( __FILE__ ) );
define( 'MACA_HOLD_OPTION_KEY', 'maca_hold_settings' );
define( 'MACA_HOLD_BYPASS_COOKIE', 'maca_hold_bypass' );

require_once MACA_HOLD_PATH . 'includes/class-social-networks.php';
require_once MACA_HOLD_PATH . 'includes/class-settings.php';
require_once MACA_HOLD_PATH . 'includes/class-i18n.php';
require_once MACA_HOLD_PATH . 'includes/class-backgrounds.php';
require_once MACA_HOLD_PATH . 'includes/class-scheduler.php';
require_once MACA_HOLD_PATH . 'includes/class-cache-compat.php';
require_once MACA_HOLD_PATH . 'includes/class-template-renderer.php';
require_once MACA_HOLD_PATH . 'includes/class-maintenance-gate.php';
require_once MACA_HOLD_PATH . 'includes/class-maintenance-scope.php';
require_once MACA_HOLD_PATH . 'includes/class-extended-features.php';
require_once MACA_HOLD_PATH . 'includes/class-page-exceptions.php';
require_once MACA_HOLD_PATH . 'includes/class-plugin.php';

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

Maca_Hold_Plugin::instance();
