V2_Entry_Body
{% set entryBody = module('V2_Entry_Body', null, {
bid: null,
cid: null,
eid: null,
uid: null,
page: PAGE,
limit: null,
keyword: null,
tag: [],
field: null,
order: null,
start: '1000-01-01 00:00:00',
end: '9999-12-31 23:59:59'
}) %}
<!-- 編集画面 -->
{{ include('/admin/entry/edit.twig', { body: entryBody }) }}
<!-- エントリー表示 -->
{% if entryBody.pageType in ['entry', 'index'] %}
<div>
{{ include('/admin/module/setting.twig', { moduleInfo: entryBody.moduleInfo }) }}
{% if entryBody.items is empty %}
<section class="entry">
<h2 class="entry-title">
Not Found
</h2>
<p>
お探しの記事は見つかりませんでした。
</p>
</section>
{% endif %}
{% for entry in entryBody.items %}
{% if entry.editorialInfo.revisionBtn %}
<div class="acms-form-group">
{{ include('/admin/entry/revision-info.html') }}
</div>
{% endif %}
{% set className = VIEW != 'index' ? 'entry' : 'entry-index' %}
<article class="{{ className }}">
<header class="entry-header">
<!-- タイトル -->
<h2 class="entry-title">
<a href="{{ entry.url }}">{{ entry.title }}</a>
</h2>
<p class="entry-date">
<!-- 日付 -->
<time datetime="{{ entry.datetime|date('Y-m-d') }}">
{{ entry.datetime|date('Y年m月d日') }}({{ entry.datetime|date('l')|weekEN2JP }})
</time>
<!-- 新着ラベル -->
{% if entry.isNew %}
<span class="entry-new">NEW</span>
{% endif %}
</p>
<ul class="entry-labels">
<!-- カテゴリ -->
{% for category in entry.category.items %}
<li><a href="{{ category.url }}" class="entry-category-label">{{ category.name }}</a></li>
{% endfor %}
<!-- タグ -->
{% if touch('Touch_NotEntry') and entry.tags %}
{% for tag in entry.tags %}
<li><a href="{{ tag.url }}" class="entry-tag-label">#{{ tag.name }}</a></li>
{% endfor %}
{% endif %}
</ul>
</header>
<div>
<!-- カスタムフィールドの読み込み -->
{% if entry.fields is iterable %}
{{ include('/include/entry/field.twig', entry.fields) }}
{% endif %}
<!-- 本文 -->
{% if entry.body %}
<div class="acms-entry">
<div>
{{ entry.body|safe_html }}
</div>
</div>
{% endif %}
<!-- 続きを読む -->
{% if entry.hasMoreUnits %}
<a href="{{ entry.url }}" class="entry-continue-btn">続きを読む</a>
{% endif %}
<!-- カスタムフィールドの読み込み -->
{% if entry.fields is iterable %}
{{ include('/include/entry/field_foot.twig', entry.fields) }}
{% endif %}
</div>
<!-- 動的フォーム -->
{% if entry.isFormVisible %}
{{ include('/include/form/unit.html') }}
{% endif %}
<!-- 編集ボタン -->
<div class="acms-box-medium">
{{ include('admin/entry/action.twig', { entry }) }}
</div>
{% if touch('Touch_Entry') %}
<footer class="entry-footer">
<div class="entry-info">
{% if entry.datetime < entry.updatedDatetime %}
<p class="entry-udate-info">
更新 {{ entry.updatedDatetime|date('Y/m/d H:i') }}
</p>
{% endif %}
</div>
</footer>
{% endif %}
</article>
{% endfor %}
<!-- ページネーション -->
{{
include('/include/pagination.twig', {
pager: entryBody.pager,
pagination: entryBody.pagination ?? entryBody.microPagination,
serialNavi: entryBody.serialNavi
})
}}
</div>
{% endif %}