templates/document/category_page/default.html.twig line 1

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 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.                         <h2 class="d-none d-md-inline font-weight-bold border-2 border-bottom border-indigo w-100 custom-bradcrumb-padding">
  17.                             {% if editmode %}
  18.                                 {{ pimcore_input('categoryBreadcrumbHeading', {
  19.                                     placeholder: document.getProperty('navigation_title')
  20.                                 }) }}
  21.                             {% elseif not pimcore_input('categoryBreadcrumbHeading').isEmpty() %}
  22.                                 {{ pimcore_input('categoryBreadcrumbHeading') }}
  23.                             {% else %}
  24.                                 {{ document.getProperty('navigation_title') }}
  25.                             {% endif %}
  26.                         </h2>
  27.                         <!--* ON MOBILE H3-->
  28.                         <h3 class="d-inline d-md-none font-weight-bold border-2 border-bottom border-indigo w-100 custom-bradcrumb-padding">
  29.                             {% if editmode %}
  30.                                 {{ pimcore_input('categoryBreadcrumbHeading--mobile', {
  31.                                     placeholder: document.getProperty('navigation_title')
  32.                                 }) }}
  33.                             {% elseif not pimcore_input('categoryBreadcrumbHeading--mobile').isEmpty() %}
  34.                                 {{ pimcore_input('categoryBreadcrumbHeading--mobile') }}
  35.                             {% else %}
  36.                                 {{ document.getProperty('navigation_title') }}
  37.                             {% endif %}
  38.                         </h3>
  39.                     </div>
  40.                 </div>
  41.             </div>
  42.             <div class="row mt-5 mt-lg-5 mt-md-5 stereotaxicCategoryPage-products">
  43.                 <div class="col-xl-8 offset-xl-2">
  44.                     <div class="row align-items-start">
  45.                         {% set fallbackImage = asset('static/images/admin/empty_image.png') %}
  46.                         {% for index, page in documents %}
  47.                             {% set image = page['image'] ? page['image'].getThumbnail('Stoelting_neuroscience_circle') : fallbackImage %}
  48.                             <!-- include subtemplate 'category-item.html.twig' -->
  49.                             {% include "Components/category-item.html.twig" with page %}
  50.                         {% endfor %}
  51.                     </div>
  52.                 </div>
  53.             </div>
  54.         </div>
  55.     </main>
  56. {% endblock %}