You are here

calendar-month-col.html.twig in Opigno calendar 8

Same filename and directory in other branches
  1. 3.x 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. <td
  13. id="{{ item.id }}"
  14. date-date="{{ item.date }}"
  15. data-day-of-month="{{ item.day_of_month }}"
  16. headers="{{ item.header_id }}"
  17. class="{{ item.class }}"
  18. colspan="{{ item.colspan }}"
  19. rowspan="{{ item.rowspan }}">
  20. <div class="inner">
  21. {{ item.entry }}
  22. </div>
  23. </td>
  24. {% if item.class == 'single-day no-entry today' %}
  25. <td
  26. id="{{ item.id ~ '_empty'}}"
  27. date-date="{{ item.date }}"
  28. data-day-of-month="{{ item.day_of_month }}"
  29. headers="{{ item.header_id }}"
  30. class="{{ item.class }}"
  31. colspan="{{ item.colspan }}"
  32. rowspan="{{ item.rowspan }}">
  33. <div class="inner">
  34. <div class="date-box"><span class="date-day">{{ item.date|date("d") }}</span>
  35. <span class="date-month">{{ item.date|date("M")|t }}</span>
  36. <span class="date-year">{{ item.date|date("Y") }}</span>
  37. </div>
  38. <h4 class="title">{{ "No Event"|t }}</h4>
  39. </div>
  40. </td>
  41. {% endif %}