<?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;
/* pages/catalogue.html.twig */
class __TwigTemplate_ec8b7c1b5c4aa0580372b21b0e6f9de1176dc7f35f0b5e3ad8914f8655aac787 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.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", "pages/catalogue.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/catalogue.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "pages/catalogue.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 3
public function block_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", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
echo "
";
// line 7
$this->loadTemplate("fragments/_banner.html.twig", "pages/catalogue.html.twig", 7)->display($context);
// line 8
echo "
<section class=\"medias\">
<div class=\"container\">
<div class=\"row gx-2 gy-3 mt-3 isotope-grid\">
";
// line 15
$context['_parent'] = $context;
$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", false, false, false, 15));
foreach ($context['_seq'] as $context["_key"] => $context["theme"]) {
// line 16
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["theme"], "images", [], "any", false, false, false, 16), 0, [], "array", false, false, false, 16), "formats", [], "any", false, false, false, 16), "sulu-large", [], "array", false, false, false, 16), "html", null, true);
echo "\" data-toggle=\"lightbox\" data-gallery=\"galerie\" data-footer=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["theme"], "titre", [], "any", false, false, false, 16), "html", null, true);
if (twig_get_attribute($this->env, $this->source, $context["theme"], "prix", [], "any", false, false, false, 16)) {
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["theme"], "prix", [], "any", false, false, false, 16), "html", null, true);
echo " €";
}
echo "\" class=\"col-6 col-lg-4 col-xxl-3 item\">
";
// line 17
if (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["theme"], "images", [], "any", false, false, false, 17))) {
// line 18
echo " <img src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["theme"], "images", [], "any", false, false, false, 18), 0, [], "array", false, false, false, 18), "formats", [], "any", false, false, false, 18), "sulu-400x400", [], "array", false, false, false, 18), "html", null, true);
echo "\" class=\"w-100\">
";
}
// line 20
echo " <h3 class=\"fs-6 my-2 m-0\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["theme"], "titre", [], "any", false, false, false, 20), "html", null, true);
echo "</h3>
<hr class=\"my-1 mx-1\">
";
// line 22
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["theme"], "description", [], "any", false, false, false, 22), "html", null, true);
echo "
";
// line 23
if (twig_get_attribute($this->env, $this->source, $context["theme"], "prix", [], "any", false, false, false, 23)) {
// line 24
echo " <div class=\"text-end\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["theme"], "prix", [], "any", false, false, false, 24), "html", null, true);
echo " €</div>
";
}
// line 26
echo " </a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['theme'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 28
echo " </div>
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "pages/catalogue.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% block content %}
{% include \"fragments/_banner.html.twig\" %}
<section class=\"medias\">
<div class=\"container\">
<div class=\"row gx-2 gy-3 mt-3 isotope-grid\">
{% for theme in content.themes %}
<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\">
{% if theme.images|length %}
<img src=\"{{ theme.images[0].formats['sulu-400x400'] }}\" class=\"w-100\">
{% endif %}
<h3 class=\"fs-6 my-2 m-0\">{{ theme.titre }}</h3>
<hr class=\"my-1 mx-1\">
{{ theme.description }}
{% if theme.prix %}
<div class=\"text-end\">{{theme.prix}} €</div>
{% endif %}
</a>
{% endfor %}
</div>
</div>
</section>
{% endblock %}
", "pages/catalogue.html.twig", "/var/www/vhosts/fereol-depannage.com/preprod.fereol-depannage.com/templates/pages/catalogue.html.twig");
}
}