<?php
/**
 * Admin Loader.
 *
 * Loads all modular admin files.
 *
 * @package The Studio Player
 */

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

// 1. Helpers (required by others).
require_once THESPL_PLUGIN_DIR . 'includes/admin/thespl-admin-helpers.php';

// 2. Core Admin Modules.
require_once THESPL_PLUGIN_DIR . 'includes/admin/thespl-admin-menu.php';
require_once THESPL_PLUGIN_DIR . 'includes/admin/thespl-admin-assets.php';
require_once THESPL_PLUGIN_DIR . 'includes/admin/thespl-admin-settings.php';
require_once THESPL_PLUGIN_DIR . 'includes/admin/thespl-admin-dashboard.php';
require_once THESPL_PLUGIN_DIR . 'includes/admin/thespl-admin-license.php';

// 3. Tool & Feature Modules.
require_once THESPL_PLUGIN_DIR . 'includes/admin/thespl-admin-tools.php';
require_once THESPL_PLUGIN_DIR . 'includes/admin/thespl-admin-muxer.php';
require_once THESPL_PLUGIN_DIR . 'includes/admin/thespl-admin-playlists.php';
require_once THESPL_PLUGIN_DIR . 'includes/admin/thespl-admin-builder.php';

do_action( 'thespl_admin_bootstrap' );

if ( function_exists( 'thespl_bootstrap_sample_tools' ) ) {
	thespl_bootstrap_sample_tools();
}
