themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Brand/index.html.twig line 1

Open in your IDE?
  1. {% extends '@SyliusShop/layout.html.twig' %}
  2. {% block title %}{{ 'app.ui.brands'|trans }} | {{ parent() }}{% endblock %}
  3. {% block content %}
  4. <div class="container px-2 px-xl-4">
  5.     {% block breadcrumb %}
  6.         {% include '@SyliusShop/Brand/Index/_breadcrumb.html.twig' %}
  7.     {% endblock %}
  8.     <div class="bg-white p-2 p-md-3 my-2 my-md-3">
  9.         {% include '@SyliusShop/Brand/Index/_header.html.twig' %}
  10.     </div>
  11.     <div class="row mx-n2 mx-md-n3 pb-4">
  12.         {% if brands|length > 0 %}
  13.             {% for brand in brands %}
  14.                 <div class="col-xl-3 col-md-4 col-6 mb-lg-4 mb-3 px-md-3 px-2">
  15.                     <a href="{{ path('app_shop_brand_product_index', {'code' : brand.code}) }}" >
  16.                     {% include "@SyliusShop/Brand/Box/_content.html.twig" with {'brand' : brand } %}
  17.                     </a>
  18.                 </div>
  19.             {% endfor %}
  20.         {% else %}
  21.             <span>Il n'y a aucune marque pour le moment</span>
  22.         {% endif %}
  23.     </div>
  24. </div>
  25. {%  endblock %}