src/Develey/MautnerBundle/Resources/views/Product/showByArticleNumber.html.twig line 1

Open in your IDE?
  1. {% extends 'pageTemplateProducts.html.twig' %}
  2. {% block content %}
  3.     {% set productName = product.name %}
  4.     <div class="section">
  5.         <div class="product-container-top">
  6.             <div class="main-content flex-col box-center">
  7.                {% if prevProduct and nextProduct %}
  8.                 <div class="xs-12 flex-col product-nav">
  9.                     <div class="product-nav-left">
  10.                         {% set detailViewUriPrevProduct    = pimcore_url(
  11.                             {
  12.                                 "name": prevProduct.urlTitle,
  13.                                 "articlenumber": prevProduct.articleNumber,
  14.                                 "productCategoryId": productCategoryId
  15.                             },
  16.                             "shopHandlerProductDetailMautner"
  17.                             ) %}
  18.                         {% set detailViewUriNextProduct    = pimcore_url(
  19.                             {
  20.                                 "name": nextProduct.urlTitle,
  21.                                 "articlenumber": nextProduct.articleNumber,
  22.                                 "productCategoryId": productCategoryId
  23.                             },
  24.                             "shopHandlerProductDetailMautner"
  25.                             ) %}
  26.                         <a href="{{ detailViewUriPrevProduct}}">
  27.                             <span>{{ prevProduct.name|trademark }}</span>
  28.                             {% set prevProductImage = prevProduct.getDetailViewRepresentationNew() |objectFallbackImage %}
  29.                             {{ prevProductImage.getThumbnail("productDetailNavImage" ~ bundleName).getHtml() |raw }}
  30.                         </a>
  31.                     </div>
  32.                     <div class="product-nav-right">
  33.                         <a href="{{ detailViewUriNextProduct}}">
  34.                             <span>{{ nextProduct.name|trademark }}</span>
  35.                             {% set nextProductImage = nextProduct.getDetailViewRepresentationNew() |objectFallbackImage %}
  36.                             {{ nextProductImage.getThumbnail("productDetailNavImage" ~ bundleName).getHtml() |raw }}
  37.                         </a>
  38.                     </div>
  39.                 </div>
  40.                 {% endif %}
  41.                 <div class="xs-12 l-10 flex-col">
  42.                     <div class="col xs-12 m-6 image">
  43.                         {% set galleryItems = product.getGallery().getItems() %}
  44.                         {% if(galleryItems|length > 0) %}
  45.                         <div class="product-item-image-wrapper slider slick-slider has-slider">
  46.                             {% else %}
  47.                             <div class="slider slick-slider">
  48.                                 {% endif %}
  49.                                 <div class="product-image-item">
  50.                                     {% set productDetailImage = product.getDetailViewRepresentationNew() |objectFallbackImage %}
  51.                                     {{ productDetailImage.getThumbnail("productImageDetail" ~bundleName).getHtml() |raw }}
  52.                                 </div>
  53.                                 {% if(product.getGallery) %}
  54.                                     {% for gallery in product.getGallery %}
  55.                                         {% if gallery != null %}
  56.                                             <div class="product-image-item">
  57.                                                 {{ gallery.getImage().getThumbnail("productGalleryDetail" ~bundleName).getHtml() |raw }}
  58.                                             </div>
  59.                                         {% endif %}
  60.                                     {% endfor %}
  61.                                 {% endif %}
  62.                             </div>
  63.                         </div>
  64.                         <div class="col xs-12 m-6 text">
  65.                             <div class="product-info-container text-only">
  66.                                 <div class="product-short-description-container">
  67.                                     <span class="no-padding">{{ product.getTextContentByType("shortTextRepresentation", document) | raw }}</span>
  68.                                 </div>
  69.                                 <div class="product-title-container">
  70.                                     <h1>{{ productName |trademark }}</h1>
  71.                                 </div>
  72.                                 {% if variants %}
  73.                                     <div class="product-variation-container">
  74.                                         <ul class="product-variants">
  75.                                             {% for variant in variants %}
  76.                                                 <li {% if highlightedProductId == variant.getId %} class="active" {% endif %}>
  77.                                                     {% set detailViewUri    = pimcore_url(
  78.                                                     {
  79.                                                     "name": variant.getUrlTitle(),
  80.                                                     "articlenumber": variant.getArticleNumber(),
  81.                                                     "productCategoryId": productCategoryId
  82.                                                     },
  83.                                                     "shopHandlerProductDetailMautner"
  84.                                                     ) %}
  85.                                                     <a href="{{ detailViewUri }}">
  86.                                             <span class="product-variation-size">
  87.                                                 {{ variant.getVariantQualifier() }}
  88.                                             </span>
  89.                                                         <span class="product-variation-thumbnail">
  90.                                                 <img src="{{ variant.getProductImage().getThumbnail("productDetailImageVariants" ~bundleName) }}"
  91.                                                      alt="{% if variant.getProductImage().getMetadata() is not empty %}{{ variant.getProductImage().getMetadata().0.data }}{% else %}{{ productName }}{% endif %}"/>
  92.                                             </span>
  93.                                                     </a>
  94.                                                 </li>
  95.                                             {% endfor %}
  96.                                         </ul>
  97.                                     </div>
  98.                                 {% endif %}
  99.                                 <span class="no-padding">{{ product.getTextContentByType("longTextRepresentation", document) | raw | trademark }}</span>
  100.                             </div>
  101.                         </div>
  102.                     </div>
  103.                 </div>
  104.             </div>
  105.         </div>
  106.     </div>
  107. <div class="section">
  108.     <div class="text-image textpic-intext nowrap align-right">
  109.         <div class="main-content flex-col box-center">
  110.             <div class="xs-12 l-10 flex-col">
  111.                 <div class="col xs-12 m-6 text">
  112.                     {% if isProductFood %}
  113.                         <div id="tabber-xyz" class="tabber" data-tab-type="default">
  114.                             <ul class="tabs resp-tabs-list tab-id">
  115.                                 <li>{{ 'Nährwerte' |trans }}</li>
  116.                                 <li>{{ 'Zutaten' |trans }}</li>
  117.                             </ul>
  118.                             <div class="resp-tabs-container tab-id">
  119.                                 <div class="tab-content">
  120.                                     {% include 'Partials/NutritionFactsDefault.html.twig' %}
  121.                                 </div>
  122.                                 <div class="tab-content">
  123.                                     {% include 'Partials/IngredientsDefault.html.twig' %}
  124.                                 </div>
  125.                             </div>
  126.                         </div>
  127.                     {% endif %}
  128.                 </div>
  129.                 <div class="col xs-12 m-6 image">
  130.                     {% if product.getAdditionalImage() %}
  131.                         {{ product.getAdditionalImage().getThumbnail("textImage" ~ bundleName).getHtml()|raw }}
  132.                     {% endif %}
  133.                 </div>
  134.             </div>
  135.         </div>
  136.     </div>
  137. </div>
  138.     {% if product.getHeadlineTop %}
  139.         {% include 'Partials/StageSpecificProducts.html.twig' %}
  140.     {% endif %}
  141.     {% if(isProductFood) %}
  142.         {% include 'Partials/FitsPerfectly.html.twig' %}
  143.     {% endif %}
  144.     {% set relatedProducts = product.getrelatedProducts %}
  145.     {% if relatedProducts %}
  146.         {% include 'Partials/relatedProducts.html.twig' %}
  147.     {% endif %}
  148.     {% set magazineSelect = product.getMagazinSelect() %}
  149.     {% if magazineSelect is not empty %}
  150.         {% include 'Partials/relatedMagazines.html.twig' %}
  151.     {% endif %}
  152. {% endblock %}