<?php
/**
 * Core plugin class that ties everything together.
 *
 * @package MatrixFallingCode
 */

defined( 'ABSPATH' ) || exit;

// Include admin & public handlers
require_once MFC_PLUGIN_DIR . 'includes/admin/class-matrix-admin.php';
require_once MFC_PLUGIN_DIR . 'includes/public/class-matrix-public.php';

class Matrix_Falling_Code {

    /**
     * Initialize plugin: hook admin or public functionality.
     */
    public function run() {
        // Admin-side integrations (plugin action links, settings, etc.)
        if ( is_admin() ) {
            $admin = new Matrix_Falling_Code_Admin();
            $admin->init();
        }

        // Front-end: enqueue assets and render canvas
        $public = new Matrix_Falling_Code_Public();
        $public->init();
    }
}


