You are here

uc-cart-checkout-buttons.html.twig in Ubercart 8.4

Default theme implementation for cart checkout button(s).

Available variables:

  • buttons: An array of button render elements.

File

uc_cart/templates/uc-cart-checkout-buttons.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for cart checkout button(s).
  5. *
  6. * Available variables:
  7. * - buttons: An array of button render elements.
  8. *
  9. * @see \Drupal\uc_cart\Form\CartForm
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. {{ buttons|first }}
  15. {% if buttons|length > 1 %}
  16. <div class="uc-cart-checkout-button-container clearfix">
  17. <div class="uc-cart-checkout-button">
  18. <div class="uc-cart-checkout-button-separator">{{ '- or -'|t }}</div>
  19. {{ buttons[1:1] }}
  20. </div>
  21. {% for button in buttons[2:] %}
  22. <div class="uc-cart-checkout-button">
  23. {{ button }}
  24. </div>
  25. {% endfor %}
  26. </div>
  27. {% endif %}