<?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;
/* page/detail.html.twig */
class __TwigTemplate_9cecb752f24055c17afe1d699e7fbe3de690c833af6aeda0f643fdc3fbfcfaab extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'bodyClass' => [$this, 'block_bodyClass'],
'breadcrumb' => [$this, 'block_breadcrumb'],
'body_content' => [$this, 'block_body_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "page/detail.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "page/detail.html.twig"));
// line 3
$context["pageBackgroundClass"] = "page-background-degrade";
// line 4
$context["heroForme"] = null;
// line 5
$context["classBodyContentTop"] = null;
// line 6
$context["titleColor"] = "text-pink";
// line 8
if ((twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 8, $this->source); })()), "background", [], "any", false, false, false, 8) == twig_constant("App\\Entity\\Contenu\\Page::BACKGROUND_HERO_FORME"))) {
// line 9
$context["image"] = ((twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 9, $this->source); })()), "image", [], "any", false, false, false, 9)) ? ($this->env->getRuntime('App\Twig\SonataRuntime')->sonataMedia(twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 9, $this->source); })()), "image", [], "any", false, false, false, 9))) : ("none"));
// line 10
$context["pageBackgroundClass"] = "page-background-hero-forme";
// line 11
$context["classBodyContentTop"] = "body-content-top";
// line 12
$context["heroForme"] = (("--banniere: url(" . (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 12, $this->source); })())) . ");");
}
// line 15
if ((twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 15, $this->source); })()), "background", [], "any", false, false, false, 15) == twig_constant("App\\Entity\\Contenu\\Page::BACKGROUND_HERO_COULEUR"))) {
// line 16
$context["pageBackgroundClass"] = "page-background-hero-couleur";
// line 17
$context["heroForme"] = "background: #f3eadd;";
}
// line 20
if ((twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 20, $this->source); })()), "background", [], "any", false, false, false, 20) == twig_constant("App\\Entity\\Contenu\\Page::BACKGROUND_DEGRADE"))) {
// line 21
$context["pageBackgroundClass"] = "page-background-degrade";
}
// line 1
$this->parent = $this->loadTemplate("layout.html.twig", "page/detail.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 24
public function block_bodyClass($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClass"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClass"));
echo twig_escape_filter($this->env, ("page " . (isset($context["pageBackgroundClass"]) || array_key_exists("pageBackgroundClass", $context) ? $context["pageBackgroundClass"] : (function () { throw new RuntimeError('Variable "pageBackgroundClass" does not exist.', 24, $this->source); })())), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 26
public function block_breadcrumb($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
// line 27
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\WidgetController::filarianeAction", ["entity" => (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 27, $this->source); })())]));
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 30
public function block_body_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_content"));
// line 31
echo " ";
$context["type"] = true;
// line 32
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 32, $this->source); })()), "lienBlocPages", [], "any", false, false, false, 32));
foreach ($context['_seq'] as $context["_key"] => $context["lienBloc"]) {
// line 33
echo " ";
$context["type"] = (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["lienBloc"], "bloc", [], "any", false, false, false, 33), "type", [], "any", false, false, false, 33) != 20);
// line 34
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lienBloc'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 35
echo " ";
if ((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 35, $this->source); })())) {
// line 36
echo " <div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-12 ";
// line 38
echo twig_escape_filter($this->env, (isset($context["classBodyContentTop"]) || array_key_exists("classBodyContentTop", $context) ? $context["classBodyContentTop"] : (function () { throw new RuntimeError('Variable "classBodyContentTop" does not exist.', 38, $this->source); })()), "html", null, true);
echo " py-5\" style=\"";
echo twig_escape_filter($this->env, (isset($context["heroForme"]) || array_key_exists("heroForme", $context) ? $context["heroForme"] : (function () { throw new RuntimeError('Variable "heroForme" does not exist.', 38, $this->source); })()), "html", null, true);
echo "\">
<h1 class=\"text-center text-uppercase fsize42 gotham-bold font-weight-bold ";
// line 39
echo twig_escape_filter($this->env, (isset($context["titleColor"]) || array_key_exists("titleColor", $context) ? $context["titleColor"] : (function () { throw new RuntimeError('Variable "titleColor" does not exist.', 39, $this->source); })()), "html", null, true);
echo "\">";
echo twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 39, $this->source); })()), "titre", [], "any", false, false, false, 39);
echo "</h1>
";
// line 40
if (twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 40, $this->source); })()), "sousTitre", [], "any", false, false, false, 40)) {
// line 41
echo " <h2 class=\"text-center text-uppercase fsize42 gotham-bold font-weight-bold text-green\">";
echo twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 41, $this->source); })()), "sousTitre", [], "any", false, false, false, 41);
echo "</h2>
";
}
// line 43
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 43, $this->source); })()), "accroche", [], "any", false, false, false, 43)) {
// line 44
echo " <div class=\"accroche gotham-book text-center py-3\">
";
// line 45
echo twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 45, $this->source); })()), "accroche", [], "any", false, false, false, 45);
echo "
</div>
";
}
// line 48
echo " </div>
</div>
</div>
";
}
// line 52
echo "
";
// line 53
$this->loadTemplate("bloc/liste.html.twig", "page/detail.html.twig", 53)->display(twig_array_merge($context, ["lienBlocs" => twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 53, $this->source); })()), "lienBlocPages", [], "any", false, false, false, 53)]));
// line 54
echo "
";
// line 56
$context["var"] = [0 => "l-histoire-de-la-marque", 1 => "jambes-lourdes", 2 => "les-facteurs-de-risques", 3 => "histoire-du-laboratoire", 4 => "massage-et-exercices"];
// line 57
echo "
";
// line 58
if (twig_in_filter(twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 58, $this->source); })()), "slug", [], "any", false, false, false, 58), (isset($context["var"]) || array_key_exists("var", $context) ? $context["var"] : (function () { throw new RuntimeError('Variable "var" does not exist.', 58, $this->source); })()))) {
// line 59
echo " ";
$this->loadTemplate("/bloc/_bloc_19.html.twig", "page/detail.html.twig", 59)->display($context);
// line 60
echo " ";
}
// line 61
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "page/detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 228 => 61, 225 => 60, 222 => 59, 220 => 58, 217 => 57, 215 => 56, 211 => 54, 209 => 53, 206 => 52, 200 => 48, 194 => 45, 191 => 44, 188 => 43, 182 => 41, 180 => 40, 174 => 39, 168 => 38, 164 => 36, 161 => 35, 155 => 34, 152 => 33, 147 => 32, 144 => 31, 134 => 30, 121 => 27, 111 => 26, 92 => 24, 81 => 1, 78 => 21, 76 => 20, 73 => 17, 71 => 16, 69 => 15, 66 => 12, 64 => 11, 62 => 10, 60 => 9, 58 => 8, 56 => 6, 54 => 5, 52 => 4, 50 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout.html.twig' %}
{% set pageBackgroundClass = 'page-background-degrade' %}
{% set heroForme = null %}
{% set classBodyContentTop = null %}
{% set titleColor = 'text-pink' %}
{% if page.background == constant('App\\\\Entity\\\\Contenu\\\\Page::BACKGROUND_HERO_FORME') %}
{% set image = (page.image) ? sonata_media(page.image) : 'none' %}
{% set pageBackgroundClass = 'page-background-hero-forme' %}
{% set classBodyContentTop = 'body-content-top' %}
{% set heroForme = '--banniere: url('~image~');' %}
{% endif %}
{% if page.background == constant('App\\\\Entity\\\\Contenu\\\\Page::BACKGROUND_HERO_COULEUR') %}
{% set pageBackgroundClass = 'page-background-hero-couleur' %}
{% set heroForme = 'background: #f3eadd;' %}
{% endif %}
{% if page.background == constant('App\\\\Entity\\\\Contenu\\\\Page::BACKGROUND_DEGRADE') %}
{% set pageBackgroundClass = 'page-background-degrade' %}
{% endif %}
{% block bodyClass 'page ' ~ pageBackgroundClass %}
{% block breadcrumb %}
{{ render(controller('App\\\\Controller\\\\WidgetController::filarianeAction', { 'entity': page })) }}
{% endblock %}
{% block body_content %}
{% set type = true %}
{% for lienBloc in page.lienBlocPages %}
{% set type = lienBloc.bloc.type != 20 %}
{% endfor %}
{% if type %}
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-12 {{ classBodyContentTop }} py-5\" style=\"{{ heroForme }}\">
<h1 class=\"text-center text-uppercase fsize42 gotham-bold font-weight-bold {{ titleColor }}\">{{ page.titre | raw }}</h1>
{% if page.sousTitre %}
<h2 class=\"text-center text-uppercase fsize42 gotham-bold font-weight-bold text-green\">{{ page.sousTitre | raw }}</h2>
{% endif %}
{% if page.accroche %}
<div class=\"accroche gotham-book text-center py-3\">
{{ page.accroche | raw }}
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
{% include 'bloc/liste.html.twig' with {'lienBlocs' : page.lienBlocPages} %}
{% set var = [ 'l-histoire-de-la-marque', 'jambes-lourdes','les-facteurs-de-risques', 'histoire-du-laboratoire', 'massage-et-exercices'] %}
{% if page.slug in var %}
{% include '/bloc/_bloc_19.html.twig' %}
{% endif %}
{% endblock %}", "page/detail.html.twig", "/home/jouvenceab/dev/templates/page/detail.html.twig");
}
}