You are here

opigno-calendar-event.html.twig in Opigno calendar event 3.x

opigno-calendar-event.html.twig Default theme implementation to present Opigno calendar event.

This template is used when viewing Opigno calendar events.

Available variables:

  • content
  • attributes: HTML attributes for the container element.

File

templates/opigno-calendar-event.html.twig
View source
  1. {#
  2. /**
  3. * @file opigno-calendar-event.html.twig
  4. * Default theme implementation to present Opigno calendar event.
  5. *
  6. * This template is used when viewing Opigno calendar events.
  7. *
  8. *
  9. * Available variables:
  10. * - content
  11. * - attributes: HTML attributes for the container element.
  12. *
  13. * @see template_preprocess_opigno_calendar_event()
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. <div{{ attributes.addClass('opigno_calendar_event') }}>
  19. <div class="heading">
  20. <div class="type">
  21. {{ event_type }}
  22. </div>
  23. {% if mobile_link %}
  24. <div class="join-link">
  25. {{ mobile_link }}
  26. </div>
  27. {% endif %}
  28. {% if edit_link %}
  29. {{ edit_link }}
  30. {% endif %}
  31. </div>
  32. <div class="content">
  33. <div class="event-info">
  34. <div class="title">
  35. {{ content.title|field_value }}
  36. </div>
  37. <div class="daterange">
  38. {{ content.date_daterange|field_value }}
  39. </div>
  40. {% if event_link %}
  41. <div class="event-link">
  42. {{ event_link }}
  43. </div>
  44. {% endif %}
  45. </div>
  46. <div class="description">
  47. {{ content.description|field_value }}
  48. </div>
  49. {% if training_link %}
  50. <div class="training-link">
  51. {{ training_link }}
  52. </div>
  53. {% endif %}
  54. </div>
  55. </div>