{% extends 'front/layouts/base.html.twig' %}
{% block title %}
{{ metaTitle() ? metaTitle() : page.page_name }}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('app') }}
{{ encore_entry_link_tags('qui_sommes') }}
{{ encore_entry_link_tags('wh-page') }}
{{ encore_entry_link_tags('wma-page') }}
{% endblock %}
{% if page.classeBodyPage is defined %}
{% set classBody = page.classeBodyPage %}
{% endif %}
{% block body %}
{% set image_top = "" %}
{% set image_down = "" %}
{% set title_top = "" %}
{% set title_down = "" %}
{% for image in medias %}
{% for media in image %}
{% if media.type== constant('App\\Entity\\Medias\\Media::TYPE_MEDIA_COV') %}
{% set image_top = asset(uploads_directory ~ media.path ~ '/' ~ media.file) %}
{% set title_top = media.title %}
{% elseif media.type == constant('App\\Entity\\Medias\\Media::TYPE_MEDIA_STICKY') %}
{% set image_down = asset(uploads_directory ~ media.path ~ '/' ~ media.file) %}
{% set title_down = media.title %}
{% endif %}
{% endfor %}
{% endfor %}
{% if page.type_category is defined and page.type_category == constant('App\\Entity\\Pages\\PageCategory::TYPE_REFERENCS') %}
<h1>Etude de cas</h1>
<div class="container responsive-tabs">
<div class="cat-content">
<div class="all-categories">
<div class="row">
<div class="col-md-12 item-cat-touchscreen">
<div class="card all-card-big" style="position: relative;padding: 5%">
<a href="{{ path('front_page_category_show', {'slug': page.slug_category}) }}" class="btn btn-ref-retour" >{{ 'front.actions.back'|trans({}, 'front') }}</a>
<div class="box-img-cov">
<img src="{{ image_top }}" class="img-fluid card-img-big" alt="{{title_top}}"/>
<img src="{{ image_down}}" class="img-fluid img-cov-2 card-img-big" alt="{{title_down}}" />
</div>
{% for bloc in blocs %}
{% include "front/bloc/index.html.twig" %}
{% endfor %}
</div>
</div>
<div class="col-md-12 text-center">
{% if page.linkVisiterSite %}
<a class="btn btn-ref-details" href="{{page.linkVisiterSite}}" target="_blank">Visitez le site</a>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
{% else %}
{% for bloc in blocs %}
{% include "front/bloc/index.html.twig" %}
{% endfor %}
{% endif %}
{% if page.isContact == true %}
<section class="{{page.classeTitreContact}}">
{% include 'front/bloc/contact.html.twig' %}
</section>
{% endif %}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"name": "{{ page.page_name }}",
"url": "{{ url('front_page_show', {slug: page.slug}) }}",
"description": "{{ metaDescription() ? metaDescription() : page.description|striptags|raw }}"
}
</script>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% endblock %}