You are here

commerce-demo-frontpage.html.twig in Commerce Demo 8

<div class="featured-products">
  <h2 class="text-align-center">{{ 'Featured products'|t }}</h2>
  {% for featured_product in featured_products %}
    <div class="featured-product">
      {{ render_var(featured_product) }}
    </div>
  {% endfor %}
</div>
<div class="testimonial">
    <p class="h2">{{ 'Slow-carb paleo bicycle rights bushwick. Tote bag mustache man bun swag, tbh chartreuse synth stumptown portland cray.'|t }}</p>
    <p>{{ 'Nikola White, customer'|t }}</p>
</div>

File

templates/commerce-demo-frontpage.html.twig
View source
  1. <div class="featured-products">
  2. <h2 class="text-align-center">{{ 'Featured products'|t }}</h2>
  3. {% for featured_product in featured_products %}
  4. <div class="featured-product">
  5. {{ render_var(featured_product) }}
  6. </div>
  7. {% endfor %}
  8. </div>
  9. <div class="testimonial">
  10. <p class="h2">{{ 'Slow-carb paleo bicycle rights bushwick. Tote bag mustache man bun swag, tbh chartreuse synth stumptown portland cray.'|t }}</p>
  11. <p>{{ 'Nikola White, customer'|t }}</p>
  12. </div>