mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-23 03:50:56 +08:00
Merge branch 'develop' into demo
This commit is contained in:
commit
ca7d63f0fa
@ -27,8 +27,8 @@
|
|||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label">首页版式</label>
|
<label class="layui-form-label">首页版式</label>
|
||||||
<div class="layui-input-block">
|
<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_type" value="simple" title="简洁" {% if site.index_tpl_type == '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="full" title="丰富" {% if site.index_tpl_type == 'full' %}checked="checked"{% endif %}>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
|
@ -15,9 +15,9 @@ class IndexController extends Controller
|
|||||||
$this->seo->setKeywords($this->siteInfo['keywords']);
|
$this->seo->setKeywords($this->siteInfo['keywords']);
|
||||||
$this->seo->setDescription($this->siteInfo['description']);
|
$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();
|
$this->fullIndex();
|
||||||
} else {
|
} else {
|
||||||
$this->simpleIndex();
|
$this->simpleIndex();
|
||||||
|
@ -312,7 +312,7 @@ final class InsertSettingData extends AbstractMigration
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
'section' => 'site',
|
'section' => 'site',
|
||||||
'item_key' => 'index_tpl',
|
'item_key' => 'index_tpl_type',
|
||||||
'item_value' => 'simple',
|
'item_value' => 'simple',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -338,7 +338,7 @@ final class InsertSettingData extends AbstractMigration
|
|||||||
[
|
[
|
||||||
'section' => 'site',
|
'section' => 'site',
|
||||||
'item_key' => 'police_link',
|
'item_key' => 'police_link',
|
||||||
'item_value' => 'http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=abc',
|
'item_value' => '',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'section' => 'site',
|
'section' => 'site',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user