<?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/galerie.html.twig */
class __TwigTemplate_2c26f0e91959f7c2beaf082b455ceea646f001ab58db6adc0d92416aea4ab6b4 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/galerie.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/galerie.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "pages/galerie.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/galerie.html.twig", 7)->display($context);
// line 8
echo "
<section class=\"medias\">
<div class=\"filters\">
<ul class=\"d-flex w-100 justify-content-center\">
<li class=\"p-3\"><a href=\"#\" data-filter=\"*\" class=\"btn btn-outline-light active\">";
// line 12
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("TOUS", [], "messages");
echo "</a></li>
";
// line 13
$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.', 13, $this->source); })()), "themes", [], "any", false, false, false, 13));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["theme"]) {
// line 14
echo " ";
if (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["theme"], "images", [], "any", false, false, false, 14))) {
// line 15
echo " <li class=\"p-3\"><a href=\"#\" data-filter=\"";
echo twig_escape_filter($this->env, (".theme_" . twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 15)), "html", null, true);
echo "\" class=\"btn btn-outline-light\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["theme"], "titre", [], "any", false, false, false, 15), "html", null, true);
echo "</a></li>
";
}
// line 17
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['theme'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 18
echo " </ul>
</div>
<div class=\"container\">
<div class=\"row gx-2 gy-3 mt-3 isotope-grid\">
";
// line 24
$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.', 24, $this->source); })()), "themes", [], "any", false, false, false, 24));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["theme"]) {
// line 25
echo " ";
$context["theme_cpt"] = twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 25);
// line 26
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["theme"], "images", [], "any", false, false, false, 26));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 27
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["media"], "formats", [], "any", false, false, false, 27), "sulu-large", [], "array", false, false, false, 27), "html", null, true);
echo "\" data-toggle=\"lightbox\" data-gallery=\"galerie\" class=\"col-6 col-lg-4 col-xxl-3 item ";
echo twig_escape_filter($this->env, ("theme_" . (isset($context["theme_cpt"]) || array_key_exists("theme_cpt", $context) ? $context["theme_cpt"] : (function () { throw new RuntimeError('Variable "theme_cpt" does not exist.', 27, $this->source); })())), "html", null, true);
echo "\">
<img src=\"";
// line 28
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["media"], "formats", [], "any", false, false, false, 28), "sulu-400x400", [], "array", false, false, false, 28), "html", null, true);
echo "\" class=\"w-100\">
<h3 class=\"fs-6 my-2 m-0\">";
// line 29
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "title", [], "any", false, false, false, 29), "html", null, true);
echo "</h3>
<hr class=\"my-1 mx-1\">
";
// line 31
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["media"], "description", [], "any", false, false, false, 31), "html", null, true);
echo "
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['theme'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 35
echo " </div>
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "pages/galerie.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 199 => 35, 185 => 34, 176 => 31, 171 => 29, 167 => 28, 160 => 27, 155 => 26, 152 => 25, 135 => 24, 127 => 18, 113 => 17, 105 => 15, 102 => 14, 85 => 13, 81 => 12, 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=\"filters\">
<ul class=\"d-flex w-100 justify-content-center\">
<li class=\"p-3\"><a href=\"#\" data-filter=\"*\" class=\"btn btn-outline-light active\">{% trans %}TOUS{% endtrans %}</a></li>
{% for theme in content.themes %}
{% if theme.images|length %}
<li class=\"p-3\"><a href=\"#\" data-filter=\"{{ \".theme_\"~loop.index }}\" class=\"btn btn-outline-light\">{{ theme.titre }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>
<div class=\"container\">
<div class=\"row gx-2 gy-3 mt-3 isotope-grid\">
{% for theme in content.themes %}
{% set theme_cpt = loop.index %}
{% for media in theme.images %}
<a href=\"{{ media.formats['sulu-large'] }}\" data-toggle=\"lightbox\" data-gallery=\"galerie\" class=\"col-6 col-lg-4 col-xxl-3 item {{ \"theme_\"~theme_cpt }}\">
<img src=\"{{ media.formats['sulu-400x400'] }}\" class=\"w-100\">
<h3 class=\"fs-6 my-2 m-0\">{{ media.title }}</h3>
<hr class=\"my-1 mx-1\">
{{ media.description }}
</a>
{% endfor %}
{% endfor %}
</div>
</div>
</section>
{% endblock %}
", "pages/galerie.html.twig", "/var/www/vhosts/fereol-depannage.com/preprod.fereol-depannage.com/templates/pages/galerie.html.twig");
}
}