custom/plugins/WbfkHolidayMessage/src/Resources/views/storefront/component/pre-header.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@WbfkThemeMMedientechnik/storefront/component/pre-header.html.twig' %}
  2. {% block wbfk_preheader %}
  3.     {{ parent() }}
  4.     {% set holidayInfo = holidayInformation() %}
  5.     {% if(holidayInfo) %}
  6.         <div style="background-color: {{ holidayInfo.backgroundColor }};">
  7.             <div class="container">
  8.                 <div class="row"
  9.                      style="font-weight: bold; padding: 5px 20px; justify-content: {{ holidayInfo.alignment }}; background-color: {{ holidayInfo.backgroundColor }}; color: {{ holidayInfo.fontColor }};">
  10.                     <span>{{ "plugin.holiday_message.message"|trans({'%startDate%': holidayInfo.startDate|date('d.m.Y'), '%endDate%': holidayInfo.endDate|date('d.m.Y')})|raw }}</span>
  11.                 </div>
  12.             </div>
  13.         </div>
  14.     {% endif %}
  15. {% endblock %}