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

Open in your IDE?
  1. {% extends '@SyliusShop/layout.html.twig' %}
  2. {% import '@SyliusShop/Common/Macro/messages.html.twig' as messages %}
  3. {% block title %}{{ 'app.ui.brands'|trans }} | {{ parent() }}{% endblock %}
  4. {% block content %}
  5. <div class="px-2">
  6.     <div class="max-container-5 px-0">
  7.         {% block breadcrumb %}
  8.             {% include '@SyliusShop/Brand/Index/_breadcrumb.html.twig' %}
  9.         {% endblock %}
  10.         <div class="py-2 py-md-3 my-2 text-center">
  11.             {% include '@SyliusShop/Brand/Index/_header.html.twig' %}
  12.         </div>
  13.         
  14.         {% if brands|length > 0 %}
  15.             <div class="row mx-n2 mx-md-n3 py-md-4 py-3">
  16.                 {% for brand in brands %}
  17.                     <div class="col-lg-3 col-md-4 col-6 px-2 px-md-3 mb-lg-5 mb-md-4 mb-3">
  18.                         <div class="h-100 bg-kit border">
  19.                             <a href="{{ path('app_shop_brand_product_index', {'code' : brand.code}) }}" >
  20.                                 {% include "@SyliusShop/Brand/Box/_content.html.twig" with {'brand' : brand } %}
  21.                             </a>
  22.                         </div>
  23.                     </div>
  24.                 {% endfor %}
  25.             </div>
  26.         {% else %}
  27.             <div class="max-content text-center py-4">
  28.                 <div class="d-inline-block">{{ messages.info('app.common.no_brand') }}</div> 
  29.             </div>
  30.         {% endif %}
  31.     </div>
  32. </div>
  33. {%  endblock %}