templates/product/overview.html.twig line 1

Open in your IDE?
  1. {% extends base_layout() %}
  2. {% block content %}
  3.     <section class="mb-5 pb-5">
  4.         <div class="container">
  5.             {{ include('includes/title.html.twig') }}
  6.             {{ pimcore_areablock('content-1') }}
  7.             <div class="row">
  8.                 <div class="col-12">
  9.                     {% if editmode %}
  10.                         {% set message = 'Om een ProductCategory toe te voegen: wendt u zich naar "Objects"' %}
  11.                         {% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'alert'} %}
  12.                     {% endif %}
  13.                 </div>
  14.             </div>
  15.             <div class="row row-cols-2 row-cols-lg-5 g-5 d-flex justify-content-center">
  16.                 {% for categorie in productcategories %}
  17.                     {% set detailLink = app_product_grouplink(categorie) %}
  18.                     <div class="col">
  19.                         <div class="text-center catoverview">
  20.                             <a href="{{ detailLink }}" class="fs-5"
  21.                                onMouseOver="this.style.color='{{ categorie.bgcolor }}'"
  22.                                onMouseOut="this.style.color='#595959'" data-toggle="tooltip" data-html="true" title="{{ categorie.infoProductGroup }}" style="cursor: pointer;">
  23.                                 <div class="p-3 position-relative h-100 d-block">
  24.                                     {% if categorie.getImage() is not empty %}
  25.                                         <img src="{{ categorie.getImage().getThumbnail('homepage-icon') }}"
  26.                                              class="img-fluid d-block" style="z-index: 1">
  27.                                     {% endif %}
  28.                                     {% set productimagebg = categorie.imagebg %}
  29.                                     {% if productimagebg %}
  30.                                         <img
  31.                                         src="{{ productimagebg.getThumbnail('homepage-icon') }}"
  32.                                         class="img-fluid position-absolute top-0 start-0 d-block bg-shape"
  33.                                         style="z-index: -1">{% endif %}
  34.                                 </div>
  35.                                 {% if categorie.combinedCategoryName is not empty %}
  36.                                     {{ categorie.combinedCategoryName|capitalize }}
  37.                                 {% else %}
  38.                                     {{ categorie.oms|capitalize }}
  39.                                 {% endif %}
  40.                             </a>
  41.                         </div>
  42.                     </div>
  43.                 {% endfor %}
  44.             </div>
  45.             {{ pimcore_areablock('content-2') }}
  46.             <div class="row">
  47.                 <div class="col-12 justify-content-center ">
  48.                     {% include 'includes/pagination-product.html.twig' %}
  49.                 </div>
  50.             </div>
  51.         </div>
  52.     </section>
  53. {% endblock %}