app/template/default/Block/businessday_calendar.twig line 1

Open in your IDE?
  1. {#
  2. * Plugin Name : DeliveryDate4
  3. *
  4. * Copyright (C) BraTech Co., Ltd. All Rights Reserved.
  5. * http://www.bratech.co.jp/
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. #}
  10. <!--営業日カレンダー-->
  11. <style>
  12. /*
  13. #businessday_calendar {
  14.     width: 100%;
  15.     max-width: 1150px;
  16.     margin: 0 auto;
  17.     padding: 60px 0;
  18. }
  19. */
  20. #businessday_calendar {
  21.     width: 100%;
  22.     max-width: 1150px;
  23.     margin: 0 auto;
  24.     padding: 60px 0 10px 0;
  25. }
  26. #businessday_calendar .calendar_title {
  27.     text-align: center;
  28.     font-size: 24px;
  29.     background: #f8f8f8;
  30.     color: #525263;
  31.     line-height: 3.3;
  32.     margin-bottom: 20px;
  33.     border-bottom: 1px dotted #ccc;
  34. }
  35. #businessday_calendar .note {
  36.     margin-bottom: 30px;
  37. }
  38. #businessday_calendar .note span {
  39.   display: inline-block;
  40.   width: 2.5em;
  41.   background: #ee6666;
  42.   height: 1em;
  43.   margin-right: 5px;
  44. }
  45. #businessday_calendar .note span + span {
  46.   background: #fff;
  47.   border: 2px solid #000;
  48. }
  49. /*
  50. #businessday_calendar table {
  51.     width: 100%;
  52.     margin-bottom: 20px;
  53.     padding: 0;
  54.     empty-cells: show;
  55. }
  56. */
  57. #businessday_calendar table {
  58.     width: 45%;
  59.     margin-bottom: 20px;
  60.     padding: 0;
  61.     empty-cells: show;
  62. }
  63. #businessday_calendar table caption {
  64.   margin-bottom: 10px;
  65.   caption-side: top;
  66.   font-weight: 700;
  67.   font-size: 20px;
  68. }
  69. /*
  70. #businessday_calendar th {
  71.     text-align: center;
  72.     background: #f8f8f8;
  73.     border-top: 1px solid #ccc;
  74.     border-bottom: 1px solid #ccc;
  75. }
  76. */
  77. #businessday_calendar th {
  78.     padding: 10px 0;
  79.     text-align: center;
  80.     background: #f8f8f8;
  81.     border-top: 1px solid #ccc;
  82.     border-bottom: 1px solid #ccc;
  83. }
  84. #businessday_calendar th#saturday {
  85.     color: #3366cc;
  86. }
  87. #businessday_calendar th#sunday {
  88.     color: #ff3300;
  89. }
  90. /*
  91. #businessday_calendar td {
  92.     text-align: center;
  93.     border-bottom: 1px dotted #ccc;
  94.     background: #fff;
  95.     color: #333;
  96. }
  97. */
  98. #businessday_calendar td {
  99.     padding: 10px 0;
  100.     text-align: center;
  101.     border-bottom: 1px dotted #ccc;
  102.     background: #fff;
  103.     color: #333;
  104. }
  105. #businessday_calendar .today {
  106.     background: #fff;
  107.     color: #000;
  108.     font-weight: bold;
  109.     border: 2px solid #000;
  110. }
  111. #businessday_calendar .holiday {
  112.     background: #ee6666;
  113.     color: #ffffff;
  114. }
  115. </style>
  116. {#▼RZ 2023.07.11 ADD ブロック幅変更▼#}
  117. <div class="container fadeinu">
  118. {#▲RZ 2023.07.11 ADD ブロック幅変更▲#}
  119. <div id="businessday_calendar">
  120. {#▼RZ 2023.07.11 EDIT タイトル記載変更▼#}
  121. {#
  122.     <div class="calendar_title">営業日カレンダー</div>
  123. #}
  124.     <div class="ec-secHeading">
  125.         <span class="ec-secHeading__en">{{ 'CALENDAR'|trans }}</span><br>
  126.         <span class="ec-secHeading__ja"><h2>{{ '営業日カレンダー'|trans }}</h2></span>
  127.     </div>
  128. {#▲RZ 2023.07.11 EDIT タイトル記載変更▲#}
  129.     <div class="note"><span></span>:店休日 <span></span>:本日</div>
  130.     {% set year = 'now'|date('Y') %}
  131. {#▼RZ 2023.07.11 ADD カレンダー横並び▼#}
  132. <div class="list_around">
  133. {#▲RZ 2023.07.11 ADD カレンダー横並び▲#}
  134.     {% for month, monthitem in Date %}
  135.         {% if loop.index0 > 0 and month == '1' %}
  136.             {% set year = year+1 %}
  137.         {% endif %}
  138.         <table>
  139.             <caption>{{ year }}年{{ month }}月</caption>
  140.             <thead><tr><th id="sunday">日</th><th>月</th><th>火</th><th>水</th><th>木</th><th>金</th><th id="saturday">土</th></tr></thead>
  141.             <tbody>
  142.                 {% for dayitem in monthitem %}
  143.                     {% set day = dayitem.day %}
  144.                     {% if day|date('j') == '1' %}
  145.                         <tr>
  146.                         {% if day|date('w') != '0' %}
  147.                             {% for i in 1..day|date('w') %}
  148.                                 <td></td>
  149.                             {% endfor %}
  150.                         {% endif %}
  151.                     {% elseif day|date('w') == 0 %}
  152.                         <tr>
  153.                     {% endif %}
  154.                     {% set class = '' %}
  155.                     {% if day|date('y/m/d') == 'now'|date('y/m/d') %}
  156.                         {% set class = class ~ 'today' %}
  157.                     {% endif %}
  158.                     {% if dayitem.is_holiday %}
  159.                         {% set class = class ~ ' holiday' %}
  160.                     {% endif %}
  161.                         <td {% if class != '' %} class="{{ class }}" {% endif %}>{{ day|date('j') }}</td>
  162.                     {% if day|date('w') == 6 or loop.last %}
  163.                         </tr>
  164.                     {% endif %}
  165.                 {% endfor %}
  166.             </tbody>
  167.         </table>
  168.     {% endfor %}
  169. {#▼RZ 2023.07.11 ADD カレンダー横並び▼#}
  170. </div>
  171. {#▲RZ 2023.07.11 ADD カレンダー横並び▲#}
  172. </div>
  173. {#▼RZ 2023.07.11 ADD ブロック幅変更▼#}
  174. <p>
  175. 営業時間 平日10:00~17:00<br>
  176. 定休日 土・日・祝<br>
  177. その他休業日 ゴールデンウイーク・盆・年末年始・臨時休業日あり
  178. </p>
  179. 営業時間外・休業日は、お問い合わせの対応および発送業務を行っておりません。ご了承くださいませ。<br>
  180. ネットからのご注文はいつでも可能です。
  181. </div>
  182. {#▲RZ 2023.07.11 ADD ブロック幅変更▲#}