app/template/flapshop/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.         {{ '※ 赤字は発送出来ない日です。'|trans }}<br>
  19.         {{ '※ ご注文は平日13時までにお支払の確認ができましたら当日発送します。
  20. 13時以降は翌営業日に発送となります'|trans }}<br>
  21.         <br>
  22.         <div class="ec-calendar">
  23.             <table id="this-month-table" class="ec-calendar__month">
  24.                 <tr>
  25.                     <th id="this-month-title" colspan="7" class="ec-calendar__title">{{ ThisMonthTitle }}</th>
  26.                 </tr>
  27.                 <tr>
  28.                     <th class="ec-calendar__sun">{{ '日'|trans }}</th>
  29.                     <th class="ec-calendar__mon">{{ '月'|trans }}</th>
  30.                     <th class="ec-calendar__tue">{{ '火'|trans }}</th>
  31.                     <th class="ec-calendar__wed">{{ '水'|trans }}</th>
  32.                     <th class="ec-calendar__thu">{{ '木'|trans }}</th>
  33.                     <th class="ec-calendar__fri">{{ '金'|trans }}</th>
  34.                     <th class="ec-calendar__sat">{{ '土'|trans }}</th>
  35.                 </tr>
  36.                 <tr>
  37.                     {% for day in ThisMonthCalendar %}
  38.                         {% if day.today == 1 and day.holiday == 1 %}
  39.                             <td id="today-and-holiday" class="ec-calendar__today ec-calendar__holiday">{{ day.day }}</td>
  40.                         {% elseif day.today == 1 and day.holiday == 0 %}
  41.                             <td id="today" class="ec-calendar__today">{{ day.day }}</td>
  42.                         {% elseif day.today == 0 and day.holiday == 1 %}
  43.                             <td id="this-month-holiday-{{ day.day }}" class="ec-calendar__holiday">{{ day.day }}</td>
  44.                         {# 土日は定休日表示にしています。不要な場合は削除して下さい。ここから #}
  45.                         {% elseif day.dayOfWeek == 'Sun' or day.dayOfWeek == 'Sat' %}
  46.                             <td id="this-month-holiday-{{ day.day }}" class="ec-calendar__holiday">{{ day.day }}</td>
  47.                         {# 土日は定休日表示にしています。不要な場合は削除して下さい。ここまで #}
  48.                         {% else %}
  49.                             <td class="ec-calendar__day">{{ day.day }}</td>
  50.                         {% endif %}
  51.                         {% if loop.index % 7 == 0 and loop.index != ThisMonthCalendar|length %}
  52.                             </tr><tr>
  53.                         {% endif %}
  54.                     {% endfor %}
  55.                 </tr>
  56.             </table>
  57.             <table id="next-month-table" class="ec-calendar__month">
  58.                 <tr>
  59.                     <th id="next-month-title" colspan="7" class="ec-calendar__title">{{ NextMonthTitle }}</th>
  60.                 </tr>
  61.                 <tr>
  62.                     <th class="ec-calendar__sun">{{ '日'|trans }}</th>
  63.                     <th class="ec-calendar__mon">{{ '月'|trans }}</th>
  64.                     <th class="ec-calendar__tue">{{ '火'|trans }}</th>
  65.                     <th class="ec-calendar__wed">{{ '水'|trans }}</th>
  66.                     <th class="ec-calendar__thu">{{ '木'|trans }}</th>
  67.                     <th class="ec-calendar__fri">{{ '金'|trans }}</th>
  68.                     <th class="ec-calendar__sat">{{ '土'|trans }}</th>
  69.                 </tr>
  70.                 <tr>
  71.                     {% for day in NextMonthCalendar %}
  72.                         {% if day.holiday == 1 %}
  73.                             <td id="next-month-holiday-{{ day.day }}" class="ec-calendar__holiday">{{ day.day }}</td>
  74.                         {# 土日は定休日表示にしています。不要な場合は削除して下さい。ここから #}
  75.                         {% elseif day.dayOfWeek == 'Sun' or day.dayOfWeek == 'Sat' %}
  76.                             <td id="next-month-holiday-{{ day.day }}" class="ec-calendar__holiday">{{ day.day }}</td>
  77.                         {# 土日は定休日表示にしています。不要な場合は削除して下さい。ここまで #}
  78.                         {% else %}
  79.                             <td class="ec-calendar__day">{{ day.day }}</td>
  80.                         {% endif %}
  81.                         {% if loop.index % 7 == 0 and loop.index != NextMonthCalendar|length %}
  82.                             </tr><tr>
  83.                         {% endif %}
  84.                     {% endfor %}
  85.                 </tr>
  86.             </table>
  87.         </div>
  88.     </div>
  89. </div>