You are here

commerce-cart-blocks-cart.html.twig in Commerce Cart Blocks 8

{%
set classes = [
  'commerce-cart-block',
  'commerce-cart-block--type-cart',
  in_cart ? 'is-inCart',
]
%}


<div{{ attributes.addClass(classes) }}>
  {% if heading %}
    <div class="commerce-cart-block--contents__heading">
      {{ heading }}
    </div>
  {% endif %}

  {% if content %}
    <div class="commerce-cart-block--contents__items">
      {{ content }}
    </div>
  {% endif %}

  {% if links %}
    <div class="commerce-cart-block--contents__links">
      {{ links }}
    </div>
  {% endif %}
</div>

File

templates/commerce-cart-blocks-cart.html.twig
View source
  1. {%
  2. set classes = [
  3. 'commerce-cart-block',
  4. 'commerce-cart-block--type-cart',
  5. in_cart ? 'is-inCart',
  6. ]
  7. %}
  8. <div{{ attributes.addClass(classes) }}>
  9. {% if heading %}
  10. <div class="commerce-cart-block--contents__heading">
  11. {{ heading }}
  12. </div>
  13. {% endif %}
  14. {% if content %}
  15. <div class="commerce-cart-block--contents__items">
  16. {{ content }}
  17. </div>
  18. {% endif %}
  19. {% if links %}
  20. <div class="commerce-cart-block--contents__links">
  21. {{ links }}
  22. </div>
  23. {% endif %}
  24. </div>