{% extends "front/"~ app.request.server.get('APP_THEME') ~"/landing-page/base.html.twig" %}
{% block stylesheets %}
{{parent()}}
{% if custom_style is defined and custom_style is not empty %}
<style>
{{custom_style|raw}}
</style>
{% endif %}
{% endblock %}
{% block body %}
{% set titre_page = post.title %}
{% if post.imageBandeau %}
{% set imagebandeau = asset_image(post.imageBandeau,'medium',['files1920','files1920','files1200']) %}
{% else %}
{% set imagebandeau = '' %}
{% endif %}
{% if post.imagecouverture %}
{% set imagecouverture = asset_image(post.imagecouverture,'medium',['files1920','files1920','files1200']) %}
{% else %}
{% set imagecouverture = '' %}
{% endif %}
{% if imagebandeau != '' %}
<section class="image-bandeau text-center text-md-left">
<img class="lazyload" alt="{{post.imagebandeaualt is not empty ? post.imagebandeaualt : post.title}}" title="{{post.imagebandeaualt is not empty ? post.imagebandeaualt : post.title}}" src="{{imagebandeau}}" />
<div class="cnt-bandeau">
<div class="container-fluid wrapper">
<div class="row">
<div class="col-md-12">
<h1 class="page-title">{{post.title|raw}}</h1>
</div>
</div>
</div>
</div>
</section>
{% endif %}
{% if blocs is defined %}
{% for bloc in blocs.Bloc %}
{% if is_mobile() and bloc.mobile == true %}
{# Bloc form LP #}
{% if bloc.type == 'form' and bloc.form.identifier == 'form_lp' %}
<section class="section-bloc-form-lp position-relative py-5">
{% if imagecouverture != '' %}
<img class="bg-form-lp position-absolute" alt="{{post.title}}" title="{{post.title}}" src="{{imagecouverture}}" />
{% endif %}
<div class="cnt-bloc-form-lp h-100 d-flex flex-column justify-content-center">
<div class="container-fluid wrapper">
<div class="row content-form-lp position-relative align-items-center">
<div class="col-md-7 content-formulaire-left">
<h1 class="page-title">{{post.title|raw}}</h1>
{% if post.titleaffichage is not empty %}
<h2 class="sous-titre-lp">{{post.titleaffichage|raw}}</h2>
{% endif %}
{% if post.summary is not empty %}
<div class="label-prix">
<span>{{post.summary|raw}}</span>
</div>
{% endif %}
{% if post.content is not empty %}
<div class="texte-content">{{ContentChangeByMotCle(post.id,post.content)|raw}}</div>
{% endif %}
{% if post.typelien != 1 and post.titrelien != "" %}
{% if post.typelien == '4' %}
<div class="bouton-devis my-2">
<a href="tel:{{post.telephone}}" class="btn btn-cms py-3 px-5 mt-3 btn-plus">{{post.titrelien}}</a>
</div>
{% elseif post.typelien == '2' %}
<div class="bouton-devis my-2">
<a href="{{slug_link_interne(post.lieninterne)}}" class="btn btn-cms py-3 px-5 mt-3 btn-plus">{{post.titrelien}}</a>
</div>
{% elseif post.typelien == '3' %}
<div class="bouton-devis my-2">
<a href="{{post.lienexterne}}" target="_blank" class="btn btn-cms py-3 px-5 mt-3 btn-plus">{{post.titrelien}}</a>
</div>
{% endif %}
{% endif %}
{% if getBlocService('btn_header_lp') and getBlocService('btn_header_lp').blocServiceItems[2] is defined and getBlocService('btn_header_lp').blocServiceItems[2].actif %}
{% set url = getBlocService('btn_header_lp').blocServiceItems[2] %}
{% if url.typelien == 1 %}
<a href="#" class="btn-lp-footer">
{% 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-lp-footer d-none d-md-inline-block">
{% 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-lp-footer d-none d-md-inline-block">
{% 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 tel-bloc1-lp btn-lp-footer affiche-tel d-none d-md-inline-block" 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 class="tel tel-header-2 btn-lp-footer affiche-tel d-none d-md-inline-block" data-phone-number="{{remove_non_numeric(url.telephone)}}" data-tel="{{url.telephone}}" title="{{url.titrelien}}">
{% if url.image %}<img src="{{asset(url.image)}}" class="" width="20" height="20" alt="{{url.titrelien}}">{% endif %}
<span>{{url.titrelien}} </span>
</button> #}
{% endif %}
{% endif %}
</div>
{# <div class="col-md-5 content-formulaire-right d-none d-md-block">
{{ include('front/'~ app.request.server.get('APP_THEME') ~'/form/form_landing.html.twig',{
form: form,
formfields: formfields,
}, with_context = false)}}
</div> #}
</div>
</div>
</div>
</section>
{% else %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% endif %}
{% endif %}
{% if is_full_view() and is_mobile() == false and bloc.desktop == true %}
{# Bloc form LP #}
{% if bloc.type == 'form' and bloc.form.identifier == 'form_lp' %}
<section class="section-bloc-form-lp position-relative py-5">
{% if imagecouverture != '' %}
<img class="bg-form-lp position-absolute" alt="{{post.title}}" title="{{post.title}}" src="{{imagecouverture}}" />
{% endif %}
<div class="cnt-bloc-form-lp h-100 d-flex flex-column justify-content-center">
<div class="container-fluid wrapper">
<div class="row content-form-lp position-relative align-items-center">
<div class="col-md-7 content-formulaire-left">
<h1 class="page-title">{{post.title|raw}}</h1>
{% if post.titleaffichage is not empty %}
<h2 class="sous-titre-lp">{{post.titleaffichage|raw}}</h2>
{% endif %}
{% if post.summary is not empty %}
<div class="label-prix">
<span>{{post.summary|raw}}</span>
</div>
{% endif %}
{% if post.content is not empty %}
<div class="texte-content">{{ContentChangeByMotCle(post.id,post.content)|raw}}</div>
{% endif %}
{% if post.typelien != 1 and post.titrelien != "" %}
{% if post.typelien == '4' %}
<div class="bouton-devis my-2">
<a href="tel:{{post.telephone}}" class="btn btn-cms py-3 px-5 mt-3 btn-plus">{{post.titrelien}}</a>
</div>
{% elseif post.typelien == '2' %}
<div class="bouton-devis my-2">
<a href="{{slug_link_interne(post.lieninterne)}}" class="btn btn-cms py-3 px-5 mt-3 btn-plus">{{post.titrelien}}</a>
</div>
{% elseif post.typelien == '3' %}
<div class="bouton-devis my-2">
<a href="{{post.lienexterne}}" target="_blank" class="btn btn-cms py-3 px-5 mt-3 btn-plus">{{post.titrelien}}</a>
</div>
{% endif %}
{% endif %}
{% if getBlocService('btn_header_lp') and getBlocService('btn_header_lp').blocServiceItems[2] is defined and getBlocService('btn_header_lp').blocServiceItems[2].actif %}
{% set url = getBlocService('btn_header_lp').blocServiceItems[2] %}
{% if url.typelien == 1 %}
<a href="#" class="btn-lp-footer">
{% 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-lp-footer d-none d-md-inline-block">
{% 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-lp-footer d-none d-md-inline-block">
{% 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 tel-bloc2-lp affiche-tel btn-lp-footer d-none d-md-inline-block" 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 class="tel tel-header-2 btn-lp-footer affiche-tel d-none d-md-inline-block" data-phone-number="{{remove_non_numeric(url.telephone)}}" data-tel="{{url.telephone}}" title="{{url.titrelien}}">
{% if url.image %}<img src="{{asset(url.image)}}" class="" width="20" height="20" alt="{{url.titrelien}}">{% endif %}
<span>{{url.titrelien}} </span>
</button> #}
{% endif %}
{% endif %}
</div>
<div class="col-md-5 content-formulaire-right d-none d-md-block">
{{ include('front/'~ app.request.server.get('APP_THEME') ~'/form/form_landing.html.twig',{
form: form,
formfields: formfields,
}, with_context = false)}}
</div>
</div>
</div>
</div>
</section>
{% else %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endblock %}