69 lines
2.5 KiB
HTML
Executable File
69 lines
2.5 KiB
HTML
Executable File
{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" /}
|
|
<!-- 内容 -->
|
|
<div class="pull-section pull-content-bg content-bg-white wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0">
|
|
<div class="profile-title history-title history-title-wap w1360">
|
|
<p class="capitalize font-helvetica color-blue wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0">{$blocks['company_event']['value']}</p>
|
|
<strong class="wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0.2s">{$blocks['company_event']['title']}</strong>
|
|
<span class="color-blue pc-show wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0.4s">
|
|
{$blocks['company_event_desc']['value']|raw}
|
|
</span>
|
|
</div>
|
|
<div class="history flex w1360">
|
|
<div class="txt">
|
|
<div class="history-swiper-bg">
|
|
<!-- 向前 -->
|
|
<div class="swiper-button-prev">
|
|
<span class="bg-col-white flex"><img src="__STATIC__/web/images/icon/icon-arrow-prev.png" alt="向前"></span>
|
|
</div>
|
|
<div class="history-swiper swiper">
|
|
<div class="swiper-wrapper">
|
|
{foreach $items as $item}
|
|
<div class="swiper-slide flex">
|
|
<div class="history-time">
|
|
<p class="bg-col-blue color-white">{$item.title ?? ''}</p>
|
|
<span><em></em></span>
|
|
</div>
|
|
<div class="history-txt">
|
|
{php}
|
|
$list = nl2br($item['summary']);
|
|
$list = explode('<br />', $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}
|
|
<p><strong>{$month}</strong><span>{$content}</span></p>
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
<!-- 向后 -->
|
|
<div class="swiper-button-next">
|
|
<span class="bg-col-white flex"><img src="__STATIC__/web/images/icon/icon-arrow-next.png" alt="向后"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="img">
|
|
{foreach $items as $item}
|
|
{if $isMobile}
|
|
<span><img src="{$item.src_mobile ?? ''}" alt="{$item.title ?? ''}"></span>
|
|
{else /}
|
|
<span><img src="{$item.src ?? ''}" alt="{$item.title ?? ''}"></span>
|
|
{/if}
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
</div> |