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

Open in your IDE?
  1. {% extends 'pageTemplateProducts.html.twig' %}
  2. {% block content %}
  3.     {% set productName = product.getName() %}
  4.     <div class="section">
  5.         <div class="has-background">
  6.             <div class="main-content flex-col">
  7.                 <div class="col xs-12 m-6">
  8.                     {% set galleryItems = product.getGallery().getItems() %}
  9.                     {% if(galleryItems|length > 0) %}
  10.                     <div class="product-item-image-wrapper slider slick-slider has-slider">
  11.                         {% else %}
  12.                         <div class="slider slick-slider">
  13.                             {% endif %}
  14.                             <div class="product-image-item">
  15.                                 {% set productDetailImage = product.getDetailViewRepresentationNew() |objectFallbackImage %}
  16.                                 {{ productDetailImage.getThumbnail("productImageDetail" ~bundleName).getHtml() |raw }}
  17.                             </div>
  18.                             {% if(product.getGallery) %}
  19.                                 {% for gallery in product.getGallery %}
  20.                                     {% if gallery != null %}
  21.                                         <div class="product-image-item">
  22.                                             {{ gallery.getImage().getThumbnail("productGalleryDetail" ~bundleName).getHtml() |raw }}
  23.                                         </div>
  24.                                     {% endif %}
  25.                                 {% endfor %}
  26.                             {% endif %}
  27.                         </div>
  28.                     </div>
  29.                     <div class="col xs-12 m-6">
  30.                         <div class="product-info-container text-only">
  31.                             <div class="product-title-container">
  32.                                 <h1>{{ productName |trademark }}</h1>
  33.                             </div>
  34.                             <div class="product-short-description-container">
  35.                                 <span class="no-padding">{{ product.getTextContentByType("shortTextRepresentation", document) | raw }}</span>
  36.                             </div>
  37.                         </div>
  38.                         {% if isProductFood %}
  39.                             <div class="sales-description-wrapper">
  40.                                 {{ product.getSalesDescription() }}
  41.                             </div>
  42.                             <div id="tabber-xyz" class="tabber" data-tab-type="default">
  43.                                 <ul class="tabs resp-tabs-list tab-id">
  44.                                     <li>{{ 'Nährwerte' |trans }}</li>
  45.                                     <li>{{ 'Zutaten' |trans }}</li>
  46.                                 </ul>
  47.                                 <div class="resp-tabs-container tab-id">
  48.                                     <div class="tab-content">
  49.                                         {% include 'Partials/NutritionFactsDefault.html.twig' %}
  50.                                     </div>
  51.                                     <div class="tab-content">
  52.                                         {% include 'Partials/IngredientsDefault.html.twig' %}
  53.                                     </div>
  54.                                 </div>
  55.                             </div>
  56.                         {% endif %}
  57.                     </div>
  58.                 </div>
  59.             </div>
  60.         </div>
  61.     </div>
  62.     {% if(isProductFood) %}
  63.         {% include 'Partials/FitsPerfectly.html.twig' %}
  64.     {% endif %}
  65.     {% if product.getLongTextRepresentation() is not empty %}
  66.         <div class="section">
  67.             <div class="main-content flex-col">
  68.                 <div class="col xs-12 m-6 l-8">
  69.                     <div class="text-only">
  70.                         <div class="text">
  71.                             <h4>{{ 'Produkt' |trans }}</h4>
  72.                             <span class="no-padding">{{ product.getTextContentByType("longTextRepresentation", document) | raw | trademark }}</span>
  73.                             <div class="product-additional-information">
  74.                                 {% if product.getWeight() %}
  75.                                     <div class="information-item">
  76.                                         <div>{{ 'Gewicht:' |trans }} </div>
  77.                                         <div>
  78.                                             <p>{{ product.getWeight() }} kg</p>
  79.                                         </div>
  80.                                     </div>
  81.                                 {% endif %}
  82.                                 {% if product.getWidth() and product.getHeight()and product.getDepth() %}
  83.                                     <div class="information-item">
  84.                                         <div>{{ 'Maße in cm (B/H/L):' |trans }} </div>
  85.                                         <div>
  86.                                             <p>{{ product.getWidth() }} / {{ product.getHeight() }} / {{ product.getDepth() }} </p>
  87.                                         </div>
  88.                                     </div>
  89.                                 {% endif %}
  90.                             </div>
  91.                         </div>
  92.                     </div>
  93.                 </div>
  94.                 {% set relatedProducts = product.getrelatedProducts %}
  95.                 {% if relatedProducts %}
  96.                     <div class="col xs-12 m-6 l-4">
  97.                         <div class="panel {% if relatedProducts|length > 1 %}has-slider{% endif %}">
  98.                             <div class="main-content flex-col">
  99.                                 {% if relatedProducts %}
  100.                                     {% include 'Partials/relatedProducts.html.twig' %}
  101.                                 {% endif %}
  102.                             </div>
  103.                         </div>
  104.                     </div>
  105.                 {% endif %}
  106.             </div>
  107.         </div>
  108.     {% endif %}
  109.     {#{% set relatedProducts = product.getrelatedProducts %}
  110.         {% if relatedProducts %}
  111.         {% if relatedProducts|length > 3 %}
  112.     <div class="section background pattern panel has-slider">
  113.         {% else %}
  114.         <div class="section background pattern panel">
  115.             {% endif %}
  116.             <div class="main-content flex-col box-align-center offset">
  117.                 {% if relatedProducts %}
  118.                     {% include 'Partials/relatedProducts.html.twig' %}
  119.                 {% endif %}
  120.             </div>
  121.         </div>
  122.         {% endif %}#}
  123. {% endblock %}