templates/app/base/breadcrumb.html.twig line 1

Open in your IDE?
  1. {% if group|default(0) %}
  2.     {% set taxon = group %}
  3.     {% set ancestors = taxon.ancestors|reverse %}
  4.     
  5.     {% for ancestor in ancestors %}
  6.         {% if ancestor.isRoot() %}
  7.             <span class="ct-blue pt-20 fs-{{ fontSize }} ff-os-light">
  8.                 <a href="{{ path('app_group_render_group', {'groupCode': ancestor.code}) }}" class="link-product ct-blue">
  9.                     {{ ancestor.name }}
  10.                 </a>
  11.                 /
  12.             </span>
  13.         {% else %}
  14.             <span class="ct-blue pt-20 fs-{{ fontSize }} ff-os-light">
  15.                 <a href="{{ path('app_group_render_group', {'groupCode': ancestor.code}) }}" class="link-product ct-blue">
  16.                     {{ ancestor.name }}
  17.                 </a>
  18.                 /
  19.             </span>
  20.         {% endif %}
  21.     {% endfor %}
  22.     {% if taxon.hasChildren() %}
  23.         <a href="{{ path('app_group_render_group', {'groupCode': taxon.code}) }}" class="link-product ct-blue">
  24.             <span class="ct-blue fs-{{ fontSize }} ff-os-bold">
  25.                 {{ taxon.name }}
  26.             </span>
  27.         </a>
  28.     {% else %}
  29.         <a href="{{ path('app_group_render_group_products', {'groupCode': taxon.code}) }}" class="link-product ct-blue">
  30.             <span class="ct-blue fs-{{ fontSize }} ff-os-bold">
  31.                 {{ taxon.name }}
  32.             </span>
  33.         </a>
  34.     {% endif %}
  35. {% endif %}