world-game/site/templates/policy.json.php
isUnknown bf041f4f7a
All checks were successful
Deploy Production / Deploy to Production (push) Successful in 28s
policy : add privacy policy page
Blueprint, PHP templates, Svelte view (static title + body blocks), i18n key and App routing. Page is unlisted, excluded from frontend navigation, and all panel change options are disabled.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 18:10:54 +02:00

20 lines
393 B
PHP

<?php
$bodyBlocks = [];
foreach ($page->body()->toBlocks() as $block) {
if ($block->type() === 'text') {
$bodyBlocks[] = [
'type' => 'text',
'html' => $block->content()->text()->value(),
];
}
}
$specificData = [
'body' => $bodyBlocks,
];
$pageData = array_merge($genericData, $specificData);
header('Content-Type: application/json');
echo json_encode($pageData);