{layout name="layout"/} {php} use app\model\Article; use app\model\Category; $childrenMenu = Category::getChildrenByParentId(Category::CATEGORY_COMPANY); $items = Article::getList(Category::CATEGORY_COMPANY_EVENT, 1000); {/php} {include file="public/about_second" /}

{$blocks['company_event']['value']}

{$blocks['company_event']['title']} {$blocks['company_event_desc']['value']|raw}
向前
{foreach $items as $item}

{$item.title ?? ''}

{php} $list = nl2br($item['summary']); $list = explode('
', $list); {/php} {foreach $list as $val} {php} $strExplode = explode(' ', $val, 2); $month = count($strExplode) > 1 ? $strExplode[0] : ''; $content = count($strExplode) > 1 ? $strExplode[1] : $val; {/php}

{$month}{$content}

{/foreach}
{/foreach}
向后
{foreach $items as $item} {if $isMobile} {$item.title ?? ''} {else /} {$item.title ?? ''} {/if} {/foreach}