<?php
/*
Plugin Name: Live Results
Description: Renders the live results block on the homepage.
Version: 1.0
*/

register_block('live', function (): void {
    $db = $GLOBALS['db'] ?? null;
    if (!$db instanceof PDO) {
        return;
    }

    require CMS_ROOT . '/includes/live.php';
});
