<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* front/theme1/page_cms.html.twig */
class __TwigTemplate_45456ff6d08d383431eb6e409253acd5 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'preload' => [$this, 'block_preload'],
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate((("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1, $this->source); })()), "request", [], "any", false, false, false, 1), "server", [], "any", false, false, false, 1), "get", [0 => "APP_THEME"], "method", false, false, false, 1)) . "/base.html.twig"), "front/theme1/page_cms.html.twig", 1);
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/page_cms.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/page_cms.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_preload($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "preload"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "preload"));
// line 4
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["post"] ?? null), "image", [], "any", true, true, false, 4) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 4, $this->source); })()), "image", [], "any", false, false, false, 4)))) {
// line 5
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 5, $this->source); })()), "image", [], "any", false, false, false, 5)) {
// line 6
echo " <link rel=\"preload\" as=\"image\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 6, $this->source); })()), "image", [], "any", false, false, false, 6)), "html", null, true);
echo "\" />
";
}
// line 8
echo " ";
}
// line 9
echo "
";
// line 10
if ((array_key_exists("galleries", $context) && !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 10, $this->source); })())))) {
// line 11
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 11, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 12
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "path", [], "any", true, true, false, 12)) {
// line 13
echo " <link rel=\"preload\" as=\"image\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageGalleryFunction(twig_get_attribute($this->env, $this->source, $context["item"], "path", [], "any", false, false, false, 13)), "html", null, true);
echo "\" />
";
}
// line 15
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 16
echo " ";
}
// line 17
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 20
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 21
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
// line 22
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["modele_galerie"]) || array_key_exists("modele_galerie", $context) ? $context["modele_galerie"] : (function () { throw new RuntimeError('Variable "modele_galerie" does not exist.', 22, $this->source); })()), 0, [], "array", false, false, false, 22), "type", [], "any", false, false, false, 22) == 4)) {
// line 23
echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("templates/front/theme1/assets/plugins/flexslider/flexslider.css"), "html", null, true);
echo "\" media=\"screen\" >
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 27
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 28
echo "
";
// line 29
if (twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 29, $this->source); })()), "imageBandeau", [], "any", false, false, false, 29)) {
// line 30
echo " ";
$context["imagebandeau"] = twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 30, $this->source); })()), "imageBandeau", [], "any", false, false, false, 30);
// line 31
echo " ";
} elseif (twig_get_attribute($this->env, $this->source, (isset($context["parametre"]) || array_key_exists("parametre", $context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.', 31, $this->source); })()), "imageBandeau", [], "any", false, false, false, 31)) {
// line 32
echo " ";
$context["imagebandeau"] = ("uploads/images/" . twig_get_attribute($this->env, $this->source, (isset($context["parametre"]) || array_key_exists("parametre", $context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.', 32, $this->source); })()), "imageBandeau", [], "any", false, false, false, 32));
// line 33
echo " ";
} else {
// line 34
echo " ";
$context["imagebandeau"] = "";
// line 35
echo " ";
}
// line 36
echo "
";
// line 37
if (((isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 37, $this->source); })()) != "")) {
// line 38
echo " <section class=\"image-bandeau text-center\">
<img class=\"lazyload\" alt=\"";
// line 39
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 39, $this->source); })()), "title", [], "any", false, false, false, 39), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 39, $this->source); })()), "title", [], "any", false, false, false, 39), "html", null, true);
echo "\" data-srcset=\"";
echo twig_escape_filter($this->env, (isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 39, $this->source); })()), "html", null, true);
echo "\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 39, $this->source); })())), "html", null, true);
echo "\" />
<div class=\"cnt-bandeau text-center\">
\t\t\t\t<div class=\"container-fluid wrapper\">
<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=\"";
// line 43
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index_page_home");
echo "\" itemprop=\"item\"><span itemprop=\"name\">";
echo twig_escape_filter($this->env, (isset($context["title_home_ariane"]) || array_key_exists("title_home_ariane", $context) ? $context["title_home_ariane"] : (function () { throw new RuntimeError('Variable "title_home_ariane" does not exist.', 43, $this->source); })()), "html", null, true);
echo "</span></a><meta itemprop=\"position\" content=\"1\" /></li>
";
// line 44
$context["niveau"] = 2;
// line 45
echo " ";
if ((isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 45, $this->source); })())) {
// line 46
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 46, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 47
echo " <li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, $context["item"], "slug", [], "any", false, false, false, 47)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "titre", [], "any", false, false, false, 47), "html", null, true);
echo "\" itemprop=\"item\"><span itemprop=\"name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "titre", [], "any", false, false, false, 47), "html", null, true);
echo "</span></a><meta itemprop=\"position\" content=\"2\" /></li>
";
// line 48
$context["niveau"] = 3;
// line 49
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "child", [], "any", true, true, false, 49)) {
// line 50
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["item"], "child", [], "any", false, false, false, 50));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 51
echo " <li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, $context["item"], "slug", [], "any", false, false, false, 51)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "titre", [], "any", false, false, false, 51), "html", null, true);
echo "\" itemprop=\"item\"><span itemprop=\"name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "titre", [], "any", false, false, false, 51), "html", null, true);
echo "</span></a><meta itemprop=\"position\" content=\"3\" /></li>
";
// line 52
$context["niveau"] = 4;
// line 53
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 54
echo " ";
}
// line 55
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 56
echo " ";
}
// line 57
echo " <li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 57, $this->source); })()), "breadcrumb", [], "any", false, false, false, 57))) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 57, $this->source); })()), "breadcrumb", [], "any", false, false, false, 57), "html", null, true);
} else {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 57, $this->source); })()), "title", [], "any", false, false, false, 57), "html", null, true);
}
echo "</span><meta itemprop=\"position\" content=\"";
echo twig_escape_filter($this->env, (isset($context["niveau"]) || array_key_exists("niveau", $context) ? $context["niveau"] : (function () { throw new RuntimeError('Variable "niveau" does not exist.', 57, $this->source); })()), "html", null, true);
echo "\" /></li>
</ol>
";
// line 59
if ((isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 59, $this->source); })())) {
// line 60
echo " ";
// line 61
echo " <a class=\"article-retour text-center\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 61, $this->source); })()), 0, [], "array", false, false, false, 61), "slug", [], "any", false, false, false, 61)]), "html", null, true);
echo "\" title=\"Retour\">Retour</a>
";
// line 63
echo " ";
}
// line 64
echo " <h1 class=\"page-title\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 64, $this->source); })()), "title", [], "any", false, false, false, 64), "html", null, true);
echo "</h1>
</div>
</div>
</section>
";
}
// line 69
echo " <div class=\"page_cms pt-5\">
";
// line 70
if (((isset($context["imagebandeau"]) || array_key_exists("imagebandeau", $context) ? $context["imagebandeau"] : (function () { throw new RuntimeError('Variable "imagebandeau" does not exist.', 70, $this->source); })()) == "")) {
// line 71
echo " <div class=\"breadcrumb-style-default\">
<div class=\"container-fluid wrapper\">
<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=\"";
// line 77
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index_page_home");
echo "\" itemprop=\"item\"><span itemprop=\"name\">";
echo twig_escape_filter($this->env, (isset($context["title_home_ariane"]) || array_key_exists("title_home_ariane", $context) ? $context["title_home_ariane"] : (function () { throw new RuntimeError('Variable "title_home_ariane" does not exist.', 77, $this->source); })()), "html", null, true);
echo "</span></a><meta itemprop=\"position\" content=\"1\" /></li>
";
// line 78
$context["niveau"] = 2;
// line 79
echo " ";
if ((isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 79, $this->source); })())) {
// line 80
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 80, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 81
echo " <li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, $context["item"], "slug", [], "any", false, false, false, 81)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "titre", [], "any", false, false, false, 81), "html", null, true);
echo "\" itemprop=\"item\"><span itemprop=\"name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "titre", [], "any", false, false, false, 81), "html", null, true);
echo "</span></a><meta itemprop=\"position\" content=\"2\" /></li>
";
// line 82
$context["niveau"] = 3;
// line 83
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["item"], "child", [], "any", true, true, false, 83)) {
// line 84
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["item"], "child", [], "any", false, false, false, 84));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 85
echo " <li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, $context["item"], "slug", [], "any", false, false, false, 85)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "titre", [], "any", false, false, false, 85), "html", null, true);
echo "\" itemprop=\"item\"><span itemprop=\"name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "titre", [], "any", false, false, false, 85), "html", null, true);
echo "</span></a><meta itemprop=\"position\" content=\"3\" /></li>
";
// line 86
$context["niveau"] = 4;
// line 87
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
echo " ";
}
// line 89
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 90
echo " ";
}
// line 91
echo " <li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 91, $this->source); })()), "breadcrumb", [], "any", false, false, false, 91))) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 91, $this->source); })()), "breadcrumb", [], "any", false, false, false, 91), "html", null, true);
} else {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 91, $this->source); })()), "title", [], "any", false, false, false, 91), "html", null, true);
}
echo "</span><meta itemprop=\"position\" content=\"";
echo twig_escape_filter($this->env, (isset($context["niveau"]) || array_key_exists("niveau", $context) ? $context["niveau"] : (function () { throw new RuntimeError('Variable "niveau" does not exist.', 91, $this->source); })()), "html", null, true);
echo "\" /></li>
</ol>
";
// line 94
if ((isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 94, $this->source); })())) {
// line 95
echo " ";
// line 96
echo " <a class=\"article-retour text-center\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 96, $this->source); })()), 0, [], "array", false, false, false, 96), "slug", [], "any", false, false, false, 96)]), "html", null, true);
echo "\" title=\"Retour\">Retour</a>
";
// line 98
echo " ";
}
// line 99
echo "
<h1 class=\"page-title\">";
// line 100
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 100, $this->source); })()), "title", [], "any", false, false, false, 100), "html", null, true);
echo "</h1>
</div>
</div>
</div>
</div>
</div>
";
}
// line 107
echo "
<div class=\"container-fluid wrapper mt-3\">
<div class=\"row gx-5 py-2\">
";
// line 110
if (( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 110, $this->source); })()), "summary", [], "any", false, false, false, 110)) && (twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 110, $this->source); })()), "summary", [], "any", false, false, false, 110) != ""))) {
// line 111
echo " <div class=\"col-sm-12 text-center\">
<h2 class=\"sub-title wow\">";
// line 112
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 112, $this->source); })()), "summary", [], "any", false, false, false, 112), "html", null, true);
echo "</h2>
</div>
";
}
// line 115
echo "
";
// line 116
if (((twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 116, $this->source); })()), "image", [], "any", false, false, false, 116) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 116, $this->source); })()), "image", [], "any", false, false, false, 116))) && twig_test_empty((isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 116, $this->source); })())))) {
// line 117
echo " <div class=\"col-sm-12 text-center my-4\">
<img class=\"lazyload img-fluid principal-img\" data-srcset=\"";
// line 118
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 118, $this->source); })()), "image", [], "any", false, false, false, 118)), "html", null, true);
echo "\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 118, $this->source); })()), "image", [], "any", false, false, false, 118)), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 118, $this->source); })()), "title", [], "any", false, false, false, 118), "html", null, true);
echo "\" />
</div>
";
}
// line 121
echo "
";
// line 122
if (( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 122, $this->source); })()), "content", [], "any", false, false, false, 122)) && (twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 122, $this->source); })()), "content", [], "any", false, false, false, 122) != ""))) {
// line 123
echo " <div class=\"col-lg-12 content_post\">
";
// line 124
echo twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 124, $this->source); })()), "content", [], "any", false, false, false, 124);
echo "
";
// line 126
if ((twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 126, $this->source); })()), "typelien", [], "any", false, false, false, 126) == null)) {
// line 127
echo " ";
if ((array_key_exists("categorieTree", $context) && twig_get_attribute($this->env, $this->source, ($context["categorieTree"] ?? null), 0, [], "array", true, true, false, 127))) {
// line 128
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 129
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 129, $this->source); })()), 0, [], "array", false, false, false, 129), "slug", [], "any", false, false, false, 129)]), "html", null, true);
echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">Retour à la liste ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["categorieTree"]) || array_key_exists("categorieTree", $context) ? $context["categorieTree"] : (function () { throw new RuntimeError('Variable "categorieTree" does not exist.', 129, $this->source); })()), 0, [], "array", false, false, false, 129), "titre", [], "any", false, false, false, 129), "html", null, true);
echo "</a>
</div>
";
}
// line 132
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 132, $this->source); })()), "typelien", [], "any", false, false, false, 132) != 1)) {
// line 133
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 133, $this->source); })()), "typelien", [], "any", false, false, false, 133) == "4")) {
// line 134
echo " <div class=\"text-center py-2\">
<a href=\"javascript:void(0)\" onclick=\"window.location.href = 'tel:";
// line 135
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 135, $this->source); })()), "telephone", [], "any", false, false, false, 135), "html", null, true);
echo "';\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 135, $this->source); })()), "titrelien", [], "any", false, false, false, 135), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 137
(isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 137, $this->source); })()), "typelien", [], "any", false, false, false, 137) == "2")) {
// line 138
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 139
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 139, $this->source); })()), "lieninterne", [], "any", false, false, false, 139), "html", null, true);
echo "\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 139, $this->source); })()), "titrelien", [], "any", false, false, false, 139), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 141
(isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 141, $this->source); })()), "typelien", [], "any", false, false, false, 141) == "3")) {
// line 142
echo " <div class=\"text-center py-2\">
<a href=\"";
// line 143
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 143, $this->source); })()), "lienexterne", [], "any", false, false, false, 143), "html", null, true);
echo "\" target=\"_blank\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 143, $this->source); })()), "titrelien", [], "any", false, false, false, 143), "html", null, true);
echo "</a>
</div>
";
}
// line 146
echo " ";
}
// line 147
echo "
";
// line 148
if (((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 148, $this->source); })()) && !twig_test_empty((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 148, $this->source); })())))) {
// line 149
echo " <div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
";
// line 150
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["docs"]) || array_key_exists("docs", $context) ? $context["docs"] : (function () { throw new RuntimeError('Variable "docs" does not exist.', 150, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["doc"]) {
// line 151
echo " <a class=\"btn-back-pulse m-2\" href=\"";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, $context["doc"], "location", [], "any", false, false, false, 151) . twig_get_attribute($this->env, $this->source, $context["doc"], "path", [], "any", false, false, false, 151)) . "/") . twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 151)), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 151), 0, -4), "html", null, true);
echo "\" target=\"_blank\"><i class=\"fa fa-file-pdf-o mr-2\"></i>";
echo twig_escape_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["doc"], "fileName", [], "any", false, false, false, 151), 0, -4), "html", null, true);
echo "</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['doc'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 153
echo " </div>
";
}
// line 155
echo "
";
// line 156
if ((isset($context["champsPersonnalises"]) || array_key_exists("champsPersonnalises", $context) ? $context["champsPersonnalises"] : (function () { throw new RuntimeError('Variable "champsPersonnalises" does not exist.', 156, $this->source); })())) {
// line 157
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["champsPersonnalises"]) || array_key_exists("champsPersonnalises", $context) ? $context["champsPersonnalises"] : (function () { throw new RuntimeError('Variable "champsPersonnalises" does not exist.', 157, $this->source); })()));
foreach ($context['_seq'] as $context["key1"] => $context["champ"]) {
// line 158
echo " ";
if ($context["champ"]) {
// line 159
echo " <div class=\"my-4\">
";
// line 160
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["lblchampsPersonnalises"]) || array_key_exists("lblchampsPersonnalises", $context) ? $context["lblchampsPersonnalises"] : (function () { throw new RuntimeError('Variable "lblchampsPersonnalises" does not exist.', 160, $this->source); })()));
foreach ($context['_seq'] as $context["key2"] => $context["lbl"]) {
// line 161
echo " ";
if (($context["key2"] == $context["key1"])) {
// line 162
echo " ";
echo twig_escape_filter($this->env, $context["lbl"], "html", null, true);
echo " :
";
}
// line 164
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key2'], $context['lbl'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 165
echo "
<a href=\"";
// line 166
echo twig_escape_filter($this->env, $context["champ"], "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, $context["champ"], "html", null, true);
echo "\" target=\"_blank\">";
echo twig_escape_filter($this->env, $context["champ"], "html", null, true);
echo "</a></div>
";
}
// line 169
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key1'], $context['champ'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 170
echo " ";
}
// line 171
echo " </div>
";
}
// line 173
echo " </div>
";
// line 175
if (((array_key_exists("next_article", $context) && !twig_test_empty((isset($context["next_article"]) || array_key_exists("next_article", $context) ? $context["next_article"] : (function () { throw new RuntimeError('Variable "next_article" does not exist.', 175, $this->source); })()))) || (array_key_exists("prev_article", $context) && !twig_test_empty((isset($context["prev_article"]) || array_key_exists("prev_article", $context) ? $context["prev_article"] : (function () { throw new RuntimeError('Variable "prev_article" does not exist.', 175, $this->source); })()))))) {
// line 176
echo " <div class=\"row gx-5 py-4\">
<div class=\"col-lg-12 d-flex justify-content-between\">
<div class=\"\">
";
// line 179
if ((array_key_exists("prev_article", $context) && !twig_test_empty((isset($context["prev_article"]) || array_key_exists("prev_article", $context) ? $context["prev_article"] : (function () { throw new RuntimeError('Variable "prev_article" does not exist.', 179, $this->source); })())))) {
// line 180
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["prev_article"]) || array_key_exists("prev_article", $context) ? $context["prev_article"] : (function () { throw new RuntimeError('Variable "prev_article" does not exist.', 180, $this->source); })()), "slug", [], "any", false, false, false, 180)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["prev_article"]) || array_key_exists("prev_article", $context) ? $context["prev_article"] : (function () { throw new RuntimeError('Variable "prev_article" does not exist.', 180, $this->source); })()), "title", [], "any", false, false, false, 180), "html", null, true);
echo "\"><span class=\"signe1\"><i class=\"fa fa-arrow-left\"></i></span> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["prev_article"]) || array_key_exists("prev_article", $context) ? $context["prev_article"] : (function () { throw new RuntimeError('Variable "prev_article" does not exist.', 180, $this->source); })()), "title", [], "any", false, false, false, 180), "html", null, true);
echo "</a>
";
}
// line 182
echo " </div>
<div class=\"\">
";
// line 184
if ((array_key_exists("next_article", $context) && !twig_test_empty((isset($context["next_article"]) || array_key_exists("next_article", $context) ? $context["next_article"] : (function () { throw new RuntimeError('Variable "next_article" does not exist.', 184, $this->source); })())))) {
// line 185
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["next_article"]) || array_key_exists("next_article", $context) ? $context["next_article"] : (function () { throw new RuntimeError('Variable "next_article" does not exist.', 185, $this->source); })()), "slug", [], "any", false, false, false, 185)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["next_article"]) || array_key_exists("next_article", $context) ? $context["next_article"] : (function () { throw new RuntimeError('Variable "next_article" does not exist.', 185, $this->source); })()), "title", [], "any", false, false, false, 185), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["next_article"]) || array_key_exists("next_article", $context) ? $context["next_article"] : (function () { throw new RuntimeError('Variable "next_article" does not exist.', 185, $this->source); })()), "title", [], "any", false, false, false, 185), "html", null, true);
echo " <span class=\"signe1\"><i class=\"fa fa-arrow-right\"></i></span></a>
";
}
// line 187
echo " </div>
</div>
</div>
";
}
// line 191
echo " </div>
";
// line 196
echo "
";
// line 197
if (((((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 197, $this->source); })()) && !twig_test_empty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 197, $this->source); })()))) && array_key_exists("template_model_gallerie", $context)) && !twig_test_empty((isset($context["template_model_gallerie"]) || array_key_exists("template_model_gallerie", $context) ? $context["template_model_gallerie"] : (function () { throw new RuntimeError('Variable "template_model_gallerie" does not exist.', 197, $this->source); })())))) {
// line 198
echo " ";
echo twig_include($this->env, $context, twig_template_from_string($this->env, (isset($context["template_model_gallerie"]) || array_key_exists("template_model_gallerie", $context) ? $context["template_model_gallerie"] : (function () { throw new RuntimeError('Variable "template_model_gallerie" does not exist.', 198, $this->source); })())));
echo "
";
}
// line 200
echo "
";
// line 201
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 201, $this->source); })()), "urlvideo", [], "any", false, false, false, 201))) {
// line 202
echo " <div class=\"container-fluid wrapper mt-3\">
<div class=\"col-md-12 mt-1\">
<div class=\"video\">
";
// line 205
$context["id_video_externe"] = twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 205, $this->source); })()), "urlvideo", [], "any", false, false, false, 205), "?v="), 1, [], "array", false, false, false, 205);
// line 206
echo " <a class=\"video-thumbnail m-0\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 206, $this->source); })()), "urlvideo", [], "any", false, false, false, 206), "html", null, true);
echo "\" data-fancybox=\"video\">
<img src=\"https://img.youtube.com/vi/";
// line 207
echo twig_escape_filter($this->env, (isset($context["id_video_externe"]) || array_key_exists("id_video_externe", $context) ? $context["id_video_externe"] : (function () { throw new RuntimeError('Variable "id_video_externe" does not exist.', 207, $this->source); })()), "html", null, true);
echo "/maxresdefault.jpg\" class=\"img-fluid\" alt=\"\"/>
</a>
</div>
</div>
</div>
";
}
// line 213
echo "
";
// line 214
if (array_key_exists("blocs", $context)) {
// line 215
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["blocs"]) || array_key_exists("blocs", $context) ? $context["blocs"] : (function () { throw new RuntimeError('Variable "blocs" does not exist.', 215, $this->source); })()), "Bloc", [], "any", false, false, false, 215));
foreach ($context['_seq'] as $context["_key"] => $context["bloc"]) {
// line 216
echo " ";
if (($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() && (twig_get_attribute($this->env, $this->source, $context["bloc"], "mobile", [], "any", false, false, false, 216) == true))) {
// line 217
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 217, $this->source); })()), "request", [], "any", false, false, false, 217), "server", [], "any", false, false, false, 217), "get", [0 => "APP_THEME"], "method", false, false, false, 217)) . "/bloc/bloc.html.twig"), ["bloc" => // line 218
$context["bloc"]], false);
// line 219
echo "
";
}
// line 221
echo "
";
// line 222
if ((($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isFullView() && ($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() == false)) && (twig_get_attribute($this->env, $this->source, $context["bloc"], "desktop", [], "any", false, false, false, 222) == true))) {
// line 223
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 223, $this->source); })()), "request", [], "any", false, false, false, 223), "server", [], "any", false, false, false, 223), "get", [0 => "APP_THEME"], "method", false, false, false, 223)) . "/bloc/bloc.html.twig"), ["bloc" => // line 224
$context["bloc"]], false);
// line 225
echo "
";
}
// line 227
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bloc'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 228
echo " ";
}
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 233
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 234
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"";
// line 235
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets-admin/plugins/form-builder-io/formio.full.min.js"), "html", null, true);
echo "\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js\"></script>
<script>
var current_fs, next_fs, previous_fs;
var left, opacity, scale;
var animating;
\$(\".next\").click(function(){
current_fs = \$(this).parent();
next_fs = \$(this).parent().next();
if (!validateForm(current_fs)) {
return false;
}
if(animating) return false;
animating = true;
\$(\"#progressbar li\").eq(\$(\"fieldset\").index(next_fs)).addClass(\"active\");
next_fs.show();
//hide the current fieldset with style
current_fs.animate({opacity: 0}, {
step: function(now, mx) {
//as the opacity of current_fs reduces to 0 - stored in \"now\"
//1. scale current_fs down to 80%
scale = 1 - (1 - now) * 0.2;
//2. bring next_fs from the right(50%)
left = (now * 50)+\"%\";
//3. increase opacity of next_fs to 1 as it moves in
opacity = 1 - now;
current_fs.css({
'transform': 'scale('+scale+')',
'position': 'absolute'
});
next_fs.css({'left': left, 'opacity': opacity});
},
duration: 1000,
complete: function(){
current_fs.hide();
animating = false;
},
//this comes from the custom easing plugin
easing: 'easeInOutBack'
});
});
\$(\".previous\").click(function(){
current_fs = \$(this).parent();
previous_fs = \$(this).parent().prev();
// if (!validateForm(current_fs)) {
// return false;
// }
if(animating) return false;
animating = true;
//de-activate current step on progressbar
\$(\"#progressbar li\").eq(\$(\"fieldset\").index(current_fs)).removeClass(\"active\");
//show the previous fieldset
previous_fs.show();
//hide the current fieldset with style
previous_fs.css({'transform': 'scale(1)', 'opacity': '1','position':'relative'});
current_fs.hide();
animating = false;
// current_fs.animate({opacity: 0}, {
// step: function(now, mx) {
// //as the opacity of current_fs reduces to 0 - stored in \"now\"
// //1. scale previous_fs from 80% to 100%
// scale = 0.8 + (1 - now) * 0.2;
// //2. take current_fs to the right(50%) - from 0%
// left = ((1-now) * 50)+\"%\";
// //3. increase opacity of previous_fs to 1 as it moves in
// opacity = 1 - now;
// current_fs.css({'left': left});
// previous_fs.css({'transform': 'scale('+scale+')', 'opacity': opacity,'position':'relative'});
// },
// duration: 800,
// complete: function(){
// current_fs.hide();
// animating = false;
// },
// //this comes from the custom easing plugin
// easing: 'easeInOutBack'
// });
});
// \$(\".form-wizrd .submit.action-button\").click(function(e){
// current_fs = \$(this).parent();
// if (!validateForm(current_fs)) {
// return false;
// }
// });
function validateForm(current_fs) {
let formTabs, formInputs, i, valid = true;
formInputs = current_fs[0].querySelectorAll('[data-form-input]');
for (i = 0; i < formInputs.length; i++) {
if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') != 'checkbox') {
formInputs[i].addEventListener('keyup', (event) => {
event.target.classList.remove(\"has-error\");
\$(event.target.parentElement).find('.invalid-feedback').css('display','none');
// event.target.nextElementSibling.style.display = \"none\";
});
}
if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') == 'checkbox') {
formInputs[i].addEventListener('change', (event) => {
if(\$(event.target).is(':checked')){
\$(event.target).attr('checked', true);
}else{
\$(event.target).attr('checked', false);
}
event.target.classList.remove(\"has-error\");
\$(event.target.parentElement).find('.invalid-feedback').css('display','none');
//event.target.nextElementSibling.style.display = \"none\";
});
}
if (formInputs[i].hasAttribute(\"required\") && formInputs[i].nodeName == 'SELECT') {
formInputs[i].addEventListener('change', (event) => {
console.log('select change');
event.target.classList.remove(\"has-error\");
\$(event.target.parentElement).find('.invalid-feedback').css('display','none');
//event.target.nextElementSibling.style.display = \"none\";
});
}
if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') == 'email') {
formInputs[i].addEventListener('keyup', (event) => {
console.log(isEmail(event.target.value));
if (isEmail(event.target.value) == true) {
event.target.classList.remove(\"has-error\");
\$(event.target.parentElement).find('.invalid-feedback').css('display','none');
}else{
if (!event.target.classList.contains('has-error')) {
event.target.className += \" has-error\";
}
\$(event.target.parentElement).find('.invalid-feedback').html('Veuillez choisir un email valide.');
\$(event.target.parentElement).find('.invalid-feedback').css('display','block');
}
// event.target.nextElementSibling.style.display = \"none\";
});
}
if(formInputs[i].hasAttribute(\"required\")){
if (\$(formInputs[i]).attr('type') == 'checkbox' && \$(formInputs[i]).is(':checked') == false) {
if (!formInputs[i].classList.contains('has-error')) {
formInputs[i].className += \" has-error\";
}
\$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
valid = false;
}else if(formInputs[i].value == \"\" && (\$(formInputs[i]).attr('type') == 'text' || formInputs[i].nodeName == 'SELECT' || formInputs[i].nodeName == 'TEXTAREA')){
if (!formInputs[i].classList.contains('has-error')) {
formInputs[i].className += \" has-error\";
}
\$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
valid = false;
}else if(!isEmail(formInputs[i].value) && \$(formInputs[i]).attr('type') == 'email'){
if (!formInputs[i].classList.contains('has-error')) {
formInputs[i].className += \" has-error\";
}
\$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
valid = false;
}
//formInputs[i].nextElementSibling.style.display = \"block\";
}
}
return valid;
}
function isEmail(email) {
var EmailRegex = /^([a-zA-Z0-9_.+-])+\\@(([a-zA-Z0-9-])+\\.)+([a-zA-Z0-9]{2,4})+\$/;
return EmailRegex.test(email);
}
</script>
<script>
if(document.getElementById(\"builder\")){
var data_fields = document.getElementById(\"builder\").getAttribute('data-config');
if(data_fields != ''){
data_fields = JSON.parse(data_fields);
console.log(JSON.parse(data_fields));
Formio.createForm(document.getElementById('builder'),
JSON.parse(data_fields),
).then(function(form) {
// Prevent the submission from going to the form.io server.
form.nosubmit = true;
// Triggered when they click the submit button.
form.on('submit', function(submission) {
var data = submission.data;
grecaptcha.execute('";
// line 439
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "clekey", [], "any", false, false, false, 439), "html", null, true);
echo "', {action: 'create_comment'}).then(token => {
\$('#builder').find('[name=g-recaptcha-response]').val(token);
data['g-recaptcha-response'] = token;
data['IdForm'] = \$('#builder').parent().find('input[name=\"IdForm\"]').val();
\$('#builder').parent().find('button[type=\"submit\"]').attr('disabled','true');
\$.ajax({
type:\"POST\",
cache:false,
url:\"";
// line 447
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("save_form");
echo "\",
data:data,
success: function (data) {
window.location = data
}
});
});
});
});
}
}
</script>
";
// line 460
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["modele_galerie"]) || array_key_exists("modele_galerie", $context) ? $context["modele_galerie"] : (function () { throw new RuntimeError('Variable "modele_galerie" does not exist.', 460, $this->source); })()), 0, [], "array", false, false, false, 460), "type", [], "any", false, false, false, 460) == 4)) {
// line 461
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"";
// line 462
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("templates/front/theme1/assets/plugins/flexslider/jquery.flexslider.js"), "html", null, true);
echo "\" ></script>
<script>
/*-------------------------------------------------*/
/* = Sx flexslider
/*-------------------------------------------------*/
if (\$(\".sx_flexslider\").length) {
\$('.flex-carousel').flexslider({
animation: \"slide\",
controlNav: false,
animationLoop: true,
slideshow: false,
itemWidth: 150,
asNavFor: '.flex-slider'
});
\$('.flex-slider').flexslider({
animation: \"slide\",
controlNav: false,
animationLoop: true,
slideshow: false,
sync: \".flex-carousel\"
});
}
</script>
";
}
// line 486
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "front/theme1/page_cms.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1042 => 486, 1015 => 462, 1010 => 461, 1008 => 460, 992 => 447, 981 => 439, 774 => 235, 769 => 234, 759 => 233, 744 => 228, 738 => 227, 734 => 225, 732 => 224, 730 => 223, 728 => 222, 725 => 221, 721 => 219, 719 => 218, 717 => 217, 714 => 216, 709 => 215, 707 => 214, 704 => 213, 695 => 207, 690 => 206, 688 => 205, 683 => 202, 681 => 201, 678 => 200, 672 => 198, 670 => 197, 667 => 196, 663 => 191, 657 => 187, 647 => 185, 645 => 184, 641 => 182, 631 => 180, 629 => 179, 624 => 176, 622 => 175, 618 => 173, 614 => 171, 611 => 170, 605 => 169, 595 => 166, 592 => 165, 586 => 164, 580 => 162, 577 => 161, 573 => 160, 570 => 159, 567 => 158, 562 => 157, 560 => 156, 557 => 155, 553 => 153, 540 => 151, 536 => 150, 533 => 149, 531 => 148, 528 => 147, 525 => 146, 517 => 143, 514 => 142, 512 => 141, 505 => 139, 502 => 138, 500 => 137, 493 => 135, 490 => 134, 487 => 133, 484 => 132, 476 => 129, 473 => 128, 470 => 127, 468 => 126, 463 => 124, 460 => 123, 458 => 122, 455 => 121, 445 => 118, 442 => 117, 440 => 116, 437 => 115, 431 => 112, 428 => 111, 426 => 110, 421 => 107, 411 => 100, 408 => 99, 405 => 98, 400 => 96, 398 => 95, 396 => 94, 383 => 91, 380 => 90, 374 => 89, 371 => 88, 365 => 87, 363 => 86, 354 => 85, 349 => 84, 346 => 83, 344 => 82, 335 => 81, 330 => 80, 327 => 79, 325 => 78, 319 => 77, 311 => 71, 309 => 70, 306 => 69, 297 => 64, 294 => 63, 289 => 61, 287 => 60, 285 => 59, 273 => 57, 270 => 56, 264 => 55, 261 => 54, 255 => 53, 253 => 52, 244 => 51, 239 => 50, 236 => 49, 234 => 48, 225 => 47, 220 => 46, 217 => 45, 215 => 44, 209 => 43, 196 => 39, 193 => 38, 191 => 37, 188 => 36, 185 => 35, 182 => 34, 179 => 33, 176 => 32, 173 => 31, 170 => 30, 168 => 29, 165 => 28, 155 => 27, 141 => 23, 139 => 22, 134 => 21, 124 => 20, 113 => 17, 110 => 16, 104 => 15, 98 => 13, 95 => 12, 90 => 11, 88 => 10, 85 => 9, 82 => 8, 76 => 6, 73 => 5, 70 => 4, 60 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"front/\"~ app.request.server.get('APP_THEME') ~\"/base.html.twig\" %}
{% block preload %}
{% if post.image is defined and post.image is not empty %}
{% if post.image %}
<link rel=\"preload\" as=\"image\" href=\"{{asset_image(post.image)}}\" />
{% endif %}
{% endif %}
{% if galleries is defined and galleries is not empty %}
{% for item in galleries %}
{% if item.path is defined %}
<link rel=\"preload\" as=\"image\" href=\"{{asset_image_gallery(item.path)}}\" />
{% endif %}
{% endfor %}
{% endif %}
{% endblock %}
{% block stylesheets %}
{{parent()}}
{% if modele_galerie[0].type == 4 %}
<link rel=\"stylesheet\" type=\"text/css\" href=\"{{asset('templates/front/theme1/assets/plugins/flexslider/flexslider.css')}}\" media=\"screen\" >
{% endif %}
{% endblock %}
{% block body %}
{% if post.imageBandeau %}
{% set imagebandeau = post.imageBandeau %}
{% elseif parametre.imageBandeau %}
{% set imagebandeau = 'uploads/images/' ~ parametre.imageBandeau %}
{% else %}
{% set imagebandeau = '' %}
{% endif %}
{% if imagebandeau != '' %}
<section class=\"image-bandeau text-center\">
<img class=\"lazyload\" alt=\"{{post.title}}\" title=\"{{post.title}}\" data-srcset=\"{{imagebandeau}}\" src=\"{{asset(imagebandeau)}}\" />
<div class=\"cnt-bandeau text-center\">
\t\t\t\t<div class=\"container-fluid wrapper\">
<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\">{{title_home_ariane}}</span></a><meta itemprop=\"position\" content=\"1\" /></li>
{% set niveau = 2 %}
{% if categorieTree %}
{% for item in categorieTree %}
<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('page',{slug:item.slug})}}\" title=\"{{item.titre}}\" itemprop=\"item\"><span itemprop=\"name\">{{item.titre}}</span></a><meta itemprop=\"position\" content=\"2\" /></li>
{% set niveau = 3 %}
{% if item.child is defined %}
{% for item in item.child %}
<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('page',{slug:item.slug})}}\" title=\"{{item.titre}}\" itemprop=\"item\"><span itemprop=\"name\">{{item.titre}}</span></a><meta itemprop=\"position\" content=\"3\" /></li>
{% set niveau = 4 %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
<li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">{% if post.breadcrumb is not empty %}{{post.breadcrumb}}{% else %}{{post.title}}{% endif %}</span><meta itemprop=\"position\" content=\"{{niveau}}\" /></li>
</ol>
{% if categorieTree %}
{# {% for item in categorieTree %} #}
<a class=\"article-retour text-center\" href=\"{{path('page',{slug:categorieTree[0].slug})}}\" title=\"Retour\">Retour</a>
{# {% endfor %} #}
{% endif %}
<h1 class=\"page-title\">{{post.title}}</h1>
</div>
</div>
</section>
{% endif %}
<div class=\"page_cms pt-5\">
{% if imagebandeau == '' %}
<div class=\"breadcrumb-style-default\">
<div class=\"container-fluid wrapper\">
<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\">{{title_home_ariane}}</span></a><meta itemprop=\"position\" content=\"1\" /></li>
{% set niveau = 2 %}
{% if categorieTree %}
{% for item in categorieTree %}
<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('page',{slug:item.slug})}}\" title=\"{{item.titre}}\" itemprop=\"item\"><span itemprop=\"name\">{{item.titre}}</span></a><meta itemprop=\"position\" content=\"2\" /></li>
{% set niveau = 3 %}
{% if item.child is defined %}
{% for item in item.child %}
<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('page',{slug:item.slug})}}\" title=\"{{item.titre}}\" itemprop=\"item\"><span itemprop=\"name\">{{item.titre}}</span></a><meta itemprop=\"position\" content=\"3\" /></li>
{% set niveau = 4 %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
<li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">{% if post.breadcrumb is not empty %}{{post.breadcrumb}}{% else %}{{post.title}}{% endif %}</span><meta itemprop=\"position\" content=\"{{niveau}}\" /></li>
</ol>
{% if categorieTree %}
{# {% for item in categorieTree %} #}
<a class=\"article-retour text-center\" href=\"{{path('page',{slug:categorieTree[0].slug})}}\" title=\"Retour\">Retour</a>
{# {% endfor %} #}
{% endif %}
<h1 class=\"page-title\">{{post.title}}</h1>
</div>
</div>
</div>
</div>
</div>
{% endif %}
<div class=\"container-fluid wrapper mt-3\">
<div class=\"row gx-5 py-2\">
{% if post.summary is not empty and post.summary != \"\" %}
<div class=\"col-sm-12 text-center\">
<h2 class=\"sub-title wow\">{{post.summary}}</h2>
</div>
{% endif %}
{% if post.image and post.image is not empty and categorieTree is empty %}
<div class=\"col-sm-12 text-center my-4\">
<img class=\"lazyload img-fluid principal-img\" data-srcset=\"{{asset_image(post.image)}}\" src=\"{{asset_image(post.image)}}\" alt=\"{{post.title}}\" />
</div>
{% endif %}
{% if post.content is not empty and post.content != \"\" %}
<div class=\"col-lg-12 content_post\">
{{post.content|raw}}
{% if post.typelien == null %}
{% if categorieTree is defined and categorieTree[0] is defined %}
<div class=\"text-center py-2\">
<a href=\"{{path('page',{slug:categorieTree[0].slug})}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">Retour à la liste {{categorieTree[0].titre}}</a>
</div>
{% endif %}
{% elseif post.typelien != 1 %}
{% if post.typelien == '4' %}
<div class=\"text-center py-2\">
<a href=\"javascript:void(0)\" onclick=\"window.location.href = 'tel:{{post.telephone}}';\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{post.titrelien}}</a>
</div>
{% elseif post.typelien == '2' %}
<div class=\"text-center py-2\">
<a href=\"{{post.lieninterne}}\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{post.titrelien}}</a>
</div>
{% elseif post.typelien == '3' %}
<div class=\"text-center py-2\">
<a href=\"{{post.lienexterne}}\" target=\"_blank\" class=\"btn btn-primary py-3 px-5 mt-3 btn-plus\">{{post.titrelien}}</a>
</div>
{% endif %}
{% endif %}
{% if docs and docs is not empty %}
<div class=\"col-md-12 bloc-docs d-flex justify-content-center\">
{% for doc in docs %}
<a class=\"btn-back-pulse m-2\" href=\"{{doc.location ~ doc.path ~ '/' ~ doc.fileName}}\" title=\"{{doc.fileName|slice(0, -4)}}\" target=\"_blank\"><i class=\"fa fa-file-pdf-o mr-2\"></i>{{doc.fileName|slice(0, -4)}}</a>
{% endfor %}
</div>
{% endif %}
{% if champsPersonnalises %}
{% for key1, champ in champsPersonnalises %}
{% if champ %}
<div class=\"my-4\">
{% for key2, lbl in lblchampsPersonnalises %}
{% if key2 == key1 %}
{{lbl}} :
{% endif %}
{% endfor %}
<a href=\"{{champ}}\" title=\"{{champ}}\" target=\"_blank\">{{champ}}</a></div>
{% endif %}
{% endfor %}
{% endif %}
</div>
{% endif %}
</div>
{% if next_article is defined and next_article is not empty or prev_article is defined and prev_article is not empty %}
<div class=\"row gx-5 py-4\">
<div class=\"col-lg-12 d-flex justify-content-between\">
<div class=\"\">
{% if prev_article is defined and prev_article is not empty %}
<a href=\"{{path('page',{'slug':prev_article.slug})}}\" title=\"{{prev_article.title}}\"><span class=\"signe1\"><i class=\"fa fa-arrow-left\"></i></span> {{prev_article.title}}</a>
{% endif %}
</div>
<div class=\"\">
{% if next_article is defined and next_article is not empty %}
<a href=\"{{path('page',{'slug':next_article.slug})}}\" title=\"{{next_article.title}}\">{{next_article.title}} <span class=\"signe1\"><i class=\"fa fa-arrow-right\"></i></span></a>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
{# {% if galleries and galleries is not empty %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/galleries.html.twig',{galleries: galleries,post:post}, with_context = false)}}
{% endif %} #}
{% if galleries and galleries is not empty and template_model_gallerie is defined and template_model_gallerie is not empty %}
{{ include(template_from_string(template_model_gallerie)) }}
{% endif %}
{% if post.urlvideo is not empty %}
<div class=\"container-fluid wrapper mt-3\">
<div class=\"col-md-12 mt-1\">
<div class=\"video\">
{% set id_video_externe = post.urlvideo|split('?v=')[1] %}
<a class=\"video-thumbnail m-0\" href=\"{{post.urlvideo}}\" data-fancybox=\"video\">
<img src=\"https://img.youtube.com/vi/{{id_video_externe}}/maxresdefault.jpg\" class=\"img-fluid\" alt=\"\"/>
</a>
</div>
</div>
</div>
{% endif %}
{% if blocs is defined %}
{% for bloc in blocs.Bloc %}
{% if is_mobile() and bloc.mobile == true %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% endif %}
{% if is_full_view() and is_mobile() == false and bloc.desktop == true %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/bloc/bloc.html.twig',{
bloc: bloc,
}, with_context = false)}}
{% endif %}
{% endfor %}
{% endif %}
</div>
{% endblock %}
{% block javascripts %}
{{parent()}}
<script src=\"{{ asset('assets-admin/plugins/form-builder-io/formio.full.min.js') }}\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js\"></script>
<script>
var current_fs, next_fs, previous_fs;
var left, opacity, scale;
var animating;
\$(\".next\").click(function(){
current_fs = \$(this).parent();
next_fs = \$(this).parent().next();
if (!validateForm(current_fs)) {
return false;
}
if(animating) return false;
animating = true;
\$(\"#progressbar li\").eq(\$(\"fieldset\").index(next_fs)).addClass(\"active\");
next_fs.show();
//hide the current fieldset with style
current_fs.animate({opacity: 0}, {
step: function(now, mx) {
//as the opacity of current_fs reduces to 0 - stored in \"now\"
//1. scale current_fs down to 80%
scale = 1 - (1 - now) * 0.2;
//2. bring next_fs from the right(50%)
left = (now * 50)+\"%\";
//3. increase opacity of next_fs to 1 as it moves in
opacity = 1 - now;
current_fs.css({
'transform': 'scale('+scale+')',
'position': 'absolute'
});
next_fs.css({'left': left, 'opacity': opacity});
},
duration: 1000,
complete: function(){
current_fs.hide();
animating = false;
},
//this comes from the custom easing plugin
easing: 'easeInOutBack'
});
});
\$(\".previous\").click(function(){
current_fs = \$(this).parent();
previous_fs = \$(this).parent().prev();
// if (!validateForm(current_fs)) {
// return false;
// }
if(animating) return false;
animating = true;
//de-activate current step on progressbar
\$(\"#progressbar li\").eq(\$(\"fieldset\").index(current_fs)).removeClass(\"active\");
//show the previous fieldset
previous_fs.show();
//hide the current fieldset with style
previous_fs.css({'transform': 'scale(1)', 'opacity': '1','position':'relative'});
current_fs.hide();
animating = false;
// current_fs.animate({opacity: 0}, {
// step: function(now, mx) {
// //as the opacity of current_fs reduces to 0 - stored in \"now\"
// //1. scale previous_fs from 80% to 100%
// scale = 0.8 + (1 - now) * 0.2;
// //2. take current_fs to the right(50%) - from 0%
// left = ((1-now) * 50)+\"%\";
// //3. increase opacity of previous_fs to 1 as it moves in
// opacity = 1 - now;
// current_fs.css({'left': left});
// previous_fs.css({'transform': 'scale('+scale+')', 'opacity': opacity,'position':'relative'});
// },
// duration: 800,
// complete: function(){
// current_fs.hide();
// animating = false;
// },
// //this comes from the custom easing plugin
// easing: 'easeInOutBack'
// });
});
// \$(\".form-wizrd .submit.action-button\").click(function(e){
// current_fs = \$(this).parent();
// if (!validateForm(current_fs)) {
// return false;
// }
// });
function validateForm(current_fs) {
let formTabs, formInputs, i, valid = true;
formInputs = current_fs[0].querySelectorAll('[data-form-input]');
for (i = 0; i < formInputs.length; i++) {
if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') != 'checkbox') {
formInputs[i].addEventListener('keyup', (event) => {
event.target.classList.remove(\"has-error\");
\$(event.target.parentElement).find('.invalid-feedback').css('display','none');
// event.target.nextElementSibling.style.display = \"none\";
});
}
if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') == 'checkbox') {
formInputs[i].addEventListener('change', (event) => {
if(\$(event.target).is(':checked')){
\$(event.target).attr('checked', true);
}else{
\$(event.target).attr('checked', false);
}
event.target.classList.remove(\"has-error\");
\$(event.target.parentElement).find('.invalid-feedback').css('display','none');
//event.target.nextElementSibling.style.display = \"none\";
});
}
if (formInputs[i].hasAttribute(\"required\") && formInputs[i].nodeName == 'SELECT') {
formInputs[i].addEventListener('change', (event) => {
console.log('select change');
event.target.classList.remove(\"has-error\");
\$(event.target.parentElement).find('.invalid-feedback').css('display','none');
//event.target.nextElementSibling.style.display = \"none\";
});
}
if (formInputs[i].hasAttribute(\"required\") && \$(formInputs[i]).attr('type') == 'email') {
formInputs[i].addEventListener('keyup', (event) => {
console.log(isEmail(event.target.value));
if (isEmail(event.target.value) == true) {
event.target.classList.remove(\"has-error\");
\$(event.target.parentElement).find('.invalid-feedback').css('display','none');
}else{
if (!event.target.classList.contains('has-error')) {
event.target.className += \" has-error\";
}
\$(event.target.parentElement).find('.invalid-feedback').html('Veuillez choisir un email valide.');
\$(event.target.parentElement).find('.invalid-feedback').css('display','block');
}
// event.target.nextElementSibling.style.display = \"none\";
});
}
if(formInputs[i].hasAttribute(\"required\")){
if (\$(formInputs[i]).attr('type') == 'checkbox' && \$(formInputs[i]).is(':checked') == false) {
if (!formInputs[i].classList.contains('has-error')) {
formInputs[i].className += \" has-error\";
}
\$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
valid = false;
}else if(formInputs[i].value == \"\" && (\$(formInputs[i]).attr('type') == 'text' || formInputs[i].nodeName == 'SELECT' || formInputs[i].nodeName == 'TEXTAREA')){
if (!formInputs[i].classList.contains('has-error')) {
formInputs[i].className += \" has-error\";
}
\$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
valid = false;
}else if(!isEmail(formInputs[i].value) && \$(formInputs[i]).attr('type') == 'email'){
if (!formInputs[i].classList.contains('has-error')) {
formInputs[i].className += \" has-error\";
}
\$(formInputs[i].parentElement).find('.invalid-feedback').css('display','block');
valid = false;
}
//formInputs[i].nextElementSibling.style.display = \"block\";
}
}
return valid;
}
function isEmail(email) {
var EmailRegex = /^([a-zA-Z0-9_.+-])+\\@(([a-zA-Z0-9-])+\\.)+([a-zA-Z0-9]{2,4})+\$/;
return EmailRegex.test(email);
}
</script>
<script>
if(document.getElementById(\"builder\")){
var data_fields = document.getElementById(\"builder\").getAttribute('data-config');
if(data_fields != ''){
data_fields = JSON.parse(data_fields);
console.log(JSON.parse(data_fields));
Formio.createForm(document.getElementById('builder'),
JSON.parse(data_fields),
).then(function(form) {
// Prevent the submission from going to the form.io server.
form.nosubmit = true;
// Triggered when they click the submit button.
form.on('submit', function(submission) {
var data = submission.data;
grecaptcha.execute('{{ParametreSite().clekey}}', {action: 'create_comment'}).then(token => {
\$('#builder').find('[name=g-recaptcha-response]').val(token);
data['g-recaptcha-response'] = token;
data['IdForm'] = \$('#builder').parent().find('input[name=\"IdForm\"]').val();
\$('#builder').parent().find('button[type=\"submit\"]').attr('disabled','true');
\$.ajax({
type:\"POST\",
cache:false,
url:\"{{path('save_form')}}\",
data:data,
success: function (data) {
window.location = data
}
});
});
});
});
}
}
</script>
{% if modele_galerie[0].type == 4 %}
{{parent()}}
<script src=\"{{asset('templates/front/theme1/assets/plugins/flexslider/jquery.flexslider.js')}}\" ></script>
<script>
/*-------------------------------------------------*/
/* = Sx flexslider
/*-------------------------------------------------*/
if (\$(\".sx_flexslider\").length) {
\$('.flex-carousel').flexslider({
animation: \"slide\",
controlNav: false,
animationLoop: true,
slideshow: false,
itemWidth: 150,
asNavFor: '.flex-slider'
});
\$('.flex-slider').flexslider({
animation: \"slide\",
controlNav: false,
animationLoop: true,
slideshow: false,
sync: \".flex-carousel\"
});
}
</script>
{% endif %}
{% endblock %}
", "front/theme1/page_cms.html.twig", "/var/www/vhosts/hrz.fr/new-site.hrz.fr/templates/front/theme1/page_cms.html.twig");
}
}