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

Open in your IDE?
  1. {% set cmptFil = 1 %}
  2. <nav aria-label="breadcrumb" class="d-flex justify-content-center navFiche" itemscope
  3.      itemtype="http://schema.org/BreadcrumbList">
  4.     <ol class="breadcrumb blocfichenav m-0">
  5.         <li class="breadcrumb-item" itemprop="itemListElement"
  6.             itemscope itemtype="http://schema.org/ListItem">
  7.             <a href="{{ websiteroot }}"
  8.                itemprop="item" class="filAccueil">
  9.             </a>
  10.             <meta itemprop="position" content="{{ cmptFil }}"/>
  11.             {% set cmptFil = cmptFil+1 %}
  12.         </li>
  13.         {% for fil in fileAriane %}
  14.             <li class="breadcrumb-item" itemprop="itemListElement"
  15.                 itemscope itemtype="http://schema.org/ListItem">
  16.                 <a href="{{ url('front_page',{'name': fil.permalien}) }}"
  17.                    itemprop="item">
  18.                     <span itemprop="name">{{ fil.ptitre }}</span>
  19.                 </a>
  20.                 <meta itemprop="position" content="{{ cmptFil }}"/>
  21.                 {% set cmptFil = cmptFil+1 %}
  22.             </li>
  23.         {% endfor %}
  24.         <li class="breadcrumb-item{% if catEnCours is not defined and actualite is not defined %} active{% endif %}"
  25.             {% if catEnCours is not defined and actualite is not defined %}aria-current="page"{% endif %}
  26.             itemprop="itemListElement" itemscope
  27.             itemtype="http://schema.org/ListItem">
  28.             <a itemprop="item" href="{{ path('front_news') }}">
  29.                 <span itemprop="name">{{ page.ptitreonglet|default(page.ptitre) }}</span>
  30.             </a>
  31.             <meta itemprop="position" content="{{ cmptFil }}"/>
  32.             {% set cmptFil = cmptFil+1 %}
  33.         </li>
  34.         {% if catEnCours is defined %}
  35.             {% for cat in  categories %}
  36.                 {% if cat.id == catEnCours %}
  37.                     <li class="breadcrumb-item {% if catEnCours is not defined and actualite is not defined %} active{% endif %}"
  38.                         {% if catEnCours is not defined and actualite is not defined %}aria-current="page"{% endif %}
  39.                         itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
  40.                         <a itemprop="item" href="{{ path('front_news', {categorie:catEnCours}) }}">
  41.                             <span itemprop="name">{{ cat.actCatIntitule }}</span>
  42.                         </a>
  43.                         <meta itemprop="position" content="{{ cmptFil }}"/>
  44.                         {% set cmptFil = cmptFil+1 %}
  45.                     </li>
  46.                 {% endif %}
  47.             {% endfor %}
  48.         {% endif %}
  49.         {% if actualite is defined %}
  50.             <li class="breadcrumb-item" aria-current="page" itemprop="itemListElement" itemscope
  51.                 itemtype="http://schema.org/ListItem">
  52.                 <a itemprop="item" href="{{ path('front_news_card', {id:actualite.id}) }}"><span
  53.                             itemprop="name">{{ actualite.actTitre }}</span></a>
  54.                 <meta itemprop="position" content="{{ cmptFil }}"/>
  55.                 {% set cmptFil = cmptFil+1 %}
  56.             </li>
  57.         {% endif %}
  58.     </ol>
  59.     <img class="noFadeInUp fichenavLogo" id="BigTitlepeint"
  60.          src="{{ websiteroot }}{{ asset('/medias_front/common/logo_page.svg') }}"
  61.          alt="Logo Thermes de cauterets">
  62. </nav>