<?php
/*
Plugin Name: Free Games
Description: Renders the homepage free games section.
Version: 1.0
*/

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

    require CMS_ROOT . '/content/plugins/free-games/free.php';
});
