<?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/default.html.twig */
class __TwigTemplate_2302750108f45ad03633ee6876e2da5bbb3475ac12776c2f060712bac0757351 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/default.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/default.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "pages/default.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 6
$this->loadTemplate("fragments/_banner.html.twig", "pages/default.html.twig", 6)->display($context);
// line 7
echo " ";
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", false, false, false, 7)) {
// line 8
echo " <div class=\"container-fluid intro dark\">
<div class=\"container\">
<div class=\"row justify-content-center\">
<div class=\"col-12 mb-3 p-5\">
";
// line 12
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", false, false, false, 12);
echo "
</div>
</div>
</div>
</div>
";
}
// line 18
echo " ";
if (twig_length_filter($this->env, 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.', 18, $this->source); })()), "contenu", [], "any", false, false, false, 18))) {
// line 19
echo " ";
$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.', 19, $this->source); })()), "contenu", [], "any", false, false, false, 19));
foreach ($context['_seq'] as $context["_key"] => $context["contenu"]) {
// line 20
echo " <div class=\"container-fluid article mb-3\">
<div class=\"container\">
<div class=\"row\">
";
// line 23
if (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["contenu"], "images", [], "any", false, false, false, 23))) {
// line 24
echo " ";
$context["colSize"] = 8;
// line 25
echo " <div class=\"col-lg-";
echo (((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["contenu"], "type", [], "any", false, false, false, 25), "galerie"))) ? (12) : (4));
echo " p-0 gallery ";
if ((((twig_get_attribute($this->env, $this->source, $context["contenu"], "titre", [], "any", true, true, false, 25)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["contenu"], "titre", [], "any", false, false, false, 25), null)) : (null)) || ((twig_get_attribute($this->env, $this->source, $context["contenu"], "texte", [], "any", true, true, false, 25)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["contenu"], "texte", [], "any", false, false, false, 25), null)) : (null)))) {
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["contenu"], "titre", [], "any", false, false, false, 25), "html", null, true);
echo " ";
}
echo "\">
<div class=\"swiper-galerie";
// line 26
echo (((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["contenu"], "type", [], "any", false, false, false, 26), "galerie"))) ? ("-wide") : (""));
echo " swiper h-100\">
<div class=\"swiper-wrapper\">
";
// line 28
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["contenu"], "images", [], "any", false, false, false, 28));
foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
// line 29
echo " <div class=\"swiper-slide\">
<a href=\"";
// line 30
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, 30), "sulu-large", [], "array", false, false, false, 30), "html", null, true);
echo "\" data-toggle=\"lightbox\" data-gallery=\"galerie\">
<img src=\"";
// line 31
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, 31), "sulu-4-3", [], "array", false, false, false, 31), "html", null, true);
echo "\" class=\"img-cover\">
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 35
echo " </div>
<div class=\"swiper-button-prev\"></div>
<div class=\"swiper-button-next\"></div>
</div>
</div>
";
}
// line 41
echo " ";
if ((((twig_get_attribute($this->env, $this->source, $context["contenu"], "titre", [], "any", true, true, false, 41)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["contenu"], "titre", [], "any", false, false, false, 41), null)) : (null)) || ((twig_get_attribute($this->env, $this->source, $context["contenu"], "texte", [], "any", true, true, false, 41)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["contenu"], "texte", [], "any", false, false, false, 41), null)) : (null)))) {
// line 42
echo " <div class=\"col-lg-";
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", null, true);
echo " mb-3 p-3 p-lg-5 infos ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["contenu"], "titre", [], "any", false, false, false, 42), "html", null, true);
echo "\">
<h2 class=\"fs-2 mb-4 text-primary border-bottom border-primary border-2 pb-3\">";
// line 43
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["contenu"], "titre", [], "any", false, false, false, 43), "html", null, true);
echo "</h2>
";
// line 44
echo twig_get_attribute($this->env, $this->source, $context["contenu"], "texte", [], "any", false, false, false, 44);
echo "
</div>
";
}
// line 47
echo " </div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contenu'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 51
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "pages/default.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% block content %}
{% include \"fragments/_banner.html.twig\" %}
{% if content.article %}
<div class=\"container-fluid intro dark\">
<div class=\"container\">
<div class=\"row justify-content-center\">
<div class=\"col-12 mb-3 p-5\">
{{ content.article|raw }}
</div>
</div>
</div>
</div>
{% endif %}
{% if content.contenu|length %}
{% for contenu in content.contenu %}
<div class=\"container-fluid article mb-3\">
<div class=\"container\">
<div class=\"row\">
{% if contenu.images|length %}
{% set colSize = 8 %}
<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 %}\">
<div class=\"swiper-galerie{{ contenu.type == 'galerie' ? '-wide' : ''}} swiper h-100\">
<div class=\"swiper-wrapper\">
{% for media in contenu.images %}
<div class=\"swiper-slide\">
<a href=\"{{ media.formats['sulu-large'] }}\" data-toggle=\"lightbox\" data-gallery=\"galerie\">
<img src=\"{{ media.formats['sulu-4-3'] }}\" class=\"img-cover\">
</a>
</div>
{% endfor %}
</div>
<div class=\"swiper-button-prev\"></div>
<div class=\"swiper-button-next\"></div>
</div>
</div>
{% endif %}
{% if contenu.titre|default(null) or contenu.texte|default(null) %}
<div class=\"col-lg-{{ colSize|default(12) }} mb-3 p-3 p-lg-5 infos {{ contenu.titre }}\">
<h2 class=\"fs-2 mb-4 text-primary border-bottom border-primary border-2 pb-3\">{{ contenu.titre }}</h2>
{{ contenu.texte|raw }}
</div>
{% endif %}
</div>
</div>
</div>
{% endfor %}
{% endif %}
{% endblock %}
", "pages/default.html.twig", "/var/www/vhosts/fereol-depannage.com/preprod.fereol-depannage.com/templates/pages/default.html.twig");
}
}