custom/plugins/KlarnaPayment/src/Resources/views/storefront/layout/footer/footer.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/footer/footer.html.twig' %}
  2. {% block layout_footer_payment_logos %}
  3.     {# @var \KlarnaPayment\Components\Struct\PaymentMethodBadge klarnaBadge #}
  4.     {% set klarnaBadge = page.footer.extensions[constant('KlarnaPayment\\Components\\Struct\\PaymentMethodBadge::EXTENSION_NAME')] %}
  5.     {% if klarnaBadge %}
  6.         {% if klarnaBadge.paymentType is same as(constant('KlarnaPayment\\Components\\Struct\\PaymentMethodBadge::TYPE_CHECKOUT')) %}
  7.             {% block klarna_checkout_footer_badge %}
  8.                 <div class="footer-logo is-payment">
  9.                     <img src="https://cdn.klarna.com/1.0/shared/image/generic/badge/{{ klarnaBadge.countryCode }}/checkout/{{ klarnaBadge.style }}.png?width={{ klarnaBadge.width }}" class="img-fluid" alt="Klarna Checkout" title="Klarna Checkout">
  10.                 </div>
  11.             {% endblock %}
  12.         {% endif %}
  13.         {% if klarnaBadge.paymentType is same as(constant('KlarnaPayment\\Components\\Struct\\PaymentMethodBadge::TYPE_PAYMENTS')) %}
  14.             {% block klarna_payments_footer_badge %}
  15.                 <div class="footer-logo is-payment">
  16.                     <img src="https://x.klarnacdn.net/payment-method/assets/badges/generic/klarna.png" class="img-fluid footer-logo-image" alt="Klarna Payments" title="Klarna Payments">
  17.                 </div>
  18.             {% endblock %}
  19.         {% endif %}
  20.     {% endif %}
  21.     {{ parent() }}
  22. {% endblock %}