templates/front/theme1/partials/footer/modeles/_footer2.html.twig line 1

Open in your IDE?
  1. <footer class="footer2 {{class_btn_sticky_mobile}}">
        {% if BannerPublicite() is not empty and BannerPublicite().position != 1 and (BannerPublicite().titre != '' or BannerPublicite().text  != '') %}
            {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/footer/elements/_banniere_pub_footer.html.twig')}}
        {% endif %}
    
        <section itemscope="" class="top-footer">
            <div class="container-fluid wrapper">
                {% if logoPosition == 3 %}
                    <div class="text-center logo-center">
                        {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/footer/elements/_logo_footer.html.twig')}} 
                    </div>
                {% endif %}
    
                {# Boutons sticky mobile #}
                {% if (getBlocService('btn_sticky_mobile') and getBlocService('btn_sticky_mobile').blocServiceItems[0] is defined and getBlocService('btn_sticky_mobile').blocServiceItems[0].actif) or (getBlocService('btn_sticky_mobile') and getBlocService('btn_sticky_mobile').blocServiceItems[1] is defined and getBlocService('btn_sticky_mobile').blocServiceItems[1].actif) %}
    
                    <div class="boutons-sticky-mobile d-md-none">
    
                        {% if getBlocService('btn_sticky_mobile') and getBlocService('btn_sticky_mobile').blocServiceItems[0] is defined and getBlocService('btn_sticky_mobile').blocServiceItems[0].actif %}
                            {% set url = getBlocService('btn_sticky_mobile').blocServiceItems[0] %}
    
                                {% if url.typelien == 1  %}
                                    <a href="#" class="btn-sticky-mobile">
                                        {% if url.image %}
                                            <img src="{{asset(url.image)}}" class="" width="40" alt="{{url.titrelien}}">
                                        {% endif %}
                                        <div>{{url.titrelien}} </div>
                                    </a>
                                {% elseif url.typelien == 2  %}
                                    <a href="{{slug_link_interne(url.lieninterne)}}" class="btn-sticky-mobile">
                                        {% if url.image %}
                                            <img src="{{asset(url.image)}}" class="" width="40" alt="{{url.titrelien}}">
                                        {% endif %}
                                        <div>{{url.titrelien}} </div>
                                    </a>
                                {% elseif url.typelien == 3   %}
                                    <a href="{{url.lienexterne}}" target="_blank" class="btn-sticky-mobile">
                                        {% if url.image %}
                                            <img src="{{asset(url.image)}}" class="" width="40" alt="{{url.titrelien}}">
                                        {% endif %}
                                        <div>{{url.titrelien}} </div>
                                    </a>
                                {% elseif url.typelien == 4   %}
                                    <a href="tel:{{remove_non_numeric(url.telephone)}}" class="tel btn-sticky-mobile tel-footer-lp-1 affiche-tel" rel="nofollow" data-phone-number="{{remove_non_numeric(url.telephone)}}">
                                        {% if url.image %}
                                            <img src="{{asset(url.image)}}" class="" width="40" alt="{{url.titrelien}}">
                                        {% endif %}
                                        <div>{{url.titrelien}} </div>
                                    </a>
                                    {# <button onclick="window.location.href = 'tel:{{url.telephone}}'" class="tel tel-footer-lp-1 btn-sticky-mobile" rel="nofollow" data-phone-number="{{remove_non_numeric(url.telephone)}}">
                                        {% if url.image %}
                                            <img src="{{asset(url.image)}}" class="" width="40" alt="{{url.titrelien}}">
                                        {% endif %}
                                        <div>{{url.titrelien}} </div>
                                    </button> #}
                                {% endif %}                
                                    
                        {% endif %}
    
                        {% if getBlocService('btn_sticky_mobile') and getBlocService('btn_sticky_mobile').blocServiceItems[1] is defined and getBlocService('btn_sticky_mobile').blocServiceItems[1].actif %}
                            {% set url = getBlocService('btn_sticky_mobile').blocServiceItems[1] %}
                                
                                {% if url.typelien == 1  %}
                                    <a href="#" class="btn-sticky-mobile">
                                        {% if url.image %}
                                            <img src="{{asset(url.image)}}" class="" width="40" alt="{{url.titrelien}}">
                                        {% endif %}
                                        <span>{{url.titrelien}} </span>
                                    </a>
                                {% elseif url.typelien == 2  %}
                                    <a href="{{slug_link_interne(url.lieninterne)}}" class="btn-sticky-mobile">
                                        {% if url.image %}
                                            <img src="{{asset(url.image)}}" class="" width="40" alt="{{url.titrelien}}">
                                        {% endif %}
                                        <span>{{url.titrelien}} </span>
                                    </a>
                                {% elseif url.typelien == 3   %}
                                    <a href="{{url.lienexterne}}" target="_blank" class="btn-sticky-mobile">
                                        {% if url.image %}
                                            <img src="{{asset(url.image)}}" class="" width="40" alt="{{url.titrelien}}">
                                        {% endif %}
                                        <span>{{url.titrelien}} </span>
                                    </a>
                                {% elseif url.typelien == 4   %}
                                    <a href="tel:{{remove_non_numeric(url.telephone)}}" class="tel btn-sticky-mobile tel-footer-lp-2 affiche-tel" rel="nofollow" data-phone-number="{{remove_non_numeric(url.telephone)}}">
                                        {% if url.image %}
                                            <img src="{{asset(url.image)}}" class="" width="40" alt="{{url.titrelien}}">
                                        {% endif %}
                                        <span>{{url.titrelien}} </span>
                                    </a>
                                    {# <button onclick="window.location.href = 'tel:{{url.telephone}}'" class="tel tel-footer-lp-2 btn-sticky-mobile" rel="nofollow" data-phone-number="{{remove_non_numeric(url.telephone)}}">
                                        {% if url.image %}
                                            <img src="{{asset(url.image)}}" class="" width="40" alt="{{url.titrelien}}">
                                        {% endif %}
                                        <div>{{url.titrelien}} </div>
                                    </button> #}
                                {% endif %}                
                                    
                        {% endif %}
    
                    </div>
    
                {% endif %}
                {# fin Boutons sticky mobile #}
                
                <div class="items-top d-flex justify-content-center {% if nbrContactsInput == 1 %} justify-content-xl-between {% endif %} flex-wrap text-xl-left text-center align-items-center flex-column flex-xl-row">
                    {% if logoPosition == 1 %}
                        {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/footer/elements/_logo_footer.html.twig')}} 
                    {% endif %}
    
                    {% if nbrContactsInput == 1 %}
                        <div class="info_contact d-flex flex-column text-center text-xl-left mb-3 mb-xl-0">
                    {% endif %}
    
                        {% for contactItem in contacts %}
                            {% set nbContact = loop.index %}
                            {% if nbContact <= nbrContactsInput %}
                                {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/footer/elements/_coordonnees2_contact.html.twig')}}
                            {% endif %}
                        {% endfor %}
    
                    {% if nbrContactsInput == 1 %}
                        </div>
                    {% endif %}
    
                    {% if parametre.liencarte and codeqrFooter %}
                        <div class="item-top">
                            <img src="{{ qr_code_url(parametre.liencarte) }}" class="img-qrcode" width="100" height="100" loading="lazy"/>
                        </div>
                    {% endif %}
    
                    {% if contacts and texteFooter %}      
                        <div class="item-top">
                            {% for contact in contacts %}
                                {% if contact.texteContact %}
                                    <div class="footer_right">
                                        {{contact.texteContact|raw}}
                                    </div>
                                {% endif %}
                            {% endfor %}
                        </div>
                    {% endif %}  
                    {% if social is not empty and socialFooter %}
                        {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/footer/elements/_social_network.html.twig')}}
                    {% endif %}
    
                    {% if button1Footer %}
                        {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/_stiky_button.html.twig', with_context = false)}}
                    {% endif %}
    
                    {% if logoPosition == 2 %}
                        {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/footer/elements/_logo_footer.html.twig')}} 
                    {% endif %}
                
                </div>
            </div>
        </section>
    
        <section class="sub-footer"> 
            <div class="container-fluid wrapper">
                    {% if data_menu_footer is defined and data_menu_footer is not empty %}
                        <div class="d-flex sous-menu-footer flex-md-row justify-content-center">
                            {% if data_menu_footer %}
                                {% for key,menu in data_menu_footer %}
                                        <a href="{{menu.path}}" title="{{menu.title}}" {% if menu.nofollow == true %}rel="nofollow"{% endif %} target="{{target[menu.target]}}">{{menu.title}} </a> 
                                {% endfor %}
                            {% endif %}
                        </div>
                    {% endif %}
                <div class="items-sub-footer d-flex justify-content-center align-items-center flex-column flex-md-row">
                    <ul id="footer_bottom" class="link-hover d-flex justify-content-center justify-content-md-center flex-column flex-md-row liststyle text-center">
                        {% if menus %}
                            {% for key,menu in menus %}
                                    <li><a href="{{menu.path}}" title="{{menu.title}}" {% if menu.nofollow == true %}rel="nofollow"{% endif %} target="{{target[menu.target]}}">{{menu.title}} </a></li>
                            {% endfor %}
                        {% endif %}
                        <li> <a class="titre_cookies" href="javascript:void(0)" title="{{ 'label.titre_cookie'|trans({} , 'textes' ) }}" rel="nofollow" onclick="tarteaucitron.userInterface.openPanel();">{{ 'label.titre_cookie'|trans({} , 'textes' ) }}</a></li>
                    </ul>
                    {% if logoCopyright or dateCopyright %}
                        <span class="col-copyright d-flex align-items-center">
                        {% if logoCopyright %}
                            <span class="logo-copyright"><a href="https://www.hrz.fr" target="_blank" title="Horizon web"><img src="/public/logo-horizon/logo-bleu.png" width="30" height="14" class="d-block mb-1" alt="Horizon web" loading="lazy" /></a></span>
                        {% endif %}
                        {% if dateCopyright %}
                            <span class="annee ml-1"><strong>{{ "now"|date("Y") }}</strong></span>
                        {% endif %}
                        </span>
                    {% endif %}
                    
                </div>
            </div>
        </section>
    </footer>