home.html
2.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
{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'])}#DBDBDB{else}{$_W['styles']['indexbgcolor']}{/if};
{$_W['styles']['indexbgextra']}
}
a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
{$_W['styles']['css']}
.box{width:96%; overflow:hidden; margin:1.1% 2%; border-radius:0.2em; background-color:#fff; border-bottom:#bcbcbc solid 1px;}
.box .box2{float:left; display:block; height:9.6em; text-align:center; width:33.33%; border-right:#d1d1d1 solid 1px;border-bottom:#d1d1d1 solid 1px;}
.box .box-item{display:block; text-align:center; text-decoration:none; height:5.5em; line-height:5.5em; width:5.5em; border-radius:5.5em; margin:12% auto; background-color:#eee; color:#ffffff;}
.box .box-item i{display:inline-block; width:100%; line-height:77px; font-size:35px; color:#C46336; overflow:hidden;}
.box .box-item .icon{display:inline-block; width:100%; height:100%; border-radius:100%; }
.box .box2 span{color:{$_W['styles']['fontnavcolor']};display:inline-block; font-size:14px; width:90%; height:20px; line-height:20px; text-align:center; margin:0 5%; overflow:hidden;}
.box ul li{background-color:#eee;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">
{loop $navs $nav}
<div class="box2">
<a href="{$nav['url']}" class="box-item">
{if !empty($nav['icon'])}
<i style="background:url({$_W['attachurl']}{$nav['icon']}) no-repeat; background-size:cover;" class="icon"></i>
{else}
<i class="fa {$nav['css']['icon']['icon']} icon" style="{$nav['css']['icon']['style']}"></i>
{/if}
</a>
<span style="{$nav['css']['name']}" title="{$nav['name']}">{$nav['name']}</span>
</div>
{/loop}
<!-- 该分类下文章-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'}