莫名
This commit is contained in:
@@ -5,8 +5,11 @@ if (!empty($p['layout'])) {
|
||||
$dec = json_decode($p['layout'], true);
|
||||
if (is_array($dec)) $layout = $dec;
|
||||
}
|
||||
// 模式渲染:可视化编辑(builder)且有 layout → 画布;否则固定版式正文。
|
||||
// 旧页面 mode 为空且含 layout 时仍走画布,保持向后兼容。
|
||||
$useBuilder = !empty($layout) && ($p['mode'] ?? '') !== 'fixed';
|
||||
?>
|
||||
<?php if (!empty($layout)): ?>
|
||||
<?php if ($useBuilder): ?>
|
||||
<?php echo \Core\View::buffer('parts/canvas', ['layout' => $layout, 'item' => $p, 'module' => 'page']); ?>
|
||||
<?php else: ?>
|
||||
<section class="page-hero">
|
||||
|
||||
Reference in New Issue
Block a user