You are here

calendar-year.html.twig in Calendar 8

Same filename and directory in other branches
  1. 8.2 templates/calendar-year.html.twig

Template to display a view as a calendar year.

$view: The view. $months: An array with a formatted month calendar for each month of the year. $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS. $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS.

See also

template_preprocess_calendar_year.

File

templates/calendar-year.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template to display a view as a calendar year.
  5. *
  6. * @see template_preprocess_calendar_year.
  7. *
  8. * $view: The view.
  9. * $months: An array with a formatted month calendar for each month of the year.
  10. * $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
  11. * $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
  12. *
  13. */
  14. #}
  15. <div class="calendar-calendar"><div class="year-view">
  16. <table {% if mini %} class="mini"{% endif %}>
  17. <tbody>
  18. <tr><td>{{ months[1] }}</td><td>{{ months[2] }}</td><td>{{ months[3] }}</td></tr>
  19. <tr><td>{{ months[4] }}</td><td>{{ months[5] }}</td><td>{{ months[6] }}</td></tr>
  20. <tr><td>{{ months[7] }}</td><td>{{ months[8] }}</td><td>{{ months[9] }}</td></tr>
  21. <tr><td>{{ months[10] }}</td><td>{{ months[11] }}</td><td>{{ months[12] }}</td></tr>
  22. </tbody>
  23. </table>
  24. </div></div>