{% extends 'layout/default.html.twig' %}
{% block contentBlock %}
<main class="stereotaxicCategoryPage" style="background-attachment: fixed;background-image: url({{ document.getProperty('template_background_image') ? document.getProperty('template_background_image').getThumbnail('Stoelting_division_bg') }}) ;">
<div class="container mt-5 mt-lg-5 mt-md-5">
<div class="row">
<div class="col-xl-10 offset-xl-1 offset-lg-0 col-lg-12 pb-3 pb-lg-3 pb-md-3">
<div class="d-flex align-items-center">
{% set anyMaze = 'any-maze' in document.getProperty('navigation_title') | lower %}
<div class="category-breadcrumb-image mr-3 mr-lg-3 mr-md-3">
{% if editmode %}
{{ pimcore_image('categoryBreadcrumbImage') }}
{% else %}
<img style="width:80px;" src="{{ pimcore_image('categoryBreadcrumbImage').getThumbnail('Stoelting_category_breadcrumb') }}" alt="{{ pimcore_image('categoryBreadcrumbImage').getAlt() }}">
{% endif %}
</div>
<h2 class="d-none d-md-inline font-weight-bold border-2 border-bottom border-indigo w-100 custom-bradcrumb-padding">
{% if editmode %}
{{ pimcore_input('categoryBreadcrumbHeading', {
placeholder: document.getProperty('navigation_title')
}) }}
{% elseif not pimcore_input('categoryBreadcrumbHeading').isEmpty() %}
{{ pimcore_input('categoryBreadcrumbHeading') }}
{% else %}
{{ document.getProperty('navigation_title') }}
{% endif %}
</h2>
<!--* ON MOBILE H3-->
<h3 class="d-inline d-md-none font-weight-bold border-2 border-bottom border-indigo w-100 custom-bradcrumb-padding">
{% if editmode %}
{{ pimcore_input('categoryBreadcrumbHeading--mobile', {
placeholder: document.getProperty('navigation_title')
}) }}
{% elseif not pimcore_input('categoryBreadcrumbHeading--mobile').isEmpty() %}
{{ pimcore_input('categoryBreadcrumbHeading--mobile') }}
{% else %}
{{ document.getProperty('navigation_title') }}
{% endif %}
</h3>
</div>
</div>
</div>
<div class="row mt-5 mt-lg-5 mt-md-5 stereotaxicCategoryPage-products">
<div class="col-xl-8 offset-xl-2">
<div class="row align-items-start">
{% set fallbackImage = asset('static/images/admin/empty_image.png') %}
{% for index, page in documents %}
{% set image = page['image'] ? page['image'].getThumbnail('Stoelting_neuroscience_circle') : fallbackImage %}
<!-- include subtemplate 'category-item.html.twig' -->
{% include "Components/category-item.html.twig" with page %}
{% endfor %}
</div>
</div>
</div>
</div>
</main>
{% endblock %}