Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xchenhao
blog
提交
38c043fe
B
blog
项目概览
xchenhao
/
blog
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
1
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
blog
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
38c043fe
编写于
10月 05, 2019
作者:
xchenhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update footer copyright && changyan
上级
854dd4c1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
4 deletion
+7
-4
frontend/config/main-local.php
frontend/config/main-local.php
+1
-0
frontend/controllers/ArticleController.php
frontend/controllers/ArticleController.php
+2
-0
frontend/views/article/view.php
frontend/views/article/view.php
+1
-1
frontend/views/layouts/footer.php
frontend/views/layouts/footer.php
+3
-3
未找到文件。
frontend/config/main-local.php
浏览文件 @
38c043fe
...
...
@@ -14,6 +14,7 @@ if (!YII_ENV_TEST) {
$config
[
'bootstrap'
][]
=
'debug'
;
$config
[
'modules'
][
'debug'
]
=
[
'class'
=>
'yii\debug\Module'
,
//'allowedIPs' => ['39.96.69.155'],
];
// $config['bootstrap'][] = 'gii';
// $config['modules']['gii'] = [
...
...
frontend/controllers/ArticleController.php
浏览文件 @
38c043fe
...
...
@@ -75,6 +75,8 @@ class ArticleController extends Controller
{
$model
=
Article
::
find
()
->
where
([
'id'
=>
$id
])
->
one
();
$category
=
Category
::
getAllTree
(
0
,
2
);
$this
->
view
->
title
=
$model
->
title
;
return
$this
->
render
(
'view'
,
[
'model'
=>
$model
,
'category'
=>
$category
,
...
...
frontend/views/article/view.php
浏览文件 @
38c043fe
...
...
@@ -70,7 +70,7 @@
<script
charset=
"utf-8"
type=
"text/javascript"
src=
"http://changyan.sohu.com/upload/changyan.js"
></script>
<script
type=
"text/javascript"
>
window
.
changyan
.
api
.
config
({
appid
:
'
cy
t8rNSI2
'
,
appid
:
'
cy
ut7Btpp
'
,
conf
:
'
prod_90e87bc6f74b46bcdf9234cd3ab6fa0f
'
});
</script>
...
...
frontend/views/layouts/footer.php
浏览文件 @
38c043fe
...
...
@@ -47,12 +47,12 @@ use common\models\Links;
</div>
</div>
<div
class=
"copyright"
>
Copyright
©
201
7
-2020 不可思议的博客
</div>
<div
class=
"copyright"
>
Copyright
©
201
9
-2020 不可思议的博客
</div>
<div
style=
"width:300px;margin:0 auto; padding: 0;"
class=
"copyright"
>
<a
target=
"_blank"
href=
"
#
"
style=
"display:inline-block;text-decoration:none;height:20px;line-height:20px;"
>
<a
target=
"_blank"
href=
"
http://beian.miit.gov.cn/
"
style=
"display:inline-block;text-decoration:none;height:20px;line-height:20px;"
>
<img
src=
"/theme/news/img/ghs.png"
style=
"float:left;"
/>
<p
style=
"float:left;height:20px;line-height:20px;margin: 0px 0px 0px 5px; color:#FFFFFF;"
>
京 XXX-XXXX
<p
style=
"float:left;height:20px;line-height:20px;margin: 0px 0px 0px 5px; color:#FFFFFF;"
>
闽ICP备17026538号-4
</p>
</a>
</div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录