{% extends 'base.html.twig' %}
{% trans_default_domain 'Page' %}
{% block title %}
{% set title = siteSettings.defaultTitle %}
{% if SEOPage is defined and SEOPage and SEOPage.metaTitle %}
{% set title = SEOPage.metaTitle %}
{% elseif page is defined and page %}
{% if page.metaTitle is not null %}
{% set title = page.metaTitle %}
{% else %}
{% set title = page.title ~ " - " ~ app.request.server.get('SITENAME') %}
{% endif %}
{% endif %}
{{ title }}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('pages') }}
<style>
:host,
:root {
--theme-color: {{ theme.color }};
--theme-color-light: {{ theme.color }}AA;
--theme-color-10: {{ theme.color }}1A;
--theme-color-50: {{ theme.color }}80;
}
</style>
{% endblock %}
{% block body %}
<div id="breadcrumbToPlace" class="container">
<div class="links">
<a href="{{ path('app_homepage') }}"><i class="fa-solid fa-house"></i></a>
<span> / </span>
<a href="#">{{ page.theme ? page.theme.name : 'Les publications'}}</a>
<span> / </span>
<span class="active theme-page">
{{ page.title }}
</span>
</div>
<div class="title">
<h1 class="titleTraitLeft">{{ page.title }}</h1>
</div>
</div>
<div id="content" class="container theme-page">
{% include "commons/sections.html.twig" with {'sections':page.sections, 'themePage': true} %}
{% include "commons/sidebar.html.twig" with {'page':page, 'themePage': true} %}
</div>
{% if page.quote %}
<div class="citation container">
<img src="{{ asset('/images/YEUX_CHOUETTE.png') }}" alt="yeux de chouette">
<p>{{ page.quote }}</p>
</div>
{% endif %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ encore_entry_script_tags('pages') }}
{% endblock %}