'', 'name' => $fallbackName,
'colors' => $layout ? [] : ($defaultPalette['colors'] ?? ($usesSitePalette ? DesignLibrary::defaults('palette') : [])),
'version' => $defaultPalette['version'] ?? 0, 'cssId' => $defaultPalette['id'] ?? null,
]];
foreach ($palettes as $palette) {
if ($palette['id'] === $defaultPaletteId) {
if (!$layout && $defaultPalette && $page['palette_id'] !== $defaultPaletteId) {
continue;
}
$palette['name'] .= $defaultPalette ? '(固定使用)' : '(当前站点默认)';
}
$palette['region'] = (bool) $layout;
$paletteOptions[] = $palette;
}
$previewUrl = '/admin/pages/' . $slug . '/preview';
$systemLabel = SystemPage::TYPES[$page['page_type']] ?? null;
$fontSizes = [8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 28, 32, 36, 40, 48, 56, 64, 72, 96, 120, 144];
$spacingPresets = [0, 4, 8, 12, 16, 24, 32, 48, 64, 96, 128];
?>
返回页面
= $e($title) ?>
= $e(LayoutPage::TYPES[$layout['kind']]) ?>
= $e($home ? '首页' : $systemLabel) ?>= $e($path) ?>= $e($publicationLabel) ?>
= View::fragment('studio-icon', ['icon' => 'settings']) ?>页面设置
'编辑页头', 'footer' => '编辑页脚'] as $kind => $label): ?>
>= View::fragment('studio-icon', ['icon' => $kind]) ?>= $e($label) ?>
= View::fragment('studio-icon', ['icon' => 'settings']) ?>站点设置
= View::fragment('studio-icon', ['icon' => 'copy']) ?>复制页面
= View::fragment('studio-icon', ['icon' => 'history']) ?>版本历史
>= View::fragment('admin-view-link', ['href' => $publicPage ? '/' . $publication['slug'] : $path, 'icon' => 'external', 'label' => '查看公开页面']) ?>
= View::fragment('admin-view-link', ['href' => $previewUrl, 'icon' => 'preview', 'label' => '预览已保存草稿']) ?>
= View::fragment('admin-feedback', compact('error', 'saved')) ?>
页面画布
= View::fragment('studio-fill') ?>
= View::fragment('studio-page-templates', compact('token')) ?>