custom/plugins/IesLazyLoading6/src/Resources/views/storefront/layout/meta.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  2. {% block layout_head_stylesheet %}
  3.     {{ parent() }}
  4.     {% block layout_head_stylesheet_lazyload %}
  5.         {% apply spaceless %}
  6.             {% if config('IesLazyLoading6.config.lazyloadIcon') is not same as 'disabled' %}
  7.                 {% set lazyLoadingIcon = config('IesLazyLoading6.config.lazyloadIcon')|default('audio') %}
  8.                 {% set lazyloadColor = config('IesLazyLoading6.config.lazyloadColor')|default('#000') %}
  9.                 {% set iconContent %}
  10.                     {% sw_include '@IesLazyLoading6/storefront/icons/' ~ lazyLoadingIcon ~ '.svg' with {
  11.                         color: lazyloadColor
  12.                     } %}
  13.                 {% endset %}
  14.                 <style>[data-ies-lazy-loading]{background-image: url('data:image/svg+xml;charset=UTF-8,{{ iconContent|replace({'#': '%23',"\n":' ',"\r":' '})|raw }}');}</style>
  15.                 <script type="text/javascript">function onIesLazyLoaded(img) {img.removeAttribute('data-ies-lazy-loading');}</script>
  16.             {% endif %}
  17.         {% endapply %}
  18.     {% endblock %}
  19. {% endblock %}