templates/front/publicationDetail.html.twig line 1

Open in your IDE?
  1. {% set link = link|default %}
  2. <div class="bloc-white pax-40-sm pax-20 pay-55-md pay-30 h-100 d-flex flex-column position-relative {{ link ? "pointer" }}"
  3.      data-link>
  4.     <div>
  5.         {% set icons = [] %}
  6.         {% if phaseEvolutionsIcon and phaseEvolutions is defined and phaseEvolutions is not empty %}
  7.             {% for key, phaseEvolution in phaseEvolutions %}
  8.                 {% set phaseEvolutionFile = getPhaseEvolutionFile(phaseEvolution, null, publication.category) %}
  9.                 {% if phaseEvolutionFile %}
  10.                     {% set icons = icons|merge([{"src":phaseEvolutionFile,"title":phaseEvolution.title}]) %}
  11.                 {% endif %}
  12.             {% endfor %}
  13.         {% else %}
  14.             {% set publicationProductCategory = publication.category %}
  15.             {% if publicationProductCategory %}
  16.                 {% set icons = icons|merge([{"src":asset(vich_uploader_asset(publicationProductCategory, 'categoryIconFile')),"title":publicationProductCategory.title}]) %}
  17.             {% endif %}
  18.         {% endif %}
  19.         <div class="d-flex max--5 justify-content-center-sm">
  20.             {% for key, icon in icons %}
  21.                 <div class='max-5 position-relative'>
  22.                     <img src="{{ asset('assets/img/hexagone-big.svg') }}" alt="hexagone"
  23.                          class="he-60 {{ publication.category.position == "1" ? "hexagone-green" : (publication.category.position == "2" ? "hexagone-lightBlue") }} "/>
  24.                     <img src="{{ icon.src }}"
  25.                          alt="{{ icon.title }}"
  26.                          class="img-white zi-9 position-absolute t-0 b-0 he-35 h-auto l-0 r-0 m-auto img-white"/>
  27.                 </div>
  28.             {% endfor %}
  29.         </div>
  30.         {% if categoryTitle %}
  31.             <div class='c-9DC771 text-uppercase fs-13 fw-500 may-20 text-center text-sm-left'>
  32.                 {{ categoryTitle }}
  33.             </div>
  34.         {% endif %}
  35.     </div>
  36.     <div class="titlePublications">
  37.         <div class="text-center text-sm-left fw-400 fs-15 lh2-16 c-204A9A">
  38.             {{ author }} - ({{ date }})
  39.         </div>
  40.         <h4 class="text-center text-sm-left fw-600 fs-15 lh2-16 c-204A9A mat-0 mab-20">
  41.             <a href="{{ link|default("#") }}" class="c-204A9A c-204A9A-h tdl-underline-none-h"
  42.                     {% if link %}
  43.                         target="_blank"
  44.                     {% endif %}
  45.             >
  46.                 {{ title }}
  47.             </a>
  48.         </h4>
  49.     </div>
  50.     <div class='d-flex align-items-start fs-13 c-8E9094 font-italic {# position-absolute b-55-md b-30 #} titleRevue justify-content-center-sm text-center text-sm-left'>
  51.         <i class="fa-solid fa-book mar-5 position-relative t-5"></i>
  52.         {{ revue }}
  53.     </div>
  54. </div>