You are here

office-hours-status.html.twig in Office Hours 8

<div class="office-hours-status office-hours-status--{% if is_open %}open{% else %}closed{% endif %}">
  {% if is_open %}
      {{ open_text }}
  {% else %}
      {{ closed_text }}
  {% endif %}
</div>

File

templates/office-hours-status.html.twig
View source
  1. <div class="office-hours-status office-hours-status--{% if is_open %}open{% else %}closed{% endif %}">
  2. {% if is_open %}
  3. {{ open_text }}
  4. {% else %}
  5. {{ closed_text }}
  6. {% endif %}
  7. </div>