themes/XChildTheme/templates/bundles/SyliusShopBundle/Brands/index.html.twig line 1

Open in your IDE?
  1. {% extends '@SyliusShop/layout.html.twig' %}
  2. {% block content %}
  3. <div class="brands">
  4. <div class="container">
  5. <div class="row d-flex flex-row">
  6. {% for brand in brands %}
  7. <div class="brands-details col-lg-2 m-2 d-flex justify-content-center align-items-center" style="border: 1px solid #f1f1f1; height:150px;
  8. border-radius: 8px;
  9. margin-bottom: 24px;">
  10. <a href="#">
  11. <div class="" style="min-height:70px">
  12. {% if brand.imagesByType('logo') is not empty %}
  13. {% set path = brand.imagesByType('logo').first.path|imagine_filter(filter|default('sylius_small')) %}
  14. {% elseif brand.images.first %}
  15. {% set path = brand.images.first.path|imagine_filter(filter|default('sylius_small')) %}
  16. {% else %}
  17. {% set path = '//placehold.it/120x90' %}
  18. {% endif %}
  19. <img src="{{ path }}" alt="" class="ui bordered image">
  20. </div>
  21. <h2 class="text-main">{{brand.name}}</h2>
  22. <h2 class="text-main">
  23. {# {% for br in brand.images %}</h2> #}
  24. {# {% endfor %} #}
  25. </a>
  26. </div>
  27. {% endfor %}
  28. </div>
  29. </div>
  30. </div>
  31. {% endblock %}