{extend name="$base" /} {block name="resources"} {/block} {block name="main"} {php} //文章分类列表 $class_list = api("System.Article.articleClassList"); $class_list = $class_list['data']['data']; //当前分类下的文章 $result = api("System.Article.articleList", ["page_index"=>$page_index, "condition"=>$condition]); $result = $result['data']; $total_count = $result['total_count']; $result = $result['data']; {/php}

### {:lang('article_center')}

{foreach name="$class_list" id="class_parent"} {if condition="$class_parent['pid'] eq '0'"}
- {$class_parent.name}
  {foreach name="$class_list" id="child"} {if condition="$child['pid'] eq $class_parent['class_id']"}
  - {$child.name}
  {/if} {/foreach}
{/if} {/foreach}

{if !empty($result)}

{volist name="result" id="news"}
- {$news.title} {$news.create_time | getTimeStampTurnTime}
{/volist}

{else/}
{:lang('no_article')}
{/if}
{/block} {block name="script"}
{/block}