templates/Nordinfo/Main/parts/cards-bottom.html.twig line 1

Open in your IDE?
  1. <ul class="lsNone mb-5">
  2.   {% if post.contact1 is not null %}
  3.     <li>
  4.       {% set description = null %}
  5.       {% if post.contact1.civilite == "Mr" %}
  6.       {% set description = "Conseiller départemental" %}{% else %}
  7.       {% set description = "Conseillère départementale" %}{% endif %}
  8.       {% include 'Nordinfo/Main/parts/card.html.twig' with {
  9.         'type' : 'contact',
  10.         'url' : path('contact_detail', {'slug': post.contact1.slug}),
  11.         'title' : post.contact1.firstName ~ ' ' ~ post.contact1.lastName,
  12.         'description' : description~' - '~post.contact1.shortDescription,
  13.         'img_src' : asset('upload/images/'~post.contact1.picture)
  14.       } %}
  15.     </li>
  16.   {% endif %}
  17.   {% if post.contact2 is not null %}
  18.     <li>
  19.       {% set description = null %}
  20.       {% if post.contact2.civilite == "Mr" %}
  21.       {% set description = "Conseiller départemental" %}{% else %}
  22.       {% set description = "Conseillère départementale" %}{% endif %}
  23.       {% include 'Nordinfo/Main/parts/card.html.twig' with {
  24.         'type' : 'contact',
  25.         'url' : path('contact_detail', {'slug': post.contact2.slug}),
  26.         'title' : post.contact2.firstName ~ ' ' ~ post.contact2.lastName,
  27.         'description' : description~' - '~post.contact2.shortDescription,
  28.         'img_src' : asset('upload/images/'~post.contact2.picture)
  29.       } %}
  30.     </li>
  31.   {% endif %}
  32.   {% if post.contact3 is not null %}
  33.     <li>
  34.       {% set description = null %}
  35.       {% if post.contact3.civilite == "Mr" %}
  36.       {% set description = "Conseiller départemental" %}{% else %}
  37.       {% set description = "Conseillère départementale" %}{% endif %}
  38.       {% include 'Nordinfo/Main/parts/card.html.twig' with {
  39.         'type' : 'contact',
  40.         'url' : path('contact_detail', {'slug': post.contact3.slug}),
  41.         'title' : post.contact3.firstName ~ ' ' ~ post.contact3.lastName,
  42.         'description' : description~' - '~post.contact3.shortDescription,
  43.         'img_src' : asset('upload/images/'~post.contact3.picture)
  44.       } %}
  45.     </li>
  46.   {% endif %}
  47.   {% if post.organisation1 is defined and post.organisation1 is not null %}
  48.     <li>
  49.       {% include 'Nordinfo/Main/parts/card.html.twig' with {
  50.         'type' : 'organisation',
  51.         'is_map' : post.affichageTypeMap,
  52.         'organization' : post.organisation1
  53.       } %}
  54.     </li>
  55.   {% endif %}
  56.   {% if post.organisation2 is defined and post.organisation2 is not null %}
  57.     <li>
  58.       {% include 'Nordinfo/Main/parts/card.html.twig' with {
  59.         'type' : 'organisation',
  60.         'is_map' : post.affichageTypeMap2,
  61.         'organization' : post.organisation2
  62.       } %}
  63.     </li>
  64.   {% endif %}
  65.   {% if post.organisation3 is defined and post.organisation3 is not null %}
  66.     <li>
  67.       {% include 'Nordinfo/Main/parts/card.html.twig' with {
  68.         'type' : 'organisation',
  69.         'is_map' : post.affichageTypeMap3,
  70.         'organization' : post.organisation3
  71.       } %}
  72.     </li>
  73.   {% endif %}
  74.   {% if post.organisation4 is defined and post.organisation4 is not null and post.type.type != 'event'%}
  75.     <li>
  76.       {% include 'Nordinfo/Main/parts/card.html.twig' with {
  77.         'type' : 'organisation',
  78.         'is_map' : true,
  79.         'organization' : post.organisation4,
  80.         'is_organization_4' : true
  81.       } %}
  82.     </li>
  83.   {% endif %}
  84.   {% if event_lieu is defined and event_lieu is not null %}
  85.     <li>
  86.       {% include 'Nordinfo/Main/parts/card.html.twig' with {
  87.         'type' : 'organisation',
  88.         'is_map' : true,
  89.         'organization' : event_lieu~', '~event_adresse,
  90.         'is_organization_4' : true
  91.       } %}
  92.     </li>
  93.   {% endif %}
  94.   {% if post.documentName1 is not null %}
  95.     <li>
  96.       {% include 'Nordinfo/Main/parts/card.html.twig' with {
  97.         'type' : 'resource',
  98.         'url' : asset('upload/documents/'~post.documentName1),
  99.         'title' : post.documentName1
  100.       } %}
  101.     </li>
  102.   {% endif %}
  103.   {% if post.documentName2 is not null %}
  104.     <li>
  105.       {% include 'Nordinfo/Main/parts/card.html.twig' with {
  106.         'type' : 'resource',
  107.         'url' : asset('upload/documents/'~post.documentName2),
  108.         'title' : post.documentName2
  109.       } %}
  110.     </li>
  111.   {% endif %}
  112.   {% if post.documentName3 is not null %}
  113.     <li>
  114.       {% include 'Nordinfo/Main/parts/card.html.twig' with {
  115.         'type' : 'resource',
  116.         'url' : asset('upload/documents/'~post.documentName3),
  117.         'title' : post.documentName3
  118.       } %}
  119.     </li>
  120.   {% endif %}
  121.   {% if post.link1 is not null %}
  122.     <li>
  123.       {% include 'Nordinfo/Main/parts/card.html.twig' with {
  124.         'type' : 'link-external',
  125.         'url' : post.url1,
  126.         'title' : post.link1
  127.       } %}
  128.     </li>
  129.   {% endif %}
  130.   {% if post.link2 is not null %}
  131.     <li>
  132.       {% include 'Nordinfo/Main/parts/card.html.twig' with {
  133.         'type' : 'link-external',
  134.         'url' : post.url2,
  135.         'title' : post.link2
  136.       } %}
  137.     </li>
  138.   {% endif %}
  139.   {% if post.link3 is not null %}
  140.     <li>
  141.       {% include 'Nordinfo/Main/parts/card.html.twig' with {
  142.         'type' : 'link-external',
  143.         'url' : post.url3,
  144.         'title' : post.link3
  145.       } %}
  146.     </li>
  147.   {% endif %}
  148. </ul>