{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} {else /} {/if} {/foreach}