var/cache/website/dev/twig/2e/2e87318214af798ee024a408f472c67e4e49f706fcd1c165d0f761ed891e7e47.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/catalogue.html.twig */
  14. class __TwigTemplate_ec8b7c1b5c4aa0580372b21b0e6f9de1176dc7f35f0b5e3ad8914f8655aac787 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/catalogue.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/catalogue.html.twig"));
  38.         $this->parent $this->loadTemplate("base.html.twig""pages/catalogue.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.     ";
  58.         // line 7
  59.         $this->loadTemplate("fragments/_banner.html.twig""pages/catalogue.html.twig"7)->display($context);
  60.         // line 8
  61.         echo "
  62.     <section class=\"medias\">
  63.        
  64.         <div class=\"container\">
  65.             <div class=\"row gx-2 gy-3 mt-3 isotope-grid\">
  66.                 ";
  67.         // line 15
  68.         $context['_parent'] = $context;
  69.         $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.'15$this->source); })()), "themes", [], "any"falsefalsefalse15));
  70.         foreach ($context['_seq'] as $context["_key"] => $context["theme"]) {
  71.             // line 16
  72.             echo "                    <a href=\"";
  73.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["theme"], "images", [], "any"falsefalsefalse16), 0, [], "array"falsefalsefalse16), "formats", [], "any"falsefalsefalse16), "sulu-large", [], "array"falsefalsefalse16), "html"nulltrue);
  74.             echo "\" data-toggle=\"lightbox\" data-gallery=\"galerie\" data-footer=\"";
  75.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["theme"], "titre", [], "any"falsefalsefalse16), "html"nulltrue);
  76.             if (twig_get_attribute($this->env$this->source$context["theme"], "prix", [], "any"falsefalsefalse16)) {
  77.                 echo " ";
  78.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["theme"], "prix", [], "any"falsefalsefalse16), "html"nulltrue);
  79.                 echo " €";
  80.             }
  81.             echo "\" class=\"col-6 col-lg-4 col-xxl-3 item\">
  82.                         ";
  83.             // line 17
  84.             if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["theme"], "images", [], "any"falsefalsefalse17))) {
  85.                 // line 18
  86.                 echo "                            <img src=\"";
  87.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["theme"], "images", [], "any"falsefalsefalse18), 0, [], "array"falsefalsefalse18), "formats", [], "any"falsefalsefalse18), "sulu-400x400", [], "array"falsefalsefalse18), "html"nulltrue);
  88.                 echo "\" class=\"w-100\">
  89.                         ";
  90.             }
  91.             // line 20
  92.             echo "                        <h3 class=\"fs-6 my-2 m-0\">";
  93.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["theme"], "titre", [], "any"falsefalsefalse20), "html"nulltrue);
  94.             echo "</h3>
  95.                         <hr class=\"my-1 mx-1\">
  96.                         ";
  97.             // line 22
  98.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["theme"], "description", [], "any"falsefalsefalse22), "html"nulltrue);
  99.             echo "
  100.                         ";
  101.             // line 23
  102.             if (twig_get_attribute($this->env$this->source$context["theme"], "prix", [], "any"falsefalsefalse23)) {
  103.                 // line 24
  104.                 echo "                            <div class=\"text-end\">";
  105.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["theme"], "prix", [], "any"falsefalsefalse24), "html"nulltrue);
  106.                 echo " €</div>
  107.                         ";
  108.             }
  109.             // line 26
  110.             echo "                    </a>
  111.                 ";
  112.         }
  113.         $_parent $context['_parent'];
  114.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['theme'], $context['_parent'], $context['loop']);
  115.         $context array_intersect_key($context$_parent) + $_parent;
  116.         // line 28
  117.         echo "            </div>
  118.         </div>
  119.     </section>
  120.     
  121.     
  122. ";
  123.         
  124.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  125.         
  126.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  127.     }
  128.     public function getTemplateName()
  129.     {
  130.         return "pages/catalogue.html.twig";
  131.     }
  132.     public function isTraitable()
  133.     {
  134.         return false;
  135.     }
  136.     public function getDebugInfo()
  137.     {
  138.         return array (  133 => 28,  126 => 26,  120 => 24,  118 => 23,  114 => 22,  108 => 20,  102 => 18,  100 => 17,  88 => 16,  84 => 15,  75 => 8,  73 => 7,  68 => 4,  58 => 3,  35 => 1,);
  139.     }
  140.     public function getSourceContext()
  141.     {
  142.         return new Source("{% extends \"base.html.twig\" %}
  143. {% block content %}
  144.     
  145.    
  146.     {% include \"fragments/_banner.html.twig\" %}
  147.     <section class=\"medias\">
  148.        
  149.         <div class=\"container\">
  150.             <div class=\"row gx-2 gy-3 mt-3 isotope-grid\">
  151.                 {% for theme in content.themes %}
  152.                     <a href=\"{{ theme.images[0].formats['sulu-large'] }}\" data-toggle=\"lightbox\" data-gallery=\"galerie\" data-footer=\"{{ theme.titre }}{% if theme.prix %} {{ theme.prix }} €{% endif %}\" class=\"col-6 col-lg-4 col-xxl-3 item\">
  153.                         {% if theme.images|length %}
  154.                             <img src=\"{{  theme.images[0].formats['sulu-400x400'] }}\" class=\"w-100\">
  155.                         {% endif %}
  156.                         <h3 class=\"fs-6 my-2 m-0\">{{ theme.titre }}</h3>
  157.                         <hr class=\"my-1 mx-1\">
  158.                         {{ theme.description }}
  159.                         {% if theme.prix %}
  160.                             <div class=\"text-end\">{{theme.prix}} €</div>
  161.                         {% endif %}
  162.                     </a>
  163.                 {% endfor %}
  164.             </div>
  165.         </div>
  166.     </section>
  167.     
  168.     
  169. {% endblock %}
  170. ""pages/catalogue.html.twig""/var/www/vhosts/fereol-depannage.com/preprod.fereol-depannage.com/templates/pages/catalogue.html.twig");
  171.     }
  172. }