Prepare LaySite 1.5.1 page routing and template updates

This commit is contained in:
2026-11-28 03:07:14 +08:00
parent 50fb30ff3b
commit 474cb766be
41 changed files with 354 additions and 146 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ if (str_starts_with($imageUrl, '/')) {
$imageUrl = View::absolute($imageUrl);
}
$theme = $page['theme'] ?? '';
$palette = DesignLibrary::find((int) ($page['palette_id'] ?? 0), 'palette');
$palette = DesignLibrary::find((int) ($page['palette_id'] ?? ($theme === '' ? $site['palette_id'] ?? 0 : 0)), 'palette');
$showHeader = $page['visibility']['header'] ?? true;
$showFooter = $page['visibility']['footer'] ?? true;
$canvasStyles = $content . ($headerMarkup ?? '') . ($footerMarkup ?? '');