Add maintenance and 404 pages, template suites, and MCP skill

This commit is contained in:
2026-11-25 15:36:01 +08:00
parent 277610913a
commit 884ce10789
47 changed files with 470 additions and 52 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
<?php
use App\Content\LayoutPage;
use App\Content\View;
$e = View::escape(...);
@@ -13,7 +12,7 @@ $e = View::escape(...);
<form class="admin-form admin-panel" method="post" action="/admin/new-page">
<input type="hidden" name="csrf" value="<?= $e($token) ?>">
<label>页面类型<select name="type" data-new-page-type>
<?php foreach (LayoutPage::TYPES as $value => $label): ?>
<?php foreach ($types as $value => $label): ?>
<option value="<?= $e($value) ?>" <?= $type === $value ? 'selected' : '' ?>><?= $e($label) ?></option>
<?php endforeach ?>
</select></label>