<?php
/**
 * Internal bootstrap for the Maintenance Center addon.
 *
 * @package Polanger_Dashboard_Tools
 */

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

if ( ! defined( 'POLANGER_MAINTENANCE_CENTER_VERSION' ) ) {
  define( 'POLANGER_MAINTENANCE_CENTER_VERSION', defined( 'PDT_VERSION' ) ? PDT_VERSION : '1.5.6' );
}

if ( ! defined( 'POLANGER_MAINTENANCE_CENTER_FILE' ) ) {
  define( 'POLANGER_MAINTENANCE_CENTER_FILE', __FILE__ );
}

if ( ! defined( 'POLANGER_MAINTENANCE_CENTER_DIR' ) ) {
  define( 'POLANGER_MAINTENANCE_CENTER_DIR', trailingslashit( __DIR__ ) );
}

if ( ! defined( 'POLANGER_MAINTENANCE_CENTER_URL' ) ) {
  define( 'POLANGER_MAINTENANCE_CENTER_URL', trailingslashit( plugins_url( 'addons/maintenance-center', PDT_PLUGIN_FILE ) ) );
}

if ( ! defined( 'POLANGER_MAINTENANCE_CENTER_ADDON_SLUG' ) ) {
  define( 'POLANGER_MAINTENANCE_CENTER_ADDON_SLUG', 'maintenance-center' );
}

require_once POLANGER_MAINTENANCE_CENTER_DIR . 'includes/class-polanger-maintenance-center.php';

/**
 * Suite-native addon bootstrapper.
 */
class PDT_Maintenance_Center_Addon {

  /**
   * Boot the bundled Maintenance Center module.
   */
  public function __construct() {
    Polanger_Maintenance_Center::instance()->boot();
  }
}
