diff --git a/src/Resources/config/services.xml b/src/Resources/config/services.xml deleted file mode 100644 index 9a666c3..0000000 --- a/src/Resources/config/services.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - diff --git a/src/Resources/views/storefront/utilities/thumbnail-lazysize.html.twig b/src/Resources/views/storefront/utilities/thumbnail-lazysize.html.twig index 5ba773e..38888c4 100644 --- a/src/Resources/views/storefront/utilities/thumbnail-lazysize.html.twig +++ b/src/Resources/views/storefront/utilities/thumbnail-lazysize.html.twig @@ -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 %} @@ -53,7 +53,7 @@ {% endif %} diff --git a/src/Storefront/Framework/Twig/Extension/UrlEncodingTwigFilter.php b/src/Storefront/Framework/Twig/Extension/UrlEncodingTwigFilter.php deleted file mode 100644 index 6296ed2..0000000 --- a/src/Storefront/Framework/Twig/Extension/UrlEncodingTwigFilter.php +++ /dev/null @@ -1,81 +0,0 @@ - $segment) { - $relativeImagePathSegments[$index] = \rawurlencode($segment); - } - - $paths[1] = implode('/', $relativeImagePathSegments); - - $path = implode('/', $paths); - if (isset($urlInfo['query'])) { - $path .= "?{$urlInfo['query']}"; - } - - $encodedPath = ''; - - if (isset($urlInfo['scheme'])) { - $encodedPath = "{$urlInfo['scheme']}://"; - } - - if (isset($urlInfo['host'])) { - $encodedPath .= "{$urlInfo['host']}"; - } - - if (isset($urlInfo['port'])) { - $encodedPath .= ":{$urlInfo['port']}"; - } - - return $encodedPath . $path; - } - - return $mediaUrl; - } -}