Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
______--______
ShopXO
提交
3ede56f9
ShopXO
项目概览
______--______
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3ede56f9
编写于
1月 03, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
前端展示友情链接
上级
2e375c4a
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
77 addition
and
1 deletion
+77
-1
application/index/controller/Common.php
application/index/controller/Common.php
+5
-0
application/index/view/default/public/footer_nav.html
application/index/view/default/public/footer_nav.html
+20
-1
application/service/LinkService.php
application/service/LinkService.php
+15
-0
public/static/index/default/css/common.css
public/static/index/default/css/common.css
+37
-0
未找到文件。
application/index/controller/Common.php
浏览文件 @
3ede56f9
...
@@ -17,6 +17,7 @@ use app\service\BuyService;
...
@@ -17,6 +17,7 @@ use app\service\BuyService;
use
app\service\MessageService
;
use
app\service\MessageService
;
use
app\service\SearchService
;
use
app\service\SearchService
;
use
app\service\ConfigService
;
use
app\service\ConfigService
;
use
app\service\LinkService
;
/**
/**
* 前端公共控制器
* 前端公共控制器
...
@@ -205,6 +206,10 @@ class Common extends Controller
...
@@ -205,6 +206,10 @@ class Common extends Controller
// 商城公告
// 商城公告
$this
->
assign
(
'common_shop_notice'
,
MyC
(
'common_shop_notice'
));
$this
->
assign
(
'common_shop_notice'
,
MyC
(
'common_shop_notice'
));
// 友情链接
$link
=
LinkService
::
LinkShowList
();
$this
->
assign
(
'link_list'
,
$link
[
'data'
]);
}
}
/**
/**
...
...
application/index/view/default/public/footer_nav.html
浏览文件 @
3ede56f9
<!-- 友情链接 -->
{{if !empty($link_list)}}
<div
class=
"friendship-list"
>
<div
class=
"am-container"
>
<h2>
友情链接
</h2>
<ul>
{{foreach $link_list as $v}}
<li>
<a
href=
"{{$v.url}}"
{{
if
$
v
['
is_new_window_open
']
eq
1}}
target=
"_blank"
{{/
if
}}
title=
"{{$v.describe}}"
>
{{$v.name}}
</a>
</li>
{{/foreach}}
</ul>
</div>
</div>
{{/if}}
<!-- 底部导航 -->
<footer
data-am-widget=
"footer"
class=
"am-footer am-footer-default"
data-am-footer=
"{}"
>
<footer
data-am-widget=
"footer"
class=
"am-footer am-footer-default"
data-am-footer=
"{}"
>
<div
class=
"footer-nav-list"
>
<div
class=
"footer-nav-list"
>
{{foreach $nav_footer as $k=>$v}}
{{foreach $nav_footer as $k=>$v}}
...
@@ -10,6 +27,8 @@
...
@@ -10,6 +27,8 @@
<div
class=
"am-footer-miscs"
>
<div
class=
"am-footer-miscs"
>
<p>
由
<a
href=
"http://shopxo.net/"
title=
"ShopXO电商系统"
target=
"_blank"
class=
""
>
ShopXO
</a>
提供技术支持
</p>
<p>
由
<a
href=
"http://shopxo.net/"
title=
"ShopXO电商系统"
target=
"_blank"
class=
""
>
ShopXO
</a>
提供技术支持
</p>
<p>
CopyRight©2016-{{:date('Y')}} ShopXO {{$Think.APPLICATION_VERSION}} Inc.
</p>
<p>
CopyRight©2016-{{:date('Y')}} ShopXO {{$Think.APPLICATION_VERSION}} Inc.
</p>
<p>
{{:MyC('home_site_icp')}}
</p>
<p>
<a
href=
"http://www.miitbeian.gov.cn/"
target=
"_blank"
>
{{:MyC('home_site_icp')}}
</a>
</p>
</div>
</div>
</footer>
</footer>
\ No newline at end of file
application/service/LinkService.php
浏览文件 @
3ede56f9
...
@@ -22,6 +22,21 @@ use app\service\GoodsService;
...
@@ -22,6 +22,21 @@ use app\service\GoodsService;
*/
*/
class
LinkService
class
LinkService
{
{
/**
* 前端展示
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2018-09-29
* @desc description
* @param [array] $params [输入参数]
*/
public
static
function
LinkShowList
(
$params
=
[])
{
$data
=
Db
::
name
(
'Link'
)
->
where
([
'is_enable'
=>
1
])
->
order
(
'sort asc'
)
->
select
();
return
DataReturn
(
'处理成功'
,
0
,
$data
);
}
/**
/**
* 列表
* 列表
* @author Devil
* @author Devil
...
...
public/static/index/default/css/common.css
浏览文件 @
3ede56f9
...
@@ -447,6 +447,40 @@ background:url(../images/ibar_sprites.png) no-repeat;background-position:0px -23
...
@@ -447,6 +447,40 @@ background:url(../images/ibar_sprites.png) no-repeat;background-position:0px -23
.am-footer-default
.am-footer-divider
{
.am-footer-default
.am-footer-divider
{
padding
:
0
5px
;
padding
:
0
5px
;
}
}
.am-footer-default
.am-footer-miscs
a
{
color
:
#8e8e8e
;
}
/**
* 友情链接
*/
.friendship-list
{
margin-top
:
20px
;
margin-bottom
:
10px
;
}
.friendship-list
h2
{
border-bottom
:
1px
solid
#e3e0e0
;
line-height
:
26px
;
color
:
#333
;
font-weight
:
500
;
font-size
:
14px
;
}
.friendship-list
ul
{
overflow
:
hidden
;
}
.friendship-list
ul
li
{
float
:
left
;
line-height
:
26px
;
text-align
:
center
;
}
.friendship-list
ul
li
:not
(
:last-child
)
{
margin-right
:
10px
;
}
.friendship-list
ul
li
:not
(
:last-child
)
a
{
border-right
:
1px
solid
#d4d4d4
;
padding-right
:
10px
;
}
/**
/**
...
@@ -458,6 +492,9 @@ background:url(../images/ibar_sprites.png) no-repeat;background-position:0px -23
...
@@ -458,6 +492,9 @@ background:url(../images/ibar_sprites.png) no-repeat;background-position:0px -23
padding-left
:
0px
;
padding-left
:
0px
;
padding-right
:
0px
;
padding-right
:
0px
;
}
}
.friendship-list
{
padding
:
0
5px
;
}
}
}
/**
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录