calendar-datebox.html.twig in Calendar 8
Template to display the date box in a calendar.
Available variables:
- view: The view.
- granularity: The type of calendar this box is in -- year, month, day, or week.
- mini: Whether or not this is a mini calendar.
- class: The class for this box -- mini-on, mini-off, or day.
- day: The day of the month.
- date: The current date, in the form YYYY-MM-DD.
- link: A formatted link to the calendar day view for this day.
- url: The url to the calendar day view for this day.
- selected: Whether or not this day has any items.
- items: An array of items for this day.
2 theme calls to calendar-datebox.html.twig
- Calendar::calendarBuildDay in src/
Plugin/ views/ style/ Calendar.php - Build the datebox information for the current day.
- Calendar::calendarBuildMonth in src/
Plugin/ views/ style/ Calendar.php - Build one month.
File
templates/calendar-datebox.html.twigView source
- {#
- /**
- * @file
- * Template to display the date box in a calendar.
- *
- * Available variables:
- * - view: The view.
- * - granularity: The type of calendar this box is in -- year, month, day, or week.
- * - mini: Whether or not this is a mini calendar.
- * - class: The class for this box -- mini-on, mini-off, or day.
- * - day: The day of the month.
- * - date: The current date, in the form YYYY-MM-DD.
- * - link: A formatted link to the calendar day view for this day.
- * - url: The url to the calendar day view for this day.
- * - selected: Whether or not this day has any items.
- * - items: An array of items for this day.
- *
- * @ingroup themeable
- */
- #}
- <div class="{{ granularity }} {{ class }}">
- {% if selected is not empty %}
- {{ link }}
- {% else %}
- {{ day }}
- {% endif %}
- </div>