templates/front/front_shopping/nav_ariane.html.twig line 1

Open in your IDE?
  1. {% set cmptFil = 1 %}
  2. <nav aria-label="breadcrumb" class="sousMenuAriane d-flex justify-content-center align-items-center" itemscope
  3.      itemtype="http://schema.org/BreadcrumbList" style="top: 0;">
  4.     <ol class="breadcrumb p-0 m-0 top-0">
  5.         <li class="breadcrumb-item">
  6.             <a class="filAccueil" href="{{ websiteroot }}"></a>
  7.             <meta itemprop="position" content="{{ cmptFil }}"/>
  8.             {% set cmptFil = cmptFil+1 %}
  9.         </li>
  10.         <li class="breadcrumb-item active"
  11.             aria-current="page"
  12.             itemprop="itemListElement" itemscope
  13.             itemtype="http://schema.org/ListItem">
  14.             <a itemprop="item" href="/boutique">
  15.                 <span itemprop="name">{{ page.ptitreonglet|default(page.ptitre) }}</span>
  16.             </a>
  17.             <meta itemprop="position" content="{{ cmptFil }}"/>
  18.             {% set cmptFil = cmptFil+1 %}
  19.         </li>
  20.         {% if product is defined %}
  21.             <li class="breadcrumb-item">
  22.                 <a href="{{ path('front_shopping_fiche', {'prod_id': product.id, 'product_name': product.prodModel|replace({'/': '-'}) }) }}"
  23.                    itemprop="item">
  24.                     <span itemprop="name">{{ product.prodModel }}</span>
  25.                 </a>
  26.                 <meta itemprop="position" content="{{ cmptFil }}"/>
  27.                 {% set cmptFil = cmptFil+1 %}
  28.             </li>
  29.         {% endif %}
  30.     </ol>
  31. </nav>