home.html
4.58 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
59
60
61
62
{template 'common/header'}
{template 'common/slide'}
<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'])}#FFF{else}{$_W['styles']['indexbgcolor']}{/if};
{$_W['styles']['indexbgextra']}
}
a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
{$_W['styles']['css']}
.box .box2{ float:left; height:6.65em; text-align:center; width:33.33%;}
.box .box-item{text-align:center; display:block; text-decoration:none; outline:none; height:60%; line-height:60%; border-radius:5px; width:60%; margin:8% 0 0 20%; color:#333; box-shadow:0.2em 0.2em 0.2em rgba(0,0,0,0.1);}
.box .box2:nth-child(1){ border-right:#f7f7f7 solid 1px; background:-webkit-linear-gradient(#ebebeb 0%,#ebebeb 80%,#ebebeb 81%,#d1d1d1 100%);background:-moz-linear-gradient(top,#ebebeb 0%,#ebebeb 80%,#ebebeb 81%,#d1d1d1 100%);}
.box .box2:nth-child(1) .box-item{ background:#aec74b; background:-webkit-linear-gradient(#aec74b 0%,#8fa33d 100%);background:-moz-linear-gradient(top,#aec74b,#8fa33d);}
.box .box2:nth-child(2){ border-left:#d1d1d1 solid 1px; border-right:#fbfbfb solid 1px; background:-webkit-linear-gradient(#ebebeb 0%,#ebebeb 80%,#ebebeb 81%,#d1d1d1 100%);background:-moz-linear-gradient(top,#ebebeb 0%,#ebebeb 80%,#ebebeb 81%,#d1d1d1 100%);}
.box .box2:nth-child(2) .box-item{ background:#ffbe5d; background:-webkit-linear-gradient(#ffbe5d 0%,#d19c4c 100%); background:-moz-linear-gradient(top,#ffbe5d 0%,#d19c4c 100%);}
.box .box2:nth-child(3){ border-left:#d1d1d1 solid 1px; background:-webkit-linear-gradient(#ebebeb 0%,#ebebeb 80%,#ebebeb 81%,#d1d1d1 100%);background:-moz-linear-gradient(top,#ebebeb 0%,#ebebeb 80%,#ebebeb 81%,#d1d1d1 100%);}
.box .box2:nth-child(3) .box-item{ background:#fd6b5c; background:-webkit-linear-gradient(#fd6b5c 0%,#cf584b 100%);background:-moz-linear-gradient(top,#fd6b5c 0%,#cf584b 100%);}
.box .box2:nth-child(4){ border-top:#fbfbfb solid 1px; border-right:#fbfbfb solid 1px; background:-webkit-linear-gradient(top,#ebebeb 0%,#ebebeb 80%,#ebebeb 81%,#d3d3d3 100%);background:-moz-linear-gradient(top,#ebebeb 0%,#ebebeb 80%,#ebebeb 81%,#d3d3d3 100%);}
.box .box2:nth-child(4) .box-item{ background:#fd5d8e; background:-webkit-linear-gradient(#fd5d8e 0%,#cf4c74 100%);background:-moz-linear-gradient(top,#fd5d8e 0%,#cf4c74 100%);}
.box .box2:nth-child(5){ border-left:#d1d1d1 solid 1px; border-top:#fbfbfb solid 1px; border-right:#fbfbfb solid 1px; background:-webkit-linear-gradient(#ebebeb 0%,#ebebeb 80%,#ebebeb 81%,#d3d3d3 100%);background:-moz-linear-gradient(top,#ebebeb 0%,#ebebeb 80%,#ebebeb 81%,#d3d3d3 100%);}
.box .box2:nth-child(5) .box-item{ background:#8a6cc5; background:-webkit-linear-gradient(#8a6cc5 0%,#7159a1 100%);background:-moz-linear-gradient(top,#8a6cc5 0%,#7159a1 100%);}
.box .box2:nth-child(6){ border-left:#d1d1d1 solid 1px; border-top:#fbfbfb solid 1px; background:-webkit-linear-gradient(top,#ebebeb 0%,#ebebeb 80%,#ebebeb 81%,#d3d3d3 100%);background:-moz-linear-gradient(top,#ebebeb 0%,#ebebeb 80%,#ebebeb 81%,#d3d3d3 100%);}
.box .box2:nth-child(6) .box-item{ background:#63bb65; background:-webkit-linear-gradient(#63bb65 0%,#519953 100%);background:-moz-linear-gradient(top,#63bb65 0%,#519953 100%);}
.box .box-item .icon{width:100%; height:100%; border-radius:5px;}
.box .box-item i{display:inline-block; padding:10px; font-size:35px; color:#FFF; overflow:hidden;}
.box span{color:{$_W['styles']['fontnavcolor']};display:block; font-size:14px; width:90%; height:20px; line-height:20px; margin:5px 5%; text-align:center; overflow:hidden;}
.box ul li{background-color:#ebebeb;padding:0 10px;margin:1%;display: inline-block;height:45px;width:100%;}
.box ul li a{text-decoration: none;}
.box .title{color:#000;}
.box .createtime{color:#999;font-size:12px}
</style>
<div class="box clearfix">
{data func="site_navs" item="row"}
<div class="box2">
{$row['html']}
</div>
{php if($row['iteration'] > 5) break;}
{/data}
<!-- 该分类下文章-start -->
{if $_GPC['c'] == 'site' && $_GPC['a'] == 'site'}
<ul class="list list-unstyled">
{data func="site_article" cid=$cid return="true" assign="result"}
{loop $result['list'] $row}
<li>
<a href="{$row['linkurl']}">
<div class="title">{php echo cutstr($row['title'],20,1);}</div>
<div class="createtime">{php echo date('Y-m-d H:i:s', $row['createtime'])}</div>
</a>
</li>
{/loop}
</ul>
{/if}
<!-- 该分类下文章-start -->
</div>
{template 'common/footer'}