policy : add privacy policy page
All checks were successful
Deploy Production / Deploy to Production (push) Successful in 28s

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>
This commit is contained in:
isUnknown 2026-05-12 18:10:54 +02:00
parent 12227dc50c
commit bf041f4f7a
7 changed files with 193 additions and 1 deletions

View file

@ -0,0 +1,45 @@
title: Confidentialité
icon: lock
image:
back: rgba(0,0,0, 0)
color: var(--color-green)
query: false
options:
delete: false
duplicate: false
move: false
changeTemplate: false
changeStatus: false
tabs:
content:
label: Contenu
icon: text
fields:
body:
label: Corps
type: blocks
fieldsets:
heading:
extends: blocks/heading
fields:
level:
default: h3
options:
h3: Titre H3
text:
extends: blocks/text
fields:
text:
headings:
- 3
nodes:
- heading
marks:
- bold
- italic
- underline
- strike
- link
list:
extends: blocks/list
seo: seo/page

View file

@ -31,7 +31,7 @@ return [
'a-propos' => menuItem('a-propos', 'À propos', 'users', 'pages/a-propos'),
'blog' => menuItem('blog', 'Blog', 'text', 'pages/blog'),
'white-papers' => menuItem('livres-blancs', 'Livres blancs', 'book', 'pages/livres-blancs'),
'confidentialite' => menuItem('confidentialite', 'Confidentialité', 'lock', 'pages/confidentialite'),
'confidentialite' => menuItem('confidentialite', 'Confidentialité', 'lock', 'pages/policy'),
'-',
'users',
'system',

View file

@ -0,0 +1,20 @@
<?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);

View file

@ -0,0 +1,2 @@
<?php snippet('header') ?>
<?php snippet('footer') ?>