|
|
@ -855,20 +855,17 @@ |
|
|
<p class="section__desc"> |
|
|
<p class="section__desc"> |
|
|
{$sub_cates[4]['desc']} |
|
|
{$sub_cates[4]['desc']} |
|
|
</p> |
|
|
</p> |
|
|
{php}$arr = explode(',',$sub_cates[4]['description']){/php} |
|
|
|
|
|
|
|
|
{php} |
|
|
|
|
|
$arr = explode(',',$sub_cates[4]['description']); |
|
|
|
|
|
$stats = array_chunk($arr, 2); // 每2个一组 |
|
|
|
|
|
{/php} |
|
|
<ul class="section-4__stats"> |
|
|
<ul class="section-4__stats"> |
|
|
|
|
|
{foreach $stats as $item} |
|
|
<li class="section-4__stat"> |
|
|
<li class="section-4__stat"> |
|
|
<span class="section-4__stat-num"><span class="counter">{$arr[0]}</span></span> |
|
|
|
|
|
<span class="section-4__stat-label">{$arr[1]}</span> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="section-4__stat"> |
|
|
|
|
|
<span class="section-4__stat-num"><span class="counter">{$arr[2]}</span></span> |
|
|
|
|
|
<span class="section-4__stat-label">{$arr[3]}</span> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="section-4__stat"> |
|
|
|
|
|
<span class="section-4__stat-num"><span class="counter">{$arr[4]}</span></span> |
|
|
|
|
|
<span class="section-4__stat-label">{$arr[5]}</span> |
|
|
|
|
|
|
|
|
<span class="section-4__stat-num"><span class="counter">{$item[0]}</span></span> |
|
|
|
|
|
<span class="section-4__stat-label">{$item[1]}</span> |
|
|
</li> |
|
|
</li> |
|
|
|
|
|
{/foreach} |
|
|
</ul> |
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -891,7 +888,7 @@ |
|
|
<img src="{$news[0]['thumbnail_url'] ?? ''}" alt="" /> |
|
|
<img src="{$news[0]['thumbnail_url'] ?? ''}" alt="" /> |
|
|
</a> |
|
|
</a> |
|
|
<h3 class="section-5__featured-title">{$news[0]['title'] ?? ''}</h3> |
|
|
<h3 class="section-5__featured-title">{$news[0]['title'] ?? ''}</h3> |
|
|
<time class="section-5__date" datetime="{$news[0]['publish_time'] ?? ''}">{$news[0]['publish_time'] ?? ''}</time> |
|
|
|
|
|
|
|
|
<time class="section-5__date" datetime="{$news[0]['publish_time'] ?? ''}">{:date('Y-m-d',strtotime($news[0]['publish_time'])) ?? ''}</time> |
|
|
</article> |
|
|
</article> |
|
|
{/if} |
|
|
{/if} |
|
|
<div class="section-5__line" aria-hidden="true"></div> |
|
|
<div class="section-5__line" aria-hidden="true"></div> |
|
|
@ -901,7 +898,7 @@ |
|
|
<a class="section-5__item" href="{:hcUrl('detail/index',['id'=>$news[1]['id'],'cid'=>$news[1]['category_id']])}"> |
|
|
<a class="section-5__item" href="{:hcUrl('detail/index',['id'=>$news[1]['id'],'cid'=>$news[1]['category_id']])}"> |
|
|
<div class="section-5__item-body"> |
|
|
<div class="section-5__item-body"> |
|
|
<h3 class="section-5__item-title">{$news[1]['title'] ?? ''}</h3> |
|
|
<h3 class="section-5__item-title">{$news[1]['title'] ?? ''}</h3> |
|
|
<time class="section-5__date" datetime="{$news[1]['publish_time'] ?? ''}">{$news[1]['publish_time'] ?? ''}</time> |
|
|
|
|
|
|
|
|
<time class="section-5__date" datetime="{$news[1]['publish_time'] ?? ''}">{:date('Y-m-d',strtotime($news[1]['publish_time'])) ?? ''}</time> |
|
|
</div> |
|
|
</div> |
|
|
<span class="section-5__item-media"> |
|
|
<span class="section-5__item-media"> |
|
|
<img src="{$news[1]['thumbnail_url'] ?? ''}" alt="" /> |
|
|
<img src="{$news[1]['thumbnail_url'] ?? ''}" alt="" /> |
|
|
@ -914,7 +911,7 @@ |
|
|
<a class="section-5__item" href="{:hcUrl('detail/index',['id'=>$news[2]['id'],'cid'=>$news[2]['category_id']])}"> |
|
|
<a class="section-5__item" href="{:hcUrl('detail/index',['id'=>$news[2]['id'],'cid'=>$news[2]['category_id']])}"> |
|
|
<div class="section-5__item-body"> |
|
|
<div class="section-5__item-body"> |
|
|
<h3 class="section-5__item-title">{$news[2]['title'] ?? ''}</h3> |
|
|
<h3 class="section-5__item-title">{$news[2]['title'] ?? ''}</h3> |
|
|
<time class="section-5__date" datetime="{$news[2]['publish_time'] ?? ''}">{$news[2]['publish_time'] ?? ''}</time> |
|
|
|
|
|
|
|
|
<time class="section-5__date" datetime="{$news[2]['publish_time'] ?? ''}">{:date('Y-m-d',strtotime($news[2]['publish_time'])) ?? ''}</time> |
|
|
</div> |
|
|
</div> |
|
|
<span class="section-5__item-media"> |
|
|
<span class="section-5__item-media"> |
|
|
<img src="{$news[2]['thumbnail_url'] ?? ''}" alt="" /> |
|
|
<img src="{$news[2]['thumbnail_url'] ?? ''}" alt="" /> |
|
|
@ -927,7 +924,7 @@ |
|
|
<a class="section-5__item" href="{:hcUrl('detail/index',['id'=>$news[3]['id'],'cid'=>$news[3]['category_id']])}"> |
|
|
<a class="section-5__item" href="{:hcUrl('detail/index',['id'=>$news[3]['id'],'cid'=>$news[3]['category_id']])}"> |
|
|
<div class="section-5__item-body"> |
|
|
<div class="section-5__item-body"> |
|
|
<h3 class="section-5__item-title">{$news[3]['title'] ?? ''}</h3> |
|
|
<h3 class="section-5__item-title">{$news[3]['title'] ?? ''}</h3> |
|
|
<time class="section-5__date" datetime="{$news[3]['publish_time'] ?? ''}">{$news[3]['publish_time'] ?? ''}</time> |
|
|
|
|
|
|
|
|
<time class="section-5__date" datetime="{$news[3]['publish_time'] ?? ''}">{:date('Y-m-d',strtotime($news[3]['publish_time'])) ?? ''}</time> |
|
|
</div> |
|
|
</div> |
|
|
<span class="section-5__item-media"> |
|
|
<span class="section-5__item-media"> |
|
|
<img src="{$news[3]['thumbnail_url'] ?? ''}" alt="" /> |
|
|
<img src="{$news[3]['thumbnail_url'] ?? ''}" alt="" /> |
|
|
|