+ {% include '@ecl/icon/icon.html.twig' with {
+ icon: {
+ path: _icon_path,
+ name: 'information',
+ size: 'm',
+ },
+ extra_classes: 'ecl-news-ticker__icon',
+ } only %}
{% for _item in _items %}
{% if _item.link is not empty %}
-
- {% include '@ecl/link/link.html.twig' with{
+ {% include '@ecl/link/link.html.twig' with {
link: {
label: _item.content,
path: _item.link,
- external: _item.external,
- icon_path: icon_path,
+ icon_position: 'before',
+ },
+ icon: not _item.external ? {} : {
+ name: "external",
+ size: "xs",
+ path: icon_path
},
extra_classes: 'ecl-news-ticker__slide-text',
- extra_attributes: [
- { name: 'tabindex', value: '-1' },
- ]
} only %}
{% else %}
@@ -93,73 +108,80 @@
{% endif %}
- {% include '@ecl/icon/icon.html.twig' with {
- icon: {
- path: _icon_path,
- name: 'information',
- size: 'm',
- },
- extra_classes: 'ecl-news-ticker__icon',
- } only %}
-
- {% include '@ecl/button/button.html.twig' with {
- type: 'button',
- variant: 'primary',
- icon: {
- path: _icon_path,
- name: 'corner-arrow',
- size: 'm',
- transform: 'rotate-270',
- },
- label: _sr_previous,
- hide_label: true,
- extra_classes: 'ecl-news-ticker__prev',
- extra_attributes: [
- {name: 'data-ecl-news-ticker-prev'},
- {name: 'aria-controls', value: _aria_controls},
- ],
- } only %}
-
- {% include '@ecl/button/button.html.twig' with {
- type: 'button',
- variant: 'primary',
- icon: {
- path: _icon_path,
- name: 'play',
- size: 'm',
- },
- label: _sr_autoplay,
- hide_label: true,
- extra_classes: 'ecl-news-ticker__toggle',
- extra_attributes: [
- {name: 'data-ecl-news-ticker-toggle'},
- {name: 'data-action', value: 'stop'},
- ],
- } only %}
-
- {% include '@ecl/button/button.html.twig' with {
- type: 'button',
- variant: 'primary',
- icon: {
- path: _icon_path,
- name: 'corner-arrow',
- size: 'm',
- transform: 'rotate-90',
- },
- label: _sr_next,
- hide_label: true,
- extra_classes: 'ecl-news-ticker__next',
- extra_attributes: [
- {name: 'data-ecl-news-ticker-next'},
- {name: 'aria-controls', value: _aria_controls},
- ],
- } only %}
-
+
+
+
+
+
+ 1
+ {{- ' ' -}}{{- _counter_label }}{{- ' ' -}}
+ {{_items|length}}
+