V2_CalendarYear
{% set calendar = module('V2_CalendarYear', null, { bid: null, cid: null, start: null }) %}
<div>
{{ include('/admin/module/setting.twig', { moduleInfo: calendar.moduleInfo }) }}
<div>
{% if calendar.date %}
<div>
<h3 class="acms-text-center">{{ calendar.date.year }}年</h3>
<ul class="acms-text-center acms-list-inline">
<li><a href="{{ calendar.date.prevUrl }}calendar.html" class="acms-btn-flat" title="前年へ">«</a></li>
<li>{{ calendar.date.year }}</li>
<li><a href="{{ calendar.date.nextUrl }}calendar.html" class="acms-btn-flat" title="来年へ">»</a></li>
</ul>
</div>
{% endif %}
{% for month in calendar.year %}
{% if loop.index0 % 3 == 0 %}
<div>
{% endif %}
<h4>{{ month.label }}月</h4>
<table class="acms-table acms-table-bordered">
<thead>
<tr class="acms-text-center">
{% for week in calendar.weekLabels %}
<td >{{ week.label }}</td>
{% endfor %}
</tr>
</thead>
<tbody>
{% for week in month.weeks %}
<tr class="acms-text-center">
{% for day in week %}
<td>
{% if day.entries %}
<a href="{{ day.url }}">{{ day.day }}</a>
{% else %}
{{ day.day }}
{% endif %}
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
{% if loop.index0 % 3 == 2 or loop.last %}
</div>
{% endif %}
{% endfor %}
</div>
</div>