Skip to content

Commit

Permalink
feat: remove frosh_encode_url
Browse files Browse the repository at this point in the history
  • Loading branch information
tinect committed Aug 18, 2024
1 parent 336e3fd commit bf2f2c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 95 deletions.
11 changes: 0 additions & 11 deletions src/Resources/config/services.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{% if thumbnails %}
{# generate srcset with all available thumbnails #}
{% set srcsetValue %}{% apply spaceless %}
{{ media.url|frosh_encode_url }} {{ thumbnails|first.width + 1 }}w, {% for thumbnail in thumbnails %}{{ thumbnail.url|frosh_encode_url }} {{ thumbnail.width }}w{% if not loop.last %}, {% endif %}{% endfor %}
{{ media.url|sw_encode_url }} {{ thumbnails|first.width + 1 }}w, {% for thumbnail in thumbnails %}{{ thumbnail.url|sw_encode_url }} {{ thumbnail.width }}w{% if not loop.last %}, {% endif %}{% endfor %}
{% endapply %}{% endset %}
{% endif %}
{% endif %}
Expand Down Expand Up @@ -53,7 +53,7 @@
{% endif %}

<img src="{{ src }}"
data-src="{{ media.url|frosh_encode_url }}"
data-src="{{ media.url|sw_encode_url }}"
{% if srcsetValue %}
data-srcset="{{ srcsetValue }}"
data-sizes="auto"
Expand All @@ -63,7 +63,7 @@
{% for key, value in attributes %}
{{ key }}="{{ value }}"
{% if key == 'itemprop' %}
content="{{ media.url|frosh_encode_url }}"
content="{{ media.url|sw_encode_url }}"
{% endif %}
{% endfor %}
/>
Expand Down
81 changes: 0 additions & 81 deletions src/Storefront/Framework/Twig/Extension/UrlEncodingTwigFilter.php

This file was deleted.

0 comments on commit bf2f2c8

Please sign in to comment.