Release LaySite 1.4.0 canvas editing and layers

This commit is contained in:
2026-11-26 01:28:51 +08:00
parent d5bedabaa1
commit 2e9b5fa17c
19 changed files with 915 additions and 227 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ use App\Content\View;
$e = View::escape(...);
$canvas ??= false;
$body = $section['body'];
$dynamic = isset($section['feed']);
$dynamic = !empty($section['feed']);
$presentation = json_decode($section['presentation'] ?? '{}', true, flags: JSON_THROW_ON_ERROR);
$style = static fn (string $role): string => CanvasStyle::classes($presentation, $role);
$text = static fn (string $role): string => CanvasStyle::text($presentation, $role, $section[$role]);