{% extends "front/"~ app.request.server.get('APP_THEME') ~"/base.html.twig" %}
{% block stylesheets %}
{{parent()}}
{% endblock %}
{% block body %}
<div class="page_cms pt-5">
<!-- Start Breadcrumb Area -->
<div class="breadcrumb-style-default">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="inner text-center">
<ol class="breadcrumb d-flex justify-content-center" itemscope itemtype="http://schema.org/BreadcrumbList">
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a href="{{path('index_page_home')}}" itemprop="item"><span itemprop="name">Accueil</span></a><meta itemprop="position" content="1" /></li>
<li class="breadcrumb-item active" aria-current="page" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><span itemprop="name">{{post.title}}</span><meta itemprop="position" content="2" /></li>
</ol>
<h1 class="page-title">{{post.title}}</h1>
</div>
</div>
</div>
</div>
</div>
<!-- End Breadcrumb Area -->
<div id ="plan_site" class="container-fluid mt-5">
<div class="container">
{# <div class="row gx-5 py-2">
<div class="col-md-12 header text-center">
<h1 class="titre-header">{{post.title}}</h1>
</div>
</div> #}
<div class="row py-2">
<div class="col-md-12">
{% if menu_principal is defined and menu_principal is not empty %}
<div class="panel panel-success mb-4">
<div class="panel-heading"><span class="panel-title">Menu principal</span></div>
<div class="panel-body">
<ul>
{% for key,menu in menu_principal %}
{% if menu.type == 'aucun' %}
{% set path_href = '#' %}
{% elseif menu.type == 'lien' %}
{% set path_href = menu.url %}
{% elseif menu.type == 'categorie' or menu.type == 'sous-categorie' or menu.type == 'Post' %}
{% set path_href = path('page',{slug:menu.slug}) %}
{% elseif menu.type == 'categorie-product' %}
{% set path_href = path('list_produit',{slug:menu.slug}) %}
{% elseif menu.type == 'list-faq' %}
{% set path_href = path('list_faq',{slug:menu.slug}) %}
{% elseif menu.type == 'plan-du-site'%}
{% set path_href = path('plan_du_site') %}
{% endif %}
<li><a href="{{path_href}}" title="{{menu.title}}" {% if menu.nofollow == true %}rel="nofollow"{% endif %} target="{{target[menu.target]}}" > > {{menu.title}}</a></li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
{% if categories_tree_list is defined and categories_tree_list is not empty %}
<div class="panel panel-success mb-4">
<div class="panel-heading"><span class="panel-title">Liste de catégories</span></div>
<div class="panel-body">
<ul>
{% for key,item in categories_tree_list %}
<li><a href="{{path('page',{slug:item.slug})}}" title="{{item.titre}}" > > {{item.titre}}</a></li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
{% if ListActualites is defined and ListActualites is not empty %}
<div class="panel panel-success mb-4">
<div class="panel-heading"><span class="panel-title">Liste des Actualités</span></div>
<div class="panel-body">
<ul>
{% for key,item in ListActualites %}
<li><a href="{{path('page',{slug:item.slug})}}" title="{{item.title}}" > > {{item.title}}</a></li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
{% if ListPostNosSolution is defined and ListPostNosSolution is not empty %}
<div class="panel panel-success mb-4">
<div class="panel-heading"><span class="panel-title">Nos solutions</span></div>
<div class="panel-body">
<ul>
{% for key,item in ListPostNosSolution %}
<li><a href="{{path('page',{slug:item.slug})}}" title="{{item.title}}" > > {{item.title}}</a></li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
{% if ListPostConseils is defined and ListPostConseils is not empty %}
<div class="panel panel-success mb-4">
<div class="panel-heading"><span class="panel-title">Nos conseils</span></div>
<div class="panel-body">
<ul>
{% for key,item in ListPostConseils %}
<li><a href="{{path('page',{slug:item.slug})}}" title="{{item.title}}" > > {{item.title}}</a></li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{# {{ render(controller('App\\Controller\\Front\\FunctionController::renderDefaultBloc',{ 'alias': 'mini-formulaire' })) }} #}
</div>
{{ render(controller('App\\Controller\\Front\\FunctionController::renderTemplateParametrable',{ 'id': 6 })) }}
{% endblock %}