templates/front/theme1/landing-page/header.html.twig line 1

Open in your IDE?
  1. {% set target = ['','_top','_new','_self','_blank','_parent'] %}
    {% set iconesNavigation = theme_option.actificonesnavigation %}
    <header class="header-lp">
        <input name="menu-handler" id="menu-handler" type="checkbox">
        <div class="container-fluid wrapper">
            <div class="header-1 {% if not(menu_right) %} justify-content-md-between justify-content-center {% endif %}">
                <div class="logo">
                        <a href="{{app.request.schemeAndHttpHost ~ app.request.baseUrl}}" class="logo_h">
                            {% if parametre.imageheader is not empty %}
                                <img class="img-logo" src="{{asset('/uploads/images/'~ parametre.image)}}" alt="{{parametre.titre}}">
                                <img class="img-logo-home" src="{{asset('/uploads/images/'~ parametre.imageheader)}}" alt="{{parametre.titre}}">
                            {% else %}
                                <img src="{{asset('/uploads/images/'~ parametre.image)}}" alt="{{parametre.titre}}">
                            {% endif %}
                        </a> 
                </div>
                {% if menu_right %}
                    <div class="header-menu d-flex justify-content-end align-items-center">
                        {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/_navbar.html.twig')}}
                    </div>
                {% endif %}
    
                {% if getBlocService('btn_header_lp') and getBlocService('btn_header_lp').blocServiceItems %}
                    <div class="gp-button">
                        {% for key,item in getBlocService('btn_header_lp').blocServiceItems|filter(v => v.actif == true) %}
                            {% if item.typelien == 1 and key < 2 %}
                                <button class="text-center btn-back-pulse btn-header"  title="{{item.titrelien}}">
                                    {% if item.image %}<img src="{{asset(item.image)}}" class="ic-fixed d-block  mr-2" width="20" height="20" alt="{{item.titrelien}}">{% endif %}
                                    <span>{{item.titrelien}} </span>
                                </button>
                            {% elseif item.typelien == 2 and key < 2  %}
                                <button class="text-center btn-back-pulse btn-header" onclick="window.location.href = '{{slug_link_interne(item.lieninterne)}}';" title="{{item.titrelien}}">
                                    {% if item.image %}<img src="{{asset(item.image)}}" class="ic-fixed d-block mr-2" width="20" height="20" alt="{{item.titrelien}}">{% endif %}
                                    <span>{{item.titrelien}} </span>
                                </button>
                            {% elseif item.typelien == 3 and key < 2  %}
                                <button class="text-center btn-back-pulse btn-header" onclick="window.open('{{item.lienexterne}}','_blank');" title="{{item.titrelien}}">
                                    {% if item.image %}<img src="{{asset(item.image)}}" class="ic-fixed d-block mr-2"  width="20" height="20" alt="{{item.titrelien}}">{% endif %}
                                    <span>{{item.titrelien}} </span>
                                </button>
                            {% elseif item.typelien == 4 and key < 2  %}
                                <a class="text-center btn-back-pulse btn-header tel-header-lp-1 affiche-tel" href = "tel:{{remove_non_numeric(item.telephone)}}" title="{{item.titrelien}}" rel="nofollow" data-phone-number="{{remove_non_numeric(item.telephone)}}" data-tel="{{item.telephone}}">
                                    {% if item.image %}<img src="{{asset(item.image)}}" class="ic-fixed d-block mr-2" width="20" height="20" alt="{{item.titrelien}}">{% endif %} 
                                    <span>{{item.titrelien}} </span>
                                </a>
                                 {# <button class="text-center btn-back-pulse btn-header tel-header-lp-1 affiche-tel" data-phone-number="{{remove_non_numeric(item.telephone)}}" data-tel="{{item.telephone}}" title="{{item.titrelien}}">
                                    {% if item.image %}<img src="{{asset(item.image)}}" class="ic-fixed d-block mr-2" width="20" height="20" alt="{{item.titrelien}}">{% endif %}
                                    <span>{{item.titrelien}} </span>
                                </button> #}
                            {% endif %}
                        {% endfor %}
                    </div>
                {% endif %}
    
            </div>
        </div>
    
       {#  {% if getBlocService('btn_header_lp') and getBlocService('btn_header_lp').blocServiceItems[2] is defined %}
            {% set url = getBlocService('btn_header_lp').blocServiceItems[2] %}
                <div class="header-2">
                    <div class="info">
                        {% if url.typelien == 1  %}
                            <a href="#">
                                {% 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)}}">
                                {% 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">
                                {% 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:{{url.telephone}}" class="tel tel-header-2" 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>
                        {% endif %}                
                    </div>
                </div>
        {% endif %} #}
    
    </header>