/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß * @copyright 2012 - 2015 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ {% extends "widget_calendar.html" %} {% block example %}
Examples
{{ calendar.list('', '', 3) }}
{{ calendar.list('', '', 3) }}
Events of one calendar only, short weekday format and clickable info field:
(refresh page if no info field is shown)
{{ calendar.list('', 'Events in "Personal"', 3, '', '', 'Personal','D', 'active') }}
{{ calendar.list('', 'Events in "Personal"', 3, '', '', 'Personal','D', 'active') }}
Calendars with individual colors and long weekday format:
{{ calendar.list('', '', 3, ['#993399','green'], '', ['Personal','Waste'], 'l') }}
{{ calendar.list('', '', 3, ['#993399','green'], '', ['Personal','Waste'], 'l') }}
You can specify your own icons and colors for calendar events in the language file , e.g. .dropins/lang/mylang.ini in the section "[calendar_event_format]".
blue bin[icon] = message_garbage
blue bin[color] = #0000FF
Attention: calendar.list searches for the specified keywords and applies icon and color to the event if it's title contains a keyword. With the above example it will display the same for "buy blue binoculars" and "blue bin". Specify the more specific keywords in sequence behind the more general ones in order to optimize pattern matching.

A default icon and color can be defined using "default_img_list". If no default is defined a transparent image "trans.png" will be displayed.
default_img_list[icon] = message_achtung
default_img_list[color] = "rgb(32, 178, 170)"
{% endblock %}