Add maintenance and 404 pages, template suites, and MCP skill
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user