Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Templates/default/html/image.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Overridden so we can control the path to the image based on our copying logic.
See CopyImagesListener.
#}
{% set wrap_image_with_browser = 'with-browser' in imageNode.options.class ?? '' %}
{% set wrap_image_with_browser = 'with-browser' in (imageNode.options.class ?? '') %}
{% if wrap_image_with_browser %}<div class="with-browser">{% endif %}
<img src="{{ imageNode.value }}" {% for key, value in imageNode.options %}{{ key }}="{{ value }}" {% endfor %}/>
{% if wrap_image_with_browser %}</div>{% endif %}
Loading