templates/document/sub_category_page/default.html.twig line 83

Open in your IDE?
  1. {% extends 'layout/default.html.twig' %}
  2. {% block contentBlock %}
  3. <main class="stereotaxicCategoryPage" style="background-attachment: fixed;background-image: url({{ document.getProperty('template_background_image') ? document.getProperty('template_background_image').getThumbnail('Stoelting_division_bg') }}) ;">
  4.         <div class="container mt-5 mt-lg-5 mt-md-5">
  5.             <div class="row">
  6.                 <div class="col-xl-10 offset-xl-1 offset-lg-0 col-lg-12 pb-3 pb-lg-3 pb-md-3">
  7.                     <div class="d-flex align-items-center">
  8.                         {% set anyMaze = 'any-maze' in document.getProperty('navigation_title') | lower %}
  9.                         <div class="category-breadcrumb-image {{ pimcore_image('categoryBreadcrumbImage').isEmpty() and not editmode ? 'd-none' : 'mr-3 mr-lg-3 mr-md-3' }}">
  10.                             {% if editmode %}
  11.                                 {{ pimcore_image('categoryBreadcrumbImage') }}
  12.                             {% else %}
  13.                                 <img style="width:80px;" src="{{ pimcore_image('categoryBreadcrumbImage').getThumbnail('Stoelting_category_breadcrumb') }}" alt="{{ pimcore_image('categoryBreadcrumbImage').getAlt() }}">
  14.                             {% endif %}
  15.                         </div>
  16.                         <!-- * Desktop version-->
  17.                         <div class="sub-category-nav--desktop align-items-center border-2 border-bottom border-indigo w-100 pb-3 pb-lg-3 pb-md-3" style="margin-bottom: 8px;">
  18.                             <h2 class="font-weight-bold mb-0">
  19.                                 {% if editmode %}
  20.                                     {{ pimcore_input('categoryBreadcrumbHeading', {
  21.                                         placeholder: document.getProperty('navigation_title')
  22.                                     }) }}
  23.                                 {% elseif not pimcore_input('categoryBreadcrumbHeading').isEmpty() %}
  24.                                     {{ pimcore_input('categoryBreadcrumbHeading') }}
  25.                                 {% else %}
  26.                                     {{ document.getProperty('navigation_title') }}
  27.                                 {% endif %}
  28.                             </h2>
  29.                             <div class="d-flex ml-auto">
  30.                                 <h4 class="font-weight-bold text-uppercase mb-0">
  31.                                     <a href="{{ document.parent.href }}" class="text-navyBlue hover-mediumBlue">
  32.                                         <span class="text-indigo">&lt; </span> {{ document.parent.property('navigation_title') }}
  33.                                     </a>
  34.                                 </h4>
  35.                             </div>
  36.                         </div>
  37.                         <!-- * Mobile version-->
  38.                         <div class="sub-category-nav--mobile">
  39.                             <div class="border-2 border-bottom border-indigo w-100 pb-2 pb-lg-2 pb-md-2">
  40.                                 <h3 class="font-weight-bold">
  41.                                     {% if editmode %}
  42.                                         {{ pimcore_input('categoryBreadcrumbHeading--mobile', {
  43.                                             placeholder: document.getProperty('navigation_title')
  44.                                         }) }}
  45.                                     {% elseif not pimcore_input('categoryBreadcrumbHeading--mobile').isEmpty() %}
  46.                                         {{ pimcore_input('categoryBreadcrumbHeading--mobile') }}
  47.                                     {% else %}
  48.                                         {{ document.getProperty('navigation_title') }}
  49.                                     {% endif %}
  50.                                 </h3>
  51.                             </div>
  52.                             <div class="d-flex pt-2 pt-lg-2 pt-md-2">
  53.                                 <h4 class="font-weight-bold text-uppercase">
  54.                                     <a href="{{ document.parent.href }}" class="d-flex align-items-center text-navyBlue hover-mediumBlue">
  55.                                         <span class="text-indigo">&lt; </span><small class="ml-1 ml-lg-1 ml-md-1">{{ document.parent.property('navigation_title') }}</small>
  56.                                     </a>
  57.                                 </h4>
  58.                             </div>
  59.                         </div>
  60.                     </div>
  61.                 </div>
  62.             </div>
  63.                 <div class="row mt-5 mt-lg-5 mt-md-5 stereotaxicCategoryPage-products align-items-start">
  64.                     <div class="col-xl-8 offset-xl-2">
  65.                         <div class="row align-items-start">
  66.                             {% set fallbackImage = asset('static/images/admin/empty_image.png') %}
  67.                             {% for index, product in paginator %}
  68.                                 {% set image = product.image is defined ? product.image : null %}
  69.                                 <!-- include subtemplate 'category-item.html.twig' -->
  70.                                 {% include "Components/product-item.html.twig" with {'product': product} %}
  71.                             {% endfor %}
  72.                         </div>
  73.                         <div class="row {{ paginator.paginationData.pageCount == 1 ? 'd-none' }}">
  74.                             <div class="col-lg-6 offset-lg-3">
  75.                                 {% include 'Components/pagination.html.twig' with paginator %}
  76.                             </div>
  77.                         </div>
  78.                     </div>
  79.                 </div>
  80.         </div>
  81.     </main>
  82. {% endblock %}