You are here

uc-price.html.twig in Ubercart 8.4

{#
/**
 * @file
 * Default theme implementation to display a price.
 *
 * Displays a price in the standard format and with consistent markup.
 *
 * Available variables:
 * - price: A formatted price.
 * - suffixes: An array of suffixes to be attached to this price.
 *
 * @ingroup themeable
#}
{% spaceless %}
<span class="uc-price">{{ price }}</span>
{% if suffixes is not empty %}
  <span class="price-suffixes">{{ suffixes|join(' ') }}</span>
{% endif %}
{% endspaceless %}

File

uc_store/templates/uc-price.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a price.
  5. *
  6. * Displays a price in the standard format and with consistent markup.
  7. *
  8. * Available variables:
  9. * - price: A formatted price.
  10. * - suffixes: An array of suffixes to be attached to this price.
  11. *
  12. * @ingroup themeable
  13. #}
  14. {% spaceless %}
  15. <span class="uc-price">{{ price }}</span>
  16. {% if suffixes is not empty %}
  17. <span class="price-suffixes">{{ suffixes|join(' ') }}</span>
  18. {% endif %}
  19. {% endspaceless %}