{layout name="layout"/} {php} use app\model\Category; use app\model\Article; use app\model\Block; $childrenMenu = Category::getChildrenByParentId($topCategoryId); $childrenCate = Category::getChildrenByParentId(Category::CATEGORY_NEWS); $topNews = Article::getLastTopList($category["id"],1,[],["top"=>"desc"]); if (!$topNews->isEmpty()) { $topNews = empty($topNews)?[]: ($topNews[0] ?? []); $topNewsYm = date('Y.m', $topNews['create_time']); $topNewsDay = date('d', $topNews['create_time']); } {/php} {include file="public/about_second" /} {include file="public/news_second" /} {if !$topNews->isEmpty()}
{$topNewsDay} {$topNewsYm}.{$topNewsDay}

## {$topNews['title']}

{$topNews['summary']}
查看详情
{/if}
{foreach $items as $item} {if $item['id'] != ($topNews['id'] ?? 0)}
{$item.create_date_y_m}.{$item.create_date_d}

## {$item.title}

{$item.summary}
查看详情
{$item.create_date_d} {$item.create_date_y_m}.{$item.create_date_d}
{/if} {/foreach}
没有更多了
点击加载更多