You are here

calendar-month-col.html.twig in Opigno calendar 3.x

Same filename and directory in other branches
  1. 8 templates/calendar-month-col.html.twig

Template to display a column.

Available variables:

  • item: The item to render within a td element.

File

templates/calendar-month-col.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template to display a column.
  5. *
  6. * Available variables:
  7. * - item: The item to render within a td element.
  8. *
  9. * @ingroup themeable
  10. */
  11. #}
  12. {% if item.class starts with 'single-day no-entry' %}
  13. <td
  14. id="{{ item.id ~ '_empty'}}"
  15. date-date="{{ item.date }}"
  16. data-day-of-month="{{ item.day_of_month }}"
  17. headers="{{ item.header_id }}"
  18. class="{{ item.class }}"
  19. colspan="{{ item.colspan }}"
  20. rowspan="{{ item.rowspan }}">
  21. <div class="inner">
  22. <div class="date-box"><span class="date-day">{{ item.date|date("d") }}</span>
  23. <span class="date-month">{{ item.date|date("F")|t }}</span>
  24. <span class="date-year">{{ item.date|date("Y") }}</span>
  25. </div>
  26. <h4 class="title">{{ "No Event"|t }}</h4>
  27. </div>
  28. </td>
  29. {% else %}
  30. <td
  31. id="{{ item.id }}"
  32. date-date="{{ item.date }}"
  33. data-day-of-month="{{ item.day_of_month }}"
  34. headers="{{ item.header_id }}"
  35. class="{{ item.class }}"
  36. colspan="{{ item.colspan }}"
  37. rowspan="{{ item.rowspan }}">
  38. <div class="inner">
  39. {{ item.entry }}
  40. </div>
  41. </td>
  42. {% endif %}