templates/electronique/boardtemplate.html.twig line 1

Open in your IDE?
  1. {% import "@SyliusShop/Common/Macro/money.html.twig" as money %}
  2. {{ sonata_block_render_event('sylius.shop.product.index.before_box', {'product': product}) }}
  3. <div class="ui item electroniquedevice">
  4. <div class="image fluid">
  5. <a href="{{ path('sylius_shop_product_show', {'slug': product.slug, '_locale': product.translation.locale}) }}" class="blurring dimmable fluid">
  6. <div class="ui dimmer">
  7. <div class="content">
  8. <div class="center">
  9. <div class="ui inverted button">{{ 'sylius.ui.view_more'|trans }}</div>
  10. </div>
  11. </div>
  12. </div>
  13. {% include '@SyliusShop/Product/_mainImage.html.twig' with {'product': product} %}
  14. </a>
  15. </div>
  16. <div class="content">
  17. <a href="{{ path('sylius_shop_product_show', {'slug': product.slug, '_locale': product.translation.locale}) }}" class="ui header sylius-product-name">{{ product.name }}</a>
  18. <div class="description">
  19. <div class="ui small info message">
  20. {{ sonata_block_render_event('sylius.shop.product.show.tab_details', {'product': product}) }}
  21. {% if product.description is not empty %}
  22. {{ product.description | raw }}
  23. {% else %}
  24. {{ 'sylius.ui.no_description'|trans }}.
  25. {% endif %}
  26. </div>
  27. </div>
  28. <div class="meta">
  29. <span>
  30. {{ product.shortDescription }}
  31. {{ sonata_block_render_event('sylius.shop.product.show.after_description', {'product': product}) }}
  32. </span>
  33. </div>
  34. {% include '@SyliusShop/Product/Show/Tabs/_attributewithcode.html.twig' with {'product': product} %}
  35. <div class="extra">
  36. {# PRICE
  37. {% if not product.variants.empty() %}
  38. <div class="sylius-product-price">
  39. {{ money.calculatePrice(product|sylius_resolve_variant) }}
  40. </div>
  41. {% endif %}
  42. #}
  43. {{ sonata_block_render_event('sylius.shop.product.show.after_add_to_cart', {'product': product}) }}
  44. {{ sonata_block_render_event('sylius.shop.product.index.after_box', {'product': product}) }}
  45. </div>
  46. </div>
  47. </div>