custom/plugins/SchilderSysteme/src/Resources/views/storefront/page/content/index.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/content/index.html.twig' %}
  2.      {% block cms_breadcrumb %}
  3.          {% if page.header.navigation.active.level > 1 %}
  4.              <div class="cms-section-default boxed">
  5.                  <div class="cms-block-container">
  6.                      <div class="col-12">
  7.                          <div class="breadcrumb cms-breadcrumb container">
  8.                              {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  9.                                  context: context,
  10.                                  category: page.header.navigation.active
  11.                              } only %}
  12.                          </div>
  13.                      </div>
  14.                  </div>
  15.              </div>
  16.          {% endif %}
  17.      {% endblock %}
  18.   {% block cms_category_headline %}
  19.       {% if page.header.navigation.active.level > 1 %}
  20.           <div class="cms-section-default boxed">
  21.               <div class="cms-block-container">
  22.                   <div class="col-12">
  23.                       <h1 class="category-headline
  24. ">{{ page.header.navigation.active.translated.name }}</h1>
  25.                   </div>
  26.               </div>
  27.           </div>
  28.       {% endif %}
  29.   {% endblock %}
  30.             {% block cms_category_description %}
  31.                 {% if page.header.navigation.active.level > 1 %}
  32.                     {% set imgMediaId = page.header.navigation.active.customFields.custom_category_info_image %}
  33.                     {% set iconMediaId = page.header.navigation.active.customFields.custom_category_info_icon %}
  34.                     {% set description = page.header.navigation.active.customFields.custom_category_info_description %}
  35.                     {% set attribute_1 = page.header.navigation.active.customFields.custom_category_info_attribute_1 %}
  36.                     {% set attribute_2 = page.header.navigation.active.customFields.custom_category_info_attribute_2 %}
  37.                     {% set categoryColor = page.header.navigation.active.customFields.custom_category_info_color %}
  38.                     {% set isBoxHidden = page.header.navigation.active.customFields.custom_category_info_box_hide %}
  39.                     {% if imgMediaId %}
  40.                         {% set media = searchMedia([imgMediaId], context.context) %}
  41.                         {% set img = media.get(imgMediaId) %}
  42.                         {% if iconMediaId %}
  43.                             {% set mediaIcon = searchMedia([iconMediaId], context.context) %}
  44.                             {% set icon = mediaIcon.elements|first %}
  45.                         {% endif %}
  46.                         <div class="category-description-container cms-block-text-on-image col-12">
  47.                             <div class="cms-block bg-image">
  48.                                 <div class="d-flex">
  49.                                     <div class="category-square-name-wrapper {% if isBoxHidden %} d-none {% endif %}"
  50.                                          style="background-color: {{ categoryColor ? categoryColor : '#000000' }}">
  51.                                         <span class="category-name">{{ page.header.navigation.active.translated.name }}</span>
  52.                                     </div>
  53.                                     <img src="{{ img.url }}" class="cms-block-background media-mode--cover">
  54.                                 </div>
  55.                                 <div class="cms-block-container d-none">
  56.                                     <div class="category-description-wrapper d-flex flex-sm-column-reverse col-12 p-0">
  57.                                         <div class="d-flex flex-column flex-sm-row justify-content-between">
  58.                                             <span class="d-flex flex-column-reverse category-description">{{ description|striptags|raw }}</span>
  59.                                             <div class="d-flex">
  60.                                                 {% if iconMediaId %} <img class="category-icon"
  61.                                                                           src="{{ icon.url }}">{% endif %}
  62.                                                 <div class="category-description-attributes d-flex flex-column justify-content-end">
  63.                                                     <span class="attr attr-1">{{ attribute_1 }}</span>
  64.                                                     <span class="attr attr-2">{{ attribute_2 }}</span>
  65.                                                 </div>
  66.                                             </div>
  67.                                         </div>
  68.                                     </div>
  69.                                 </div>
  70.                             </div>
  71.                         </div>
  72.                     {% endif %}
  73.                 {% endif %}
  74.             {% endblock %}