-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1609 from JohJohan/deprecated-spaceless
fix(deprecation): remove deprecated spaceless filter
- Loading branch information
Showing
1 changed file
with
12 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |