forked from laysense/laysite
Edit shared headers and footers as page types
This commit is contained in:
@@ -1,18 +1,5 @@
|
||||
<?php
|
||||
use App\Content\DesignLibrary;
|
||||
use App\Content\View;
|
||||
|
||||
$layout = [
|
||||
'id' => 0,
|
||||
'preset' => $preset,
|
||||
'payload' => array_replace(DesignLibrary::defaults($kind), [
|
||||
'brand' => '品牌名称',
|
||||
'text' => '关于网站的一句话介绍。',
|
||||
'links' => $layoutEditor ? [] : [['/', '首页'], ['/articles', '文章']],
|
||||
'legal' => '© 品牌名称',
|
||||
'action' => [['/articles', '了解更多', 'solid', false]],
|
||||
]),
|
||||
];
|
||||
use App\Content\LayoutPage;
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
@@ -20,12 +7,8 @@ $layout = [
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="/assets/site.css">
|
||||
<link rel="stylesheet" href="/assets/design-editor.css">
|
||||
</head>
|
||||
<body class="design-frame <?= $layoutEditor ? 'design-frame-editing' : 'design-frame-sample' ?>">
|
||||
<?= View::fragment($kind, [
|
||||
$kind => $layout, 'site' => ['name' => '品牌名称'], 'showHeader' => true, 'showFooter' => true,
|
||||
'path' => '/', 'visitor' => null, 'member' => $preset === 'member', 'layoutEditor' => $layoutEditor,
|
||||
]) ?>
|
||||
<body class="layout-thumbnail">
|
||||
<?= LayoutPage::sample($kind, $preset) ?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user