{#
Copyright (C) SPREAD WORKS Inc. All Rights Reserved.
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% set post_list = TabaCMSPostList({type_data_key:options.type_data_key,overwrite_query:false,page_count:4}) %}
<ul class="c-info-list">
{% for post in post_list %}
<li class="c-info-list__item">
<time class="c-info-list__date font-en">{{ post.getPublicDate|date('Y.m.d') }}</time>
<div class="c-info-list__title">
{% if post.getContentDiv == constant('CONTENT_DIV_BODY',post) %}
<a href="{{ post.getURI }}">{{ post.getTitle }}</a>
{% elseif post.getContentDiv == constant('CONTENT_DIV_LINK',post) %}
<a href="{{ post.getLinkUrl }}" {% if post.getLinkTarget %}target="{{ post.getLinkTarget }}"{% endif %}>{{ post.getTitle }}</a>
{% elseif post.getContentDiv == constant('CONTENT_DIV_TITLE',post) %}
{{ post.getTitle }}
{% endif %}
</div>
</li>
{% endfor %}
</ul>
<div class="block-right">
<a href="{{ type.getListURI }}" class="c-link-01">
<span class="s-text">{{ type.getTypeName }}一覧を見る</span>
<i class="s-icon">
<svg>
<use xlink:href="{{ asset('assets/img/ico/ico_arrow_forward.svg#obj') }}"></use>
</svg>
</i>
</a>
</div>