Restore the original Laysense footer
This commit is contained in:
@@ -36,7 +36,7 @@ $e = View::escape(...);
|
||||
<small>每行填写「显示号码 | tel:号码」。</small>
|
||||
</label>
|
||||
<div class="form-grid">
|
||||
<?php foreach (['products' => '第一列', 'company' => '第二列'] as $key => $text): ?>
|
||||
<?php foreach (['products' => '第一列', 'company' => '第二列', 'resources' => '第三列'] as $key => $text): ?>
|
||||
<div class="admin-form">
|
||||
<label><?= $text ?>标题<input name="<?= $key ?>_title" value="<?= $e($config[$key . '_title']) ?>"></label>
|
||||
<label><?= $text ?>链接<textarea name="<?= $key ?>" rows="6"><?= $e(SiteDesign::linkText($config[$key])) ?></textarea>
|
||||
@@ -50,3 +50,11 @@ $e = View::escape(...);
|
||||
<?php endif ?>
|
||||
<div class="form-submit"><button class="button button-primary" type="submit">保存设置</button></div>
|
||||
</form>
|
||||
<?php if ($part === 'footer'): ?>
|
||||
<form method="post" action="/admin/settings/footer">
|
||||
<input type="hidden" name="csrf" value="<?= $e($token) ?>">
|
||||
<input type="hidden" name="version" value="<?= $e($revision) ?>">
|
||||
<input type="hidden" name="operation" value="restore-footer">
|
||||
<button class="button button-outline" type="submit" data-confirm="用原站的页脚内容覆盖当前页脚设置?">恢复原站页脚</button>
|
||||
</form>
|
||||
<?php endif ?>
|
||||
|
||||
Reference in New Issue
Block a user