<div data-cms-widget="{{ _widget.__fqcn__ }}" {{ cms_widgetContainer(
(_widget.container is defined and _widget.container is not null) ? _widget.container : null,
_htmlId
) }}>
{% if _error is not null %}
<div data-cms-widget-error>{{ _handler.key }}:ERROR:{{ _error.message }}</div>
{% else %}
{% include _twig %}
{% endif %}
</div>
{% if _handler.styles|length > 0 or _handler.scripts|length > 0 or _handler.hasPlugin() %}
<script type="text/javascript">
Campussuite.Widgets.run({{ cms_widgetTrigger(
_handler,
_plugin,
_htmlId,
((_styles is defined and _styles is iterable) ? _styles : []),
((_scripts is defined and _scripts is iterable) ? _scripts : [])
) }});
</script>
{% endif %}