Skip to content

Commit

Permalink
Merge pull request #1609 from JohJohan/deprecated-spaceless
Browse files Browse the repository at this point in the history
fix(deprecation): remove deprecated spaceless filter
  • Loading branch information
dbu authored Sep 4, 2024
2 parents f3b6742 + 5e8a117 commit 8a2c9fc
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions Resources/views/Form/form_div_layout.html.twig
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
{% block liip_imagine_image_widget %}
{% apply spaceless %}
{% if image_path %}
<div>
{% if link_url %}
<a href="{{ link_filter ? link_url|imagine_filter(link_filter): link_url }}" {% for attrname, attrvalue in link_attr %}{{ attrname }}="{{ attrvalue }}" {% endfor %}>
{% endif %}
{% if image_path %}
<div>
{% if link_url %}
<a href="{{ link_filter ? link_url|imagine_filter(link_filter): link_url }}" {% for attrname, attrvalue in link_attr %}{{ attrname }}="{{ attrvalue }}" {% endfor %}>
{% endif %}

<img src="{{ image_path|imagine_filter(image_filter) }}" {% for attrname, attrvalue in image_attr %}{{ attrname }}="{{ attrvalue }}" {% endfor %} />
<img src="{{ image_path|imagine_filter(image_filter) }}" {% for attrname, attrvalue in image_attr %}{{ attrname }}="{{ attrvalue }}" {% endfor %} />

{% if link_url %}
</a>
{% endif %}
</div>
{% endif %}
{% if link_url %}
</a>
{% endif %}
</div>
{% endif %}

{{ block('form_widget_simple') }}
{% endapply %}
{{ block('form_widget_simple') }}
{% endblock %}

0 comments on commit 8a2c9fc

Please sign in to comment.