var/cache/website/dev/twig/7a/7afab2fe563a317a28b3071cb3fe88a847b2410f7f6598bb9a427e8fec7cd2a2.php line 48

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. /* pages/default.html.twig */
  14. class __TwigTemplate_2302750108f45ad03633ee6876e2da5bbb3475ac12776c2f060712bac0757351 extends 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.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/default.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/default.html.twig"));
  38.         $this->parent $this->loadTemplate("base.html.twig""pages/default.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         // line 4
  54.         echo "    
  55.    
  56.     ";
  57.         // line 6
  58.         $this->loadTemplate("fragments/_banner.html.twig""pages/default.html.twig"6)->display($context);
  59.         // line 7
  60.         echo "    ";
  61.         if (twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'7$this->source); })()), "article", [], "any"falsefalsefalse7)) {
  62.             // line 8
  63.             echo "        <div class=\"container-fluid intro dark\">
  64.             <div class=\"container\">
  65.                 <div class=\"row justify-content-center\">
  66.                     <div class=\"col-12 mb-3 p-5\">
  67.                         ";
  68.             // line 12
  69.             echo twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'12$this->source); })()), "article", [], "any"falsefalsefalse12);
  70.             echo "
  71.                     </div>
  72.                 </div>
  73.             </div>
  74.         </div>
  75.     ";
  76.         }
  77.         // line 18
  78.         echo "    ";
  79.         if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'18$this->source); })()), "contenu", [], "any"falsefalsefalse18))) {
  80.             // line 19
  81.             echo "        ";
  82.             $context['_parent'] = $context;
  83.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'19$this->source); })()), "contenu", [], "any"falsefalsefalse19));
  84.             foreach ($context['_seq'] as $context["_key"] => $context["contenu"]) {
  85.                 // line 20
  86.                 echo "            <div class=\"container-fluid article mb-3\">
  87.                 <div class=\"container\">
  88.                     <div class=\"row\">
  89.                         ";
  90.                 // line 23
  91.                 if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["contenu"], "images", [], "any"falsefalsefalse23))) {
  92.                     // line 24
  93.                     echo "                            ";
  94.                     $context["colSize"] = 8;
  95.                     // line 25
  96.                     echo "                            <div class=\"col-lg-";
  97.                     echo (((=== twig_compare(twig_get_attribute($this->env$this->source$context["contenu"], "type", [], "any"falsefalsefalse25), "galerie"))) ? (12) : (4));
  98.                     echo " p-0 gallery ";
  99.                     if ((((twig_get_attribute($this->env$this->source$context["contenu"], "titre", [], "any"truetruefalse25)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["contenu"], "titre", [], "any"falsefalsefalse25), null)) : (null)) || ((twig_get_attribute($this->env$this->source$context["contenu"], "texte", [], "any"truetruefalse25)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["contenu"], "texte", [], "any"falsefalsefalse25), null)) : (null)))) {
  100.                         echo " ";
  101.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["contenu"], "titre", [], "any"falsefalsefalse25), "html"nulltrue);
  102.                         echo " ";
  103.                     }
  104.                     echo "\">
  105.                                 <div class=\"swiper-galerie";
  106.                     // line 26
  107.                     echo (((=== twig_compare(twig_get_attribute($this->env$this->source$context["contenu"], "type", [], "any"falsefalsefalse26), "galerie"))) ? ("-wide") : (""));
  108.                     echo " swiper h-100\">
  109.                                     <div class=\"swiper-wrapper\">
  110.                                         ";
  111.                     // line 28
  112.                     $context['_parent'] = $context;
  113.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["contenu"], "images", [], "any"falsefalsefalse28));
  114.                     foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  115.                         // line 29
  116.                         echo "                                            <div class=\"swiper-slide\">
  117.                                                 <a href=\"";
  118.                         // line 30
  119.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["media"], "formats", [], "any"falsefalsefalse30), "sulu-large", [], "array"falsefalsefalse30), "html"nulltrue);
  120.                         echo "\" data-toggle=\"lightbox\" data-gallery=\"galerie\">
  121.                                                     <img src=\"";
  122.                         // line 31
  123.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["media"], "formats", [], "any"falsefalsefalse31), "sulu-4-3", [], "array"falsefalsefalse31), "html"nulltrue);
  124.                         echo "\" class=\"img-cover\">
  125.                                                 </a>
  126.                                             </div>
  127.                                         ";
  128.                     }
  129.                     $_parent $context['_parent'];
  130.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  131.                     $context array_intersect_key($context$_parent) + $_parent;
  132.                     // line 35
  133.                     echo "                                    </div>
  134.                                     <div class=\"swiper-button-prev\"></div>
  135.                                     <div class=\"swiper-button-next\"></div>
  136.                                 </div>
  137.                             </div>
  138.                         ";
  139.                 }
  140.                 // line 41
  141.                 echo "                        ";
  142.                 if ((((twig_get_attribute($this->env$this->source$context["contenu"], "titre", [], "any"truetruefalse41)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["contenu"], "titre", [], "any"falsefalsefalse41), null)) : (null)) || ((twig_get_attribute($this->env$this->source$context["contenu"], "texte", [], "any"truetruefalse41)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["contenu"], "texte", [], "any"falsefalsefalse41), null)) : (null)))) {
  143.                     // line 42
  144.                     echo "                            <div class=\"col-lg-";
  145.                     echo twig_escape_filter($this->env, ((array_key_exists("colSize"$context)) ? (_twig_default_filter((isset($context["colSize"]) || array_key_exists("colSize"$context) ? $context["colSize"] : (function () { throw new RuntimeError('Variable "colSize" does not exist.'42$this->source); })()), 12)) : (12)), "html"nulltrue);
  146.                     echo " mb-3 p-3 p-lg-5 infos ";
  147.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["contenu"], "titre", [], "any"falsefalsefalse42), "html"nulltrue);
  148.                     echo "\">
  149.                                 <h2 class=\"fs-2 mb-4 text-primary border-bottom border-primary border-2 pb-3\">";
  150.                     // line 43
  151.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["contenu"], "titre", [], "any"falsefalsefalse43), "html"nulltrue);
  152.                     echo "</h2>
  153.                                 ";
  154.                     // line 44
  155.                     echo twig_get_attribute($this->env$this->source$context["contenu"], "texte", [], "any"falsefalsefalse44);
  156.                     echo "
  157.                             </div>
  158.                         ";
  159.                 }
  160.                 // line 47
  161.                 echo "                    </div>
  162.                 </div>
  163.             </div>
  164.         ";
  165.             }
  166.             $_parent $context['_parent'];
  167.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contenu'], $context['_parent'], $context['loop']);
  168.             $context array_intersect_key($context$_parent) + $_parent;
  169.             // line 51
  170.             echo "    ";
  171.         }
  172.         
  173.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  174.         
  175.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  176.     }
  177.     public function getTemplateName()
  178.     {
  179.         return "pages/default.html.twig";
  180.     }
  181.     public function isTraitable()
  182.     {
  183.         return false;
  184.     }
  185.     public function getDebugInfo()
  186.     {
  187.         return array (  184 => 51,  175 => 47,  169 => 44,  165 => 43,  158 => 42,  155 => 41,  147 => 35,  137 => 31,  133 => 30,  130 => 29,  126 => 28,  121 => 26,  110 => 25,  107 => 24,  105 => 23,  100 => 20,  95 => 19,  92 => 18,  83 => 12,  77 => 8,  74 => 7,  72 => 6,  68 => 4,  58 => 3,  35 => 1,);
  188.     }
  189.     public function getSourceContext()
  190.     {
  191.         return new Source("{% extends \"base.html.twig\" %}
  192. {% block content %}
  193.     
  194.    
  195.     {% include \"fragments/_banner.html.twig\" %}
  196.     {% if content.article %}
  197.         <div class=\"container-fluid intro dark\">
  198.             <div class=\"container\">
  199.                 <div class=\"row justify-content-center\">
  200.                     <div class=\"col-12 mb-3 p-5\">
  201.                         {{ content.article|raw }}
  202.                     </div>
  203.                 </div>
  204.             </div>
  205.         </div>
  206.     {% endif %}
  207.     {% if content.contenu|length %}
  208.         {% for contenu in content.contenu %}
  209.             <div class=\"container-fluid article mb-3\">
  210.                 <div class=\"container\">
  211.                     <div class=\"row\">
  212.                         {% if contenu.images|length %}
  213.                             {% set colSize = 8 %}
  214.                             <div class=\"col-lg-{{ contenu.type == 'galerie' ? 12 : 4 }} p-0 gallery {% if contenu.titre|default(null) or contenu.texte|default(null) %} {{ contenu.titre }} {% endif %}\">
  215.                                 <div class=\"swiper-galerie{{ contenu.type == 'galerie' ? '-wide' : ''}} swiper h-100\">
  216.                                     <div class=\"swiper-wrapper\">
  217.                                         {% for media in contenu.images %}
  218.                                             <div class=\"swiper-slide\">
  219.                                                 <a href=\"{{ media.formats['sulu-large'] }}\" data-toggle=\"lightbox\" data-gallery=\"galerie\">
  220.                                                     <img src=\"{{ media.formats['sulu-4-3'] }}\" class=\"img-cover\">
  221.                                                 </a>
  222.                                             </div>
  223.                                         {% endfor %}
  224.                                     </div>
  225.                                     <div class=\"swiper-button-prev\"></div>
  226.                                     <div class=\"swiper-button-next\"></div>
  227.                                 </div>
  228.                             </div>
  229.                         {% endif %}
  230.                         {% if contenu.titre|default(null) or contenu.texte|default(null) %}
  231.                             <div class=\"col-lg-{{ colSize|default(12) }} mb-3 p-3 p-lg-5 infos {{ contenu.titre }}\">
  232.                                 <h2 class=\"fs-2 mb-4 text-primary border-bottom border-primary border-2 pb-3\">{{ contenu.titre }}</h2>
  233.                                 {{ contenu.texte|raw }}
  234.                             </div>
  235.                         {% endif %}
  236.                     </div>
  237.                 </div>
  238.             </div>
  239.         {% endfor %}
  240.     {% endif %}
  241. {% endblock %}
  242. ""pages/default.html.twig""/var/www/vhosts/fereol-depannage.com/preprod.fereol-depannage.com/templates/pages/default.html.twig");
  243.     }
  244. }