{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()}
{/if}