app/template/default/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. <div class="container fadeinu block_box">
  10.     <div id="calendar_block">
  11.         <div class="ec-secHeading">
  12.             <span class="ec-secHeading__en">{{ 'CALENDAR'|trans }}</span><br>
  13.             <span class="ec-secHeading__ja"><h2>{{ '営業日カレンダー'|trans }}</h2></span>
  14.         </div>
  15.         <div class="note"><span></span>:店休日 <span></span>:本日</div>
  16.         <div id="calendar_contents" class="list_between">
  17.             <div>
  18.                 <div class="calendar__title">{{ ThisMonthTitle }}</div>
  19.                 <table id="this-month-table" class="calendar__month">
  20.                     <tr>
  21.                         <th class="ec-calendar__sun">{{ '日'|trans }}</th>
  22.                         <th class="ec-calendar__mon">{{ '月'|trans }}</th>
  23.                         <th class="ec-calendar__tue">{{ '火'|trans }}</th>
  24.                         <th class="ec-calendar__wed">{{ '水'|trans }}</th>
  25.                         <th class="ec-calendar__thu">{{ '木'|trans }}</th>
  26.                         <th class="ec-calendar__fri">{{ '金'|trans }}</th>
  27.                         <th class="ec-calendar__sat">{{ '土'|trans }}</th>
  28.                     </tr>
  29.                     <tr>
  30.                         {% for day in ThisMonthCalendar %}
  31.                             {% if day.today == 1 and day.holiday == 1 %}
  32.                                 <td id="today-and-holiday" class="calendar__today calendar__holiday">{{ day.day }}</td>
  33.                             {% elseif day.today == 1 and day.holiday == 0 %}
  34.                                 <td id="today" class="calendar__today">{{ day.day }}</td>
  35.                             {% elseif day.today == 0 and day.holiday == 1 %}
  36.                                 <td id="this-month-holiday-{{ day.day }}" class="calendar__holiday">{{ day.day }}</td>
  37.                             {% else %}
  38.                                 <td class="calendar__day">{{ day.day }}</td>
  39.                             {% endif %}
  40.                             {% if loop.index % 7 == 0 and loop.index != ThisMonthCalendar|length %}
  41.                                 </tr><tr>
  42.                             {% endif %}
  43.                         {% endfor %}
  44.                     </tr>
  45.                 </table>
  46.             </div>
  47.             <div>
  48.                 <div class="calendar__title">{{ NextMonthTitle }}</div>
  49.                 <table id="next-month-table" class="calendar__month">
  50.                     <tr>
  51.                         <th class="ec-calendar__sun">{{ '日'|trans }}</th>
  52.                         <th class="ec-calendar__mon">{{ '月'|trans }}</th>
  53.                         <th class="ec-calendar__tue">{{ '火'|trans }}</th>
  54.                         <th class="ec-calendar__wed">{{ '水'|trans }}</th>
  55.                         <th class="ec-calendar__thu">{{ '木'|trans }}</th>
  56.                         <th class="ec-calendar__fri">{{ '金'|trans }}</th>
  57.                         <th class="ec-calendar__sat">{{ '土'|trans }}</th>
  58.                     </tr>
  59.                     <tr>
  60.                         {% for day in NextMonthCalendar %}
  61.                             {% if day.holiday == 1 %}
  62.                                 <td id="next-month-holiday-{{ day.day }}" class="calendar__holiday">{{ day.day }}</td>
  63.                             {% else %}
  64.                                 <td class="calendar__day">{{ day.day }}</td>
  65.                             {% endif %}
  66.                             {% if loop.index % 7 == 0 and loop.index != NextMonthCalendar|length %}
  67.                                 </tr><tr>
  68.                             {% endif %}
  69.                         {% endfor %}
  70.                     </tr>
  71.                 </table>
  72.             </div>
  73.         </div>
  74.     </div>
  75.     <p>
  76.         営業時間 平日10:00~17:00<br>
  77.         定休日 土・日・祝<br>
  78.         その他休業日 ゴールデンウイーク・盆・年末年始・臨時休業日あり
  79.     </p>
  80.     営業時間外・休業日は、お問い合わせの対応および発送業務を行っておりません。ご了承くださいませ。<br>
  81.     ネットからのご注文はいつでも可能です。
  82. </div>