home.html
3.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{template 'common/header'}
<style>
body{
font:{$_W['styles']['fontsize']} {$_W['styles']['fontfamily']};
color:{$_W['styles']['fontcolor']};
padding:0;
margin:0;
background-image:url('{if !empty($_W['styles']['indexbgimg'])}{$_W['styles']['indexbgimg']}{/if}');
background-size:cover;
background-color:{if empty($_W['styles']['indexbgcolor'])}#DDD{else}{$_W['styles']['indexbgcolor']}{/if};
{$_W['styles']['indexbgextra']}
}
a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
{$_W['styles']['css']}
.box{margin:2.9% 2.8%;}
.box .box-item{display:block; height:55px; overflow:hidden; line-height:55px; text-decoration:none; color:#fff; border-radius:0.25em; margin-bottom:1px; background:-webkit-linear-gradient(#f0f4f4 0%,#f0f4f4 56%,#f0f3f3 57%,#d2d6d6 100%);}
.box .box-item i{float:left; display:block; font-size:35px; height:55px; width:55px; text-align:center;line-height:55px; border-radius:50%; vertical-align:middle; overflow:hidden;}
.box .box-item span{color:{$_W['styles']['fontnavcolor']}; display:inline-block; overflow:hidden; width:50%; margin-left:10px;}
.box .box-item:nth-child(1){background:-webkit-linear-gradient(#fc5d57 0%,#fc5d57 65%,#fa5d57 66%,#db514c 100%);background:-moz-linear-gradient(top,#fc5d57 0%,#fc5d57 65%,#fa5d57 66%,#db514c 100%)}
.box .box-item:nth-child(2){background:-webkit-linear-gradient(#8d507a 0%,#8d507a 65%,#8b507a 66%,#7b466a 100%);background:-moz-linear-gradient(top,#8d507a 0%,#8d507a 65%,#8b507a 66%,#7b466a 100%);}
.box .box-item:nth-child(3){background:-webkit-linear-gradient(#38799f 0%,#38799f 65%,#38799d 66%,#31698a 100%);background:-moz-linear-gradient(top,#38799f 0%,#38799f 65%,#38799d 66%,#31698a 100%);}
.box .box-item:nth-child(4){background:-webkit-linear-gradient(#59b7c1 0%,#59b7c1 65%,#59b5bf 66%,#4da0a8 100%);background:-moz-linear-gradient(top,#59b7c1 0%,#59b7c1 65%,#59b5bf 66%,#4da0a8 100%);}
.box .box-item:nth-child(5){background:-webkit-linear-gradient(#6abc8c 0%,#6abc8c 65%,#6aba8a 66%,#5da57b 100%);background:-moz-linear-gradient(top,#6abc8c 0%,#6abc8c 65%,#6aba8a 66%,#5da57b 100%);}
.box .box-item:nth-child(6){background:-webkit-linear-gradient(#676f7f 0%,#676f7f 65%,#656d7d 66%,#5b6170 100%);background:-moz-linear-gradient(top,#676f7f 0%,#676f7f 65%,#656d7d 66%,#5b6170 100%);}
.imgs{width:100%; padding:10px 0 0 10px;}
.imgs a{float:left; display:block; width:32%; margin:0 1.3% 10px 0; height:92px; text-align:center; text-decoration:none; line-height:92px; border:1px solid #999; border-radius:5px; overflow:hidden;}
.imgs a img{display:block; height:90px; margin:0 auto;}
.imgs a i{display:block; width:100%; height:90px; text-align:center; line-height:90px; font-size:35px;}
</style>
<div class="box clearfix">
{php $num = 0;}
{data func="site_navs" section="1" item="nav"}
<a href="{$nav['url']}" class="box-item clearfix">
{if !empty($nav['icon'])}
<i style="background:url({$_W['attachurl']}{$nav['icon']}) no-repeat;background-size:cover; width:37px; height:37px; margin:9px"></i>
{else}
<i class="fa {$nav['css']['icon']['icon']}" style="{$nav['css']['icon']['style']}"></i>
{/if}
<i class="fa fa-chevron-right pull-right" style="font-size:15px; font-weight:400;"></i>
<span style="{$nav['css']['name']}" title="{$nav['name']}">{$nav['name']}</span>
</a>
{php $num++; if($num > 5) break;}
{/data}
</div>
{template 'common/slide'}
<!--图片展示-->
<div class="imgs clearfix">
{data func="site_navs" section="2" item="row"}
<a href="{$row['url']}" class="box-item">
{if !empty($row['icon'])}
<img src="{$_W['attachurl']}{$row['icon']}">
{else}
<i class="fa {$row['css']['icon']['icon']} img-circle" style="{$row['css']['icon']['style']}"></i>
{/if}
</a>
{/data}
</div>
{template 'common/footer'}