templates/Lenord/Main/parts/item-post.html.twig line 1

Open in your IDE?
  1. {% if type_template|default and type_template == 'evasion' %}
  2.   <a href="{{ url }}" class="itemPost --nordEvasion" title="{{ title }}" target="_blank">
  3.     <div class="__img">
  4.       <img src="{{ src_image }}" alt="">
  5.     </div>
  6.     <p class="__title"><span>{{ title }}</span></p>
  7.   </a>
  8. {% elseif type_template|default and type_template == 'services' %}
  9.   <a target='_blank' href="{{ url }}"
  10.      class="itemCardService" title="{{ title }}">
  11.     <p><span class="__text">{{ title }}</span>&nbsp;<span class="__icon-external">{{ source('svg/icons/icon-external.svg') }}</span></p>
  12.   </a>
  13. {% elseif type_template|default and type_template == 'epingle' %}
  14.   <a href="{% if app.request.getSchemeAndHttpHost() == 'https://lenord.spontaneit.fr' %}https://nordinfo.spontaneit.fr{% else %}https://info.lenord.fr{% endif %}/{{ post.slug }}" class="itemPost --nordInfo" title="{{ post.title }}" target="_blank">
  15.     <div class="__img">
  16.       <img src="{% if post.defautFil is defined and post.defautFil is same as(true) %}{{ post.illustrationfilName }}{% else %}{{ asset('upload/images/'~post.illustrationfilName) | imagine_filter('thumb') }}{% endif %}" alt="">
  17.     </div>
  18.     <p class="__title"><span>{{ post.title }}</span></p>
  19.   </a>
  20. {% else %}
  21.   <a href="{{ post.url }}" class="itemPost --nordInfo {% if post.type == 4 %}--video{% endif %}" title="{% if post.type == 4 %}VIDEO : {% endif %}{{ post.title }}" target="_blank">
  22.     <div class="__img">
  23.       <img src="{{ post.image }}" alt="">
  24.       {% if post.type == 4 %}
  25.         <span class="__icon-play">
  26.         {{ source('svg/icons/icon-play.svg') }}
  27.       </span>
  28.         <span class="__duration">{{ post.duration }}</span>
  29.       {% endif %}
  30.     </div>
  31.     <p class="__title"><span>{% if post.type == 4 %}VIDEO : {% endif %}{{ post.title }}</span></p>
  32.   </a>
  33. {% endif %}