templates/front/theme1/bloc/liste-contacts.html.twig line 1

Open in your IDE?
  1. {% if content_bloc and param_contact != null and param_contact.actifCoordonnees == 1 %}
    <section class="coordonnees-contact">
        <div class="container-fluid wrapper">
             <div class="row justify-content-center mb-4 text-center">
            {% for contact in content_bloc %}
                {% if contact.actifcoordonneescontact == 1 %}
                    <div class="col-md-12"><h4 class="title wow">{{ contact.nomContact }}</h4></div>
                    <div class="col-md-4">
                     <p class="wow mb-1"><strong>Adresse :</strong></p>
                        <p class="wow">
                        {% if contact.lienMap is not empty %}<a href="{{ contact.lienMap }}" target="_blank" title="Google map">{% endif %}
                        {{ contact.adresse }} {{ contact.codePostal }} {{ contact.ville }} {{ contact.region }} {{ contact.pays }}
                        {% if contact.lienMap is not empty %}</a>{% endif %}
                        </p>
                    </div>
    
                    <div class="col-md-4">
                        {% if unserialize(contact.email) %}
                        <p class="wow mb-1"><strong>Email :</strong></p>
                            <p class="wow">
                            {% for itemEmail in unserialize(contact.email) %}
                                {% if loop.index is even %} - {% endif %}
                                <span class="info"><a href="mailto:{{itemEmail}}">{{itemEmail}}</a></span>
                            {% endfor %}
                            </p> 
                        {% endif %}
                    </div>
    
                    <div class="col-md-4">
                        {% if unserialize(contact.tel) %}
                        <p class="wow mb-1"><strong>Téléphone :</strong></p>
                            <p class="wow">
                            {% for itemTel in unserialize(contact.tel) %}
                                {% if loop.index is even %} - {% endif %}
                                <span class="info"><a href="tel:{{remove_non_numeric(itemTel)}}">{{itemTel}}</a></span> 
                            {% endfor %}
                            </p>
                        {% endif %}
                    </div>
                {% endif %}   
            {% endfor %}
            </div>
        </div>
    </section>
    {% endif %}