Skip to content

Commit 2af1859

Browse files
authored
IBX-9326: Fixed missing class attribute for image field Twig block (#471)
1 parent aec2544 commit 2af1859

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bundle/Core/Resources/views/content_fields.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@
445445
href="{{ parameters.ezlink.href }}"
446446
{% if parameters.ezlink.title is defined %} title="{{ parameters.ezlink.title|e('html_attr') }}"{% endif %}
447447
{% if parameters.ezlink.target is defined %} target="{{ parameters.ezlink.target|e('html_attr') }}"{% endif %}
448+
{% if parameters.ezlink.class is defined %} class="{{ parameters.ezlink.class|e('html_attr') }}"{% endif %}
448449
>
449450
{% endif %}
450451
<img src="{{ src }}" alt="{{ parameters.alternativeText|default(field.value.alternativeText) }}" {% for attrname, attrvalue in attrs %}{% if attrvalue %}{{ attrname }}="{{ attrvalue }}" {% endif %}{% endfor %}/>

0 commit comments

Comments
 (0)