var/cache/dev/twig/5b/5bd872bdb1f6cc5b80935360e6a1db4e483d3abd33e0eb8575b377e99dfee526.php line 82

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* page/detail.html.twig */
  14. class __TwigTemplate_9cecb752f24055c17afe1d699e7fbe3de690c833af6aeda0f643fdc3fbfcfaab extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'bodyClass' => [$this'block_bodyClass'],
  24.             'breadcrumb' => [$this'block_breadcrumb'],
  25.             'body_content' => [$this'block_body_content'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""page/detail.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""page/detail.html.twig"));
  40.         // line 3
  41.         $context["pageBackgroundClass"] = "page-background-degrade";
  42.         // line 4
  43.         $context["heroForme"] = null;
  44.         // line 5
  45.         $context["classBodyContentTop"] = null;
  46.         // line 6
  47.         $context["titleColor"] = "text-pink";
  48.         // line 8
  49.         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"falsefalsefalse8) == twig_constant("App\\Entity\\Contenu\\Page::BACKGROUND_HERO_FORME"))) {
  50.             // line 9
  51.             $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"falsefalsefalse9)) ? ($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"falsefalsefalse9))) : ("none"));
  52.             // line 10
  53.             $context["pageBackgroundClass"] = "page-background-hero-forme";
  54.             // line 11
  55.             $context["classBodyContentTop"] = "body-content-top";
  56.             // line 12
  57.             $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); })())) . ");");
  58.         }
  59.         // line 15
  60.         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"falsefalsefalse15) == twig_constant("App\\Entity\\Contenu\\Page::BACKGROUND_HERO_COULEUR"))) {
  61.             // line 16
  62.             $context["pageBackgroundClass"] = "page-background-hero-couleur";
  63.             // line 17
  64.             $context["heroForme"] = "background: #f3eadd;";
  65.         }
  66.         // line 20
  67.         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"falsefalsefalse20) == twig_constant("App\\Entity\\Contenu\\Page::BACKGROUND_DEGRADE"))) {
  68.             // line 21
  69.             $context["pageBackgroundClass"] = "page-background-degrade";
  70.         }
  71.         // line 1
  72.         $this->parent $this->loadTemplate("layout.html.twig""page/detail.html.twig"1);
  73.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  74.         
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  76.         
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  78.     }
  79.     // line 24
  80.     public function block_bodyClass($context, array $blocks = [])
  81.     {
  82.         $macros $this->macros;
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyClass"));
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyClass"));
  87.         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"nulltrue);
  88.         
  89.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  90.         
  91.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  92.     }
  93.     // line 26
  94.     public function block_breadcrumb($context, array $blocks = [])
  95.     {
  96.         $macros $this->macros;
  97.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  98.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  99.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  100.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  101.         // line 27
  102.         echo "    ";
  103.         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); })())]));
  104.         echo "
  105. ";
  106.         
  107.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  108.         
  109.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  110.     }
  111.     // line 30
  112.     public function block_body_content($context, array $blocks = [])
  113.     {
  114.         $macros $this->macros;
  115.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  116.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_content"));
  117.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  118.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_content"));
  119.         // line 31
  120.         echo "    ";
  121.         $context["type"] = true;
  122.         // line 32
  123.         echo "    ";
  124.         $context['_parent'] = $context;
  125.         $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"falsefalsefalse32));
  126.         foreach ($context['_seq'] as $context["_key"] => $context["lienBloc"]) {
  127.             // line 33
  128.             echo "        ";
  129.             $context["type"] = (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["lienBloc"], "bloc", [], "any"falsefalsefalse33), "type", [], "any"falsefalsefalse33) != 20);
  130.             // line 34
  131.             echo "    ";
  132.         }
  133.         $_parent $context['_parent'];
  134.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lienBloc'], $context['_parent'], $context['loop']);
  135.         $context array_intersect_key($context$_parent) + $_parent;
  136.         // line 35
  137.         echo "    ";
  138.         if ((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'35$this->source); })())) {
  139.             // line 36
  140.             echo "    <div class=\"container-fluid\">
  141.         <div class=\"row\">
  142.             <div class=\"col-12 ";
  143.             // line 38
  144.             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"nulltrue);
  145.             echo " py-5\" style=\"";
  146.             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"nulltrue);
  147.             echo "\">
  148.                 <h1 class=\"text-center text-uppercase fsize42 gotham-bold font-weight-bold ";
  149.             // line 39
  150.             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"nulltrue);
  151.             echo "\">";
  152.             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"falsefalsefalse39);
  153.             echo "</h1>
  154.                 ";
  155.             // line 40
  156.             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"falsefalsefalse40)) {
  157.                 // line 41
  158.                 echo "                <h2 class=\"text-center text-uppercase fsize42 gotham-bold font-weight-bold text-green\">";
  159.                 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"falsefalsefalse41);
  160.                 echo "</h2>
  161.                 ";
  162.             }
  163.             // line 43
  164.             echo "                ";
  165.             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"falsefalsefalse43)) {
  166.                 // line 44
  167.                 echo "                <div class=\"accroche gotham-book text-center py-3\">
  168.                     ";
  169.                 // line 45
  170.                 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"falsefalsefalse45);
  171.                 echo "
  172.                 </div>
  173.                 ";
  174.             }
  175.             // line 48
  176.             echo "            </div>
  177.         </div>
  178.     </div>
  179.    ";
  180.         }
  181.         // line 52
  182.         echo "
  183.     ";
  184.         // line 53
  185.         $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"falsefalsefalse53)]));
  186.         // line 54
  187.         echo "
  188.     ";
  189.         // line 56
  190.         $context["var"] = [=> "l-histoire-de-la-marque"=> "jambes-lourdes"=> "les-facteurs-de-risques"=> "histoire-du-laboratoire"=> "massage-et-exercices"];
  191.         // line 57
  192.         echo "
  193.     ";
  194.         // line 58
  195.         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"falsefalsefalse58), (isset($context["var"]) || array_key_exists("var"$context) ? $context["var"] : (function () { throw new RuntimeError('Variable "var" does not exist.'58$this->source); })()))) {
  196.             // line 59
  197.             echo "        ";
  198.             $this->loadTemplate("/bloc/_bloc_19.html.twig""page/detail.html.twig"59)->display($context);
  199.             // line 60
  200.             echo "    ";
  201.         }
  202.         // line 61
  203.         echo "    
  204. ";
  205.         
  206.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  207.         
  208.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  209.     }
  210.     public function getTemplateName()
  211.     {
  212.         return "page/detail.html.twig";
  213.     }
  214.     public function isTraitable()
  215.     {
  216.         return false;
  217.     }
  218.     public function getDebugInfo()
  219.     {
  220.         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,);
  221.     }
  222.     public function getSourceContext()
  223.     {
  224.         return new Source("{% extends 'layout.html.twig' %}
  225. {% set pageBackgroundClass = 'page-background-degrade' %}
  226. {% set heroForme = null %}
  227. {% set classBodyContentTop = null %}
  228. {% set titleColor = 'text-pink' %}
  229. {% if page.background == constant('App\\\\Entity\\\\Contenu\\\\Page::BACKGROUND_HERO_FORME') %}
  230.     {% set image = (page.image) ? sonata_media(page.image) : 'none' %}
  231.     {% set pageBackgroundClass = 'page-background-hero-forme' %}
  232.     {% set classBodyContentTop = 'body-content-top' %}
  233.     {% set heroForme = '--banniere: url('~image~');' %}
  234. {% endif %}
  235. {% if page.background == constant('App\\\\Entity\\\\Contenu\\\\Page::BACKGROUND_HERO_COULEUR') %}
  236.     {% set pageBackgroundClass = 'page-background-hero-couleur' %}
  237.     {% set heroForme = 'background: #f3eadd;' %}
  238. {% endif %}
  239. {% if page.background == constant('App\\\\Entity\\\\Contenu\\\\Page::BACKGROUND_DEGRADE') %}
  240.     {% set pageBackgroundClass = 'page-background-degrade' %}
  241. {% endif %}
  242. {% block bodyClass 'page ' ~ pageBackgroundClass %}
  243. {% block breadcrumb %}
  244.     {{ render(controller('App\\\\Controller\\\\WidgetController::filarianeAction', { 'entity': page })) }}
  245. {% endblock %}
  246. {% block body_content %}
  247.     {% set type = true %}
  248.     {% for lienBloc in page.lienBlocPages %}
  249.         {% set type = lienBloc.bloc.type != 20 %}
  250.     {% endfor %}
  251.     {% if type %}
  252.     <div class=\"container-fluid\">
  253.         <div class=\"row\">
  254.             <div class=\"col-12 {{ classBodyContentTop }} py-5\" style=\"{{ heroForme }}\">
  255.                 <h1 class=\"text-center text-uppercase fsize42 gotham-bold font-weight-bold {{ titleColor }}\">{{ page.titre | raw }}</h1>
  256.                 {% if page.sousTitre %}
  257.                 <h2 class=\"text-center text-uppercase fsize42 gotham-bold font-weight-bold text-green\">{{ page.sousTitre | raw }}</h2>
  258.                 {% endif %}
  259.                 {% if page.accroche %}
  260.                 <div class=\"accroche gotham-book text-center py-3\">
  261.                     {{ page.accroche | raw }}
  262.                 </div>
  263.                 {% endif %}
  264.             </div>
  265.         </div>
  266.     </div>
  267.    {% endif %}
  268.     {% include 'bloc/liste.html.twig' with {'lienBlocs' : page.lienBlocPages} %}
  269.     {% set var = [ 'l-histoire-de-la-marque', 'jambes-lourdes','les-facteurs-de-risques', 'histoire-du-laboratoire', 'massage-et-exercices'] %}
  270.     {% if page.slug in var %}
  271.         {% include '/bloc/_bloc_19.html.twig' %}
  272.     {% endif %}
  273.     
  274. {% endblock %}""page/detail.html.twig""/home/jouvenceab/dev/templates/page/detail.html.twig");
  275.     }
  276. }