custom/plugins/SchilderSysteme/src/Resources/views/storefront/page/content/product-detail.html.twig line 24

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {% block base_head %}
  3.     {% sw_include '@Storefront/storefront/page/product-detail/meta.html.twig' %}
  4. {% endblock %}
  5. {% block base_main_inner %}
  6.     <div class="container-main product-page">
  7.         {% block page_content %}
  8.             {% block cms_breadcrumb %}
  9.                 <div class="breadcrumb cms-breadcrumb container">
  10.                     {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  11.                         context: context,
  12.                         category: page.product.seoCategory
  13.                     } only %}
  14.                 </div>
  15.             {% endblock %}
  16.             {% block cms_content %}
  17.                 <div class="cms-page product-detail" itemscope itemtype="https://schema.org/Product">
  18.                     {% block page_content_blocks %}
  19.                         {% sw_include "@Storefront/storefront/page/content/detail.html.twig" with {'cmsPage': page.cmsPage} %}
  20.                     {% endblock %}
  21.                 </div>
  22.             {% endblock %}
  23.         {% endblock %}
  24.         {% block detail_page_sticky_nav %}
  25.             {% set categories=item.null %}
  26.             {% for item in page.header.navigation.tree %}
  27.                 {% if 'Leitsysteme' in item.category.name %}
  28.                     {% set categories=item.children %}
  29.                 {% endif %}
  30.             {% endfor %}
  31.             <div class="sticky-nav d-none d-sm-block">
  32.                 <div class="sticky-nav--headline">Taktile Leitsysteme!!</div>
  33.                 <ul class="sticky-nav--list">
  34.                     {% for item in categories %}
  35.                         <li class="nav-item"><a class="nav-item-link"
  36.                                                 href="{{ category_url(item.category) }}">{{ item.category.translated.name }}</a>
  37.                         </li>
  38.                         <!-- ul>
  39.                             {% for children in item.children %}
  40.                                 <li>
  41.                                     <a href="{{ category_url(children.category) }}">{{ children.category.translated.name }}</a>
  42.                                 </li>
  43.                             {% endfor %}
  44.                         </ul-->
  45.                     {% endfor %}
  46.                 </ul>
  47.             </div>
  48.             <div class="sticky-nav-overlay d-none d-sm-block"></div>
  49.         {% endblock %}
  50.     </div>
  51. {% endblock %}