Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove frosh_encode_url #31

Merged
merged 1 commit into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
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
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.