1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-22 11:41:27 +08:00

Merge branch 'develop' into demo

This commit is contained in:
xiaochong0302 2020-09-26 19:48:45 +08:00
commit ca7d63f0fa
3 changed files with 6 additions and 6 deletions

View File

@ -27,8 +27,8 @@
<div class="layui-form-item">
<label class="layui-form-label">首页版式</label>
<div class="layui-input-block">
<input type="radio" name="index_tpl" value="simple" title="简洁" {% if site.index_tpl == 'simple' %}checked="checked"{% endif %}>
<input type="radio" name="index_tpl" value="full" title="丰富" {% if site.index_tpl == 'full' %}checked="checked"{% endif %}>
<input type="radio" name="index_tpl_type" value="simple" title="简洁" {% if site.index_tpl_type == 'simple' %}checked="checked"{% endif %}>
<input type="radio" name="index_tpl_type" value="full" title="丰富" {% if site.index_tpl_type == 'full' %}checked="checked"{% endif %}>
</div>
</div>
<div class="layui-form-item">

View File

@ -15,9 +15,9 @@ class IndexController extends Controller
$this->seo->setKeywords($this->siteInfo['keywords']);
$this->seo->setDescription($this->siteInfo['description']);
$template = $this->siteInfo['index_tpl'] ?? 'full';
$type = $this->siteInfo['index_tpl_type'] ?? 'full';
if ($template == 'full') {
if ($type == 'full') {
$this->fullIndex();
} else {
$this->simpleIndex();

View File

@ -312,7 +312,7 @@ final class InsertSettingData extends AbstractMigration
],
[
'section' => 'site',
'item_key' => 'index_tpl',
'item_key' => 'index_tpl_type',
'item_value' => 'simple',
],
[
@ -338,7 +338,7 @@ final class InsertSettingData extends AbstractMigration
[
'section' => 'site',
'item_key' => 'police_link',
'item_value' => 'http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=abc',
'item_value' => '',
],
[
'section' => 'site',