<?php
/*
Plugin Name: Static Content
Description: Renders the shared static HTML content block on the homepage.
Version: 1.0
*/

register_block('static', function (): void {
    $contentFile = CMS_ROOT . '/content.html';
    if (!is_file($contentFile)) {
        return;
    }

    $content = trim((string) file_get_contents($contentFile));
    if ($content === '') {
        return;
    }

    echo $content;
});
 
