views-view-fields--programme.html.twig 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {#
  2. /**
  3. * @file
  4. * Default view template to display all the fields in a row.
  5. *
  6. * Available variables:
  7. * - view: The view in use.
  8. * - fields: A list of fields, each one contains:
  9. * - content: The output of the field.
  10. * - raw: The raw data for the field, if it exists. This is NOT output safe.
  11. * - class: The safe class ID to use.
  12. * - handler: The Views field handler controlling this field.
  13. * - inline: Whether or not the field should be inline.
  14. * - wrapper_element: An HTML element for a wrapper.
  15. * - wrapper_attributes: List of attributes for wrapper element.
  16. * - separator: An optional separator that may appear before a field.
  17. * - label: The field's label text.
  18. * - label_element: An HTML element for a label wrapper.
  19. * - label_attributes: List of attributes for label wrapper.
  20. * - label_suffix: Colon after the label.
  21. * - element_type: An HTML element for the field content.
  22. * - element_attributes: List of attributes for HTML element for field content.
  23. * - has_label_colon: A boolean indicating whether to display a colon after
  24. * the label.
  25. * - element_type: An HTML element for the field content.
  26. * - element_attributes: List of attributes for HTML element for field content.
  27. * - row: The raw result from the query, with all data it fetched.
  28. *
  29. * @see template_preprocess_views_view_fields()
  30. *
  31. * @ingroup themeable
  32. */
  33. #}
  34. {# {% include 'themes/custom/popsu_colloque/template/components/thumbnails.html.twig' %} #}
  35. {% if fields.field_accessible.content == "1" %}
  36. <a href="{{fields.view_node.content}}">
  37. {% endif %}
  38. <figure class="__img">
  39. {{fields.field_image.content}}
  40. </figure>
  41. <div class="__wrap">
  42. <div class="d-flex">
  43. <time datetime="{{fields.field_heure_du_moment.content}}" class="__date mr-1">
  44. {{fields.field_heure_du_moment.content}}
  45. </time>
  46. {% if fields.field_type_de_moment.content %}
  47. <div class="type_moment">
  48. |{{ fields.field_type_de_moment.content }}
  49. </div>
  50. {% endif %}
  51. </div>
  52. <div class="__content {{fields.field_accessible.content}}">
  53. {{fields.title.content}}
  54. {% if fields.field_accessible.content == "1" %}
  55. {% else %}
  56. {{fields.field_role_de_l_intervenant.content}}
  57. {% endif %}
  58. </div>
  59. </div>
  60. {% if fields.field_accessible.content %}
  61. </a>
  62. {% endif %}