app/template/mizunasu/Block/calendar.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {#{% form_theme form 'Form/form_div_layout.twig' %}#}
  9. <br><br>
  10. <div class="ec-role">
  11.     <div>
  12.         <div class="ec-secHeading">
  13.             <span class="ec-secHeading__en">{{ 'CALENDAR'|trans }}</span>
  14.             <span class="ec-secHeading__line"></span>
  15.             <span class="ec-secHeading__ja">{{ 'カレンダー'|trans }}</span>
  16.         </div>
  17.         {{ '* 赤字は休業日です。'|trans }}<br>
  18.         <br>
  19.         <div class="ec-calendar">
  20.             <table id="this-month-table" class="ec-calendar__month">
  21.                 <tr>
  22.                     <th id="this-month-title" colspan="7" class="ec-calendar__title">{{ ThisMonthTitle }}</th>
  23.                 </tr>
  24.                 <tr>
  25.                     <th class="ec-calendar__sun">{{ '日'|trans }}</th>
  26.                     <th class="ec-calendar__mon">{{ '月'|trans }}</th>
  27.                     <th class="ec-calendar__tue">{{ '火'|trans }}</th>
  28.                     <th class="ec-calendar__wed">{{ '水'|trans }}</th>
  29.                     <th class="ec-calendar__thu">{{ '木'|trans }}</th>
  30.                     <th class="ec-calendar__fri">{{ '金'|trans }}</th>
  31.                     <th class="ec-calendar__sat">{{ '土'|trans }}</th>
  32.                 </tr>
  33.                 <tr>
  34.                     {% for day in ThisMonthCalendar %}
  35.                         {% if day.today == 1 and day.holiday == 1 %}
  36.                             <td id="today-and-holiday" class="ec-calendar__today ec-calendar__holiday">{{ day.day }}</td>
  37.                         {% elseif day.today == 1 and day.holiday == 0 %}
  38.                             <td id="today" class="ec-calendar__today">{{ day.day }}</td>
  39.                         {% elseif day.today == 0 and day.holiday == 1 %}
  40.                             <td id="this-month-holiday-{{ day.day }}" class="ec-calendar__holiday">{{ day.day }}</td>
  41.                         {# 土日は定休日表示にしています。不要な場合は削除して下さい。ここから #}
  42.                         {% elseif day.dayOfWeek == 'Sun' or day.dayOfWeek == 'Sat' %}
  43.                             <td id="this-month-holiday-{{ day.day }}" class="ec-calendar__holiday">{{ day.day }}</td>
  44.                         {# 土日は定休日表示にしています。不要な場合は削除して下さい。ここまで #}
  45.                         {% else %}
  46.                             <td class="ec-calendar__day">{{ day.day }}</td>
  47.                         {% endif %}
  48.                         {% if loop.index % 7 == 0 and loop.index != ThisMonthCalendar|length %}
  49.                             </tr><tr>
  50.                         {% endif %}
  51.                     {% endfor %}
  52.                 </tr>
  53.             </table>
  54.             <table id="next-month-table" class="ec-calendar__month">
  55.                 <tr>
  56.                     <th id="next-month-title" colspan="7" class="ec-calendar__title">{{ NextMonthTitle }}</th>
  57.                 </tr>
  58.                 <tr>
  59.                     <th class="ec-calendar__sun">{{ '日'|trans }}</th>
  60.                     <th class="ec-calendar__mon">{{ '月'|trans }}</th>
  61.                     <th class="ec-calendar__tue">{{ '火'|trans }}</th>
  62.                     <th class="ec-calendar__wed">{{ '水'|trans }}</th>
  63.                     <th class="ec-calendar__thu">{{ '木'|trans }}</th>
  64.                     <th class="ec-calendar__fri">{{ '金'|trans }}</th>
  65.                     <th class="ec-calendar__sat">{{ '土'|trans }}</th>
  66.                 </tr>
  67.                 <tr>
  68.                     {% for day in NextMonthCalendar %}
  69.                         {% if day.holiday == 1 %}
  70.                             <td id="next-month-holiday-{{ day.day }}" class="ec-calendar__holiday">{{ day.day }}</td>
  71.                         {# 土日は定休日表示にしています。不要な場合は削除して下さい。ここから #}
  72.                         {% elseif day.dayOfWeek == 'Sun' or day.dayOfWeek == 'Sat' %}
  73.                             <td id="next-month-holiday-{{ day.day }}" class="ec-calendar__holiday">{{ day.day }}</td>
  74.                         {# 土日は定休日表示にしています。不要な場合は削除して下さい。ここまで #}
  75.                         {% else %}
  76.                             <td class="ec-calendar__day">{{ day.day }}</td>
  77.                         {% endif %}
  78.                         {% if loop.index % 7 == 0 and loop.index != NextMonthCalendar|length %}
  79.                             </tr><tr>
  80.                         {% endif %}
  81.                     {% endfor %}
  82.                 </tr>
  83.             </table>
  84.         </div>
  85.     </div>
  86. </div>