{% extends 'base.html.twig' %}{% set activeMenu = "infos-pratiques" %}{% block title %}{{ structure.title|replace({ '<br>':'' }) }}{% endblock %}{% block stylesheets %} {{ parent() }} {% if structure.longitude and structure.latitude %} {{ encore_entry_link_tags('map') }} {% endif %}{% endblock %}{% block body %} <div class="titre"> <h1>{{ structure.title|raw }}</h1> {% if structure.subtitle %} <p class="subtitle mt-0">{{ structure.subtitle }}</p> {% endif %} </div> {% if is_granted('ROLE_EDITOR') %} {% set url = ea_url() .setController('App\\Controller\\Admin\\StructureCrudController') .setAction('edit') .setEntityId(structure.id) %} <p><a class="adm-link" href="{{ url }}" target="_blank">administrer la structure ({{ structure.id }})</a></p> {% endif %} <div class="row"> <div class="col"> {# <div class="date"> {{structure.createdAt|date("d/m/Y")}} </div> #} {% include 'media/postMedias.html.twig' with {'medias': structure.medias, 'mediasType': 'slides' } %} {% if structure.chapo|length > 5 %} <div class="chapo"> {{ structure.chapo|raw }} </div> {% endif %} {% set hideThumbnails = false %}{% for media in structure.medias|filter(media => media.role == "slide") %}{% set hideThumbnails = true %}{% endfor %}{# car icig ne veut pas de thumbnail s'il y a des slides #} {% if not hideThumbnails %}{% include 'media/postMedias.html.twig' with {'medias': structure.medias, 'mediasType': 'thumbnails' } %}{% endif %} <div class="contenu"> {% if is_granted('ROLE_SUPER_ADMIN') %}<strong>tmpOldIds: {{ structure.tmpOldIds|join(",") }}</strong><br><br>{% endif %} {{ structure.content|raw }} </div> {% include 'media/postMedias.html.twig' with {'medias': structure.medias, 'mediasType': 'documents' } %} </div> <div class="col-md-12 col-lg-3"> {% if structure.address or structure.website %} <h4>Coordonnées</h4> <p class="mb-3"> {% if structure.host %} {% set host = structure.host %} Accueilli par :<br> <a href="{{ path('showStructure', {id:host.id}) }}">{{ host.name }}</a><br> {% endif %} {% if structure.includer %} {% set includer = structure.includer %} Inclus dans :<br> <a href="{{ path('showStructure', {id:includer.id}) }}">{{ includer.name }}</a><br> {% endif %} {% if structure.address %} {% set coordonnees = structure.address %} {% if structure.postalCode %} {% set coordonnees = coordonnees ~ structure.postalCode %} {% set prefixTown = " " %} {% else %} {% set prefixTown = "" %} {% endif %} {% if structure.town %} {% set coordonnees = coordonnees ~ prefixTown ~ structure.town %} {% endif %} {% if structure.phone %} {% set coordonnees = coordonnees ~ "</br><em>Tel. : " ~ structure.phone ~ "</em>" %} {% endif %} {% if structure.email %} {% set coordonnees = coordonnees ~ "</br><a href=\"mailto:" ~ structure.email ~ "\" />" ~ structure.email ~ "</a>" %} {% endif %} <address> {{ coordonnees|raw }} </address> {% endif %} {% if structure.website %} <a href="{{ structure.website }}" target="_blank">{{ structure.website|replace({"http://": "", "https://": ""}) }}</a> {% endif %} </p> {% endif %} {% if structure.longitude and structure.latitude %} {% include 'common/mapElts.html.twig' %} {% endif %} </div> </div> <div class="row"> <div class="col"> {# {{ render(controller('App\\Controller\\StructureController:listSame', { 'id' : structure.id })) }} #} {% include 'common/seealso.html.twig' with {'entity': structure } %} <p> Une erreur ? Un complément à ajouter ? <a href="{{ path('contact') }}"><strong>Signalez-le nous !</strong></a> </p> <p> Vous souhaitez faire une autre recherche ? <a href="{{ path('themeList') }}">Faites une recherche par thème ou par mot-clé</a> </p> </div> </div>{% endblock %}{% block javascripts %} {{ parent() }} {% if structure.longitude and structure.latitude %} <script> var structureId = {{ structure.id }}; </script> {{ encore_entry_script_tags('map') }} {% endif %}{% endblock %}