{% extends 'pageTemplateProducts.html.twig' %}
{% block content %}
{% set productName = product.getName() %}
<div class="section">
<div class="has-background">
<div class="main-content flex-col">
<div class="col xs-12 m-6">
{% set galleryItems = product.getGallery().getItems() %}
{% if(galleryItems|length > 0) %}
<div class="product-item-image-wrapper slider slick-slider has-slider">
{% else %}
<div class="slider slick-slider">
{% endif %}
<div class="product-image-item">
{% set productDetailImage = product.getDetailViewRepresentationNew() |objectFallbackImage %}
{{ productDetailImage.getThumbnail("productImageDetail" ~bundleName).getHtml() |raw }}
</div>
{% if(product.getGallery) %}
{% for gallery in product.getGallery %}
{% if gallery != null %}
<div class="product-image-item">
{{ gallery.getImage().getThumbnail("productGalleryDetail" ~bundleName).getHtml() |raw }}
</div>
{% endif %}
{% endfor %}
{% endif %}
</div>
</div>
<div class="col xs-12 m-6">
<div class="product-info-container text-only">
<div class="product-title-container">
<h1>{{ productName |trademark }}</h1>
</div>
<div class="product-short-description-container">
<span class="no-padding">{{ product.getTextContentByType("shortTextRepresentation", document) | raw }}</span>
</div>
</div>
{% if isProductFood %}
<div class="sales-description-wrapper">
{{ product.getSalesDescription() }}
</div>
<div id="tabber-xyz" class="tabber" data-tab-type="default">
<ul class="tabs resp-tabs-list tab-id">
<li>{{ 'Nährwerte' |trans }}</li>
<li>{{ 'Zutaten' |trans }}</li>
</ul>
<div class="resp-tabs-container tab-id">
<div class="tab-content">
{% include 'Partials/NutritionFactsDefault.html.twig' %}
</div>
<div class="tab-content">
{% include 'Partials/IngredientsDefault.html.twig' %}
</div>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% if(isProductFood) %}
{% include 'Partials/FitsPerfectly.html.twig' %}
{% endif %}
{% if product.getLongTextRepresentation() is not empty %}
<div class="section">
<div class="main-content flex-col">
<div class="col xs-12 m-6 l-8">
<div class="text-only">
<div class="text">
<h4>{{ 'Produkt' |trans }}</h4>
<span class="no-padding">{{ product.getTextContentByType("longTextRepresentation", document) | raw | trademark }}</span>
<div class="product-additional-information">
{% if product.getWeight() %}
<div class="information-item">
<div>{{ 'Gewicht:' |trans }} </div>
<div>
<p>{{ product.getWeight() }} kg</p>
</div>
</div>
{% endif %}
{% if product.getWidth() and product.getHeight()and product.getDepth() %}
<div class="information-item">
<div>{{ 'Maße in cm (B/H/L):' |trans }} </div>
<div>
<p>{{ product.getWidth() }} / {{ product.getHeight() }} / {{ product.getDepth() }} </p>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% set relatedProducts = product.getrelatedProducts %}
{% if relatedProducts %}
<div class="col xs-12 m-6 l-4">
<div class="panel {% if relatedProducts|length > 1 %}has-slider{% endif %}">
<div class="main-content flex-col">
{% if relatedProducts %}
{% include 'Partials/relatedProducts.html.twig' %}
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endif %}
{#{% set relatedProducts = product.getrelatedProducts %}
{% if relatedProducts %}
{% if relatedProducts|length > 3 %}
<div class="section background pattern panel has-slider">
{% else %}
<div class="section background pattern panel">
{% endif %}
<div class="main-content flex-col box-align-center offset">
{% if relatedProducts %}
{% include 'Partials/relatedProducts.html.twig' %}
{% endif %}
</div>
</div>
{% endif %}#}
{% endblock %}