custom/plugins/IeaMedical/src/Resources/views/storefront/block/cms-block-breadcrumb.html.twig line 1

Open in your IDE?
  1. {% block block_breadcrumb %}
  2.     {# hide the default breadcrumb if this content element placed in to page #}
  3.     <style type="text/css">
  4.         /*.container-main .breadcrumb:not(.cms-block-breadcrumb .breadcrumb) {*/
  5.         /*    display: none;*/
  6.         /*}*/
  7.     </style>
  8.     {% set category = page.header.navigation.active %}
  9.     {% set product = page.product.active %}
  10.     {% if product %}
  11.         <ul class="breadcrumbcustom">
  12.             {% for breadcrumb in category.translated['breadcrumb'] %}
  13.                 {% if breadcrumb == "Home" %}
  14.                     <li>
  15.                         <a href="/">{{ breadcrumb }}</a>>
  16.                     </li>
  17.                 {% else %}
  18.                     <li>
  19.                         <a href="/{{ breadcrumb|replace({'ä': "ae", "ö" : "oe", "ü" : "ue", "Ä" : "Ae", "Ö" : "Oe", "Ü" : "Ue", "ß" : "ss"}) }}/">{{ breadcrumb }}</a>>
  20.                     </li>
  21.                 {% endif %}
  22.                 {% if loop.last %}
  23.                     <li>
  24.                         <a> {{ page.product.translated.name }}</a>
  25.                     </li>
  26.                 {% endif %}
  27.             {% endfor %}
  28.         </ul>
  29.     {% else %}
  30.         {% if category %}
  31.             <ul class="breadcrumbcustom">
  32.                 {% for breadcrumb in category.translated['breadcrumb'] %}
  33.                     {% if breadcrumb == "Home" %}
  34.                         <li>
  35.                             <a href="/">{{ breadcrumb }}</a>>
  36.                         </li>
  37.                     {% else %}
  38.                         <li>
  39.                             <a href="/{{ breadcrumb|replace({'ä': "ae", "ö" : "oe", "ü" : "ue", "Ä" : "Ae", "Ö" : "Oe", "Ü" : "Ue", "ß" : "ss"}) }}/">{{ breadcrumb }}</a>
  40.                         </li>
  41.                     {% endif %}
  42.                 {% endfor %}
  43.             </ul>
  44.         {% endif %}
  45.     {% endif %}
  46. {% endblock %}