home.html 3.6 KB
{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{width:96%;  margin:1.1% 2%;}
	.box .box2{float:left; display:block; height:9.6em; text-align:center; width:33.33%;}
	.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:#ffffff; overflow:hidden;}
	.box .box-item .icon{display:inline-block; height:100%; margin:0 auto; border-radius:100%; }
	.box .box2 span{color:{if empty($_W['styles']['fontnavcolor'])}#333{else}{$_W['styles']['fontnavcolor']}{/if}; display:block; font-size:14px; width:100%; height:20px; line-height:20px; text-align:center; overflow:hidden;}
	.bar{height:40px; background-color:#2c6288; line-height:40px;}
	.bar a{float:right; display:inline-block; width:50px; text-align:center; text-decoration:none;}
	.bar i{font-size:26px; color:#ACC0CB; vertical-align:middle;}.bar i:hover{color:#ffffff;}
	.img-box{margin:4.3% 0 1.5% 3.39%; overflow:hidden;}
	.img-box>a{display:block; float:left; text-decoration:none; text-align:center; width:30.5%; margin:0 1.72% 3.3% 0; overflow:hidden; padding-bottom:5px; background-color:#ffffff; border:#e0e0e0 solid 1px; border-radius:0.3em; box-shadow:1px 1px 1px rgba(0,0,0,0.06);}
	.img-box>a .icon{vertical-align:middle; -webkit-border-top-left-radius:0.3em; -webkit-border-top-right-radius:0.3em;}
	.img-box>a i{display:block; width:100%; height:83px; line-height:83px;color:#737373; margin-bottom:5px; vertical-align:middle; -webkit-border-top-left-radius:0.3em; -webkit-border-top-right-radius:0.3em;}
	.img-box>a span{color:{if empty($_W['styles']['fontnavcolor'])}#737373{else}{$_W['styles']['fontnavcolor']}{/if};display:block; width:100%; padding:0 5%; height:20px; font-weight:bold; overflow:hidden;}
</style>
<div class="box clearfix">
	{php $num = 0;}
	{data func="site_navs" section="1" item="nav"}
	{php if($num == 0) $bg = '#2f4773';}
	{php if($num == 1) $bg = '#1684b4';}
	{php if($num == 2) $bg = '#a6392c';}
	<div class="box2 clearfix">
		<a href="{$nav['url']}" class="box-item" style="background:{$bg};">
			{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>
	{php $num++; if($num > 2) $num = 0;}
	{/data}
</div>
<div class="bar">
	{data func="site_navs" section="3" item="row"}
	<a href="{$row['url']}" class="box-item">
		{if !empty($row['icon'])}
		<img src="{$_W['attachurl']}{$row['icon']}" style="width:26px; height:25px;" >
		{else}
		<i class="fa {$row['css']['icon']['icon']} img-circle" style="{$row['css']['icon']['style']}"></i>
		{/if}
	</a>
	{php if($row['iteration'] > 0) break;}
	{/data}
</div>
		<!--图片展示-->
<div class="img-box clearfix">
	{data func="site_navs" section="2" item="row"}
	{$row['html']}
	{/data}
</div>
{template 'common/footer'}