<?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;
/* bloc/liste.html.twig */
class __TwigTemplate_e2e87c5ee485b5cccb9a1fe9f73ddcbe4802ac91f5f057d18a8a55afe9281f82 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "bloc/liste.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "bloc/liste.html.twig"));
// line 1
echo "<section class=\"blocs\">
";
// line 2
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["lienBlocs"]) || array_key_exists("lienBlocs", $context) ? $context["lienBlocs"] : (function () { throw new RuntimeError('Variable "lienBlocs" does not exist.', 2, $this->source); })()));
$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["lienBloc"]) {
// line 3
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["lienBloc"], "visible", [], "any", false, false, false, 3) === true)) {
// line 4
echo " <div class=\"bloc bloc-type-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["lienBloc"], "bloc", [], "any", false, false, false, 4), "type", [], "any", false, false, false, 4), "html", null, true);
echo " bloc-fond-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["lienBloc"], "bloc", [], "any", false, false, false, 4), "fond", [], "any", false, false, false, 4), "html", null, true);
echo " pt-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["lienBloc"], "bloc", [], "any", false, false, false, 4), "espacementHaut", [], "any", false, false, false, 4), "html", null, true);
echo " pb-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["lienBloc"], "bloc", [], "any", false, false, false, 4), "espacementBas", [], "any", false, false, false, 4), "html", null, true);
echo "\">
";
// line 5
$this->loadTemplate((("bloc/_bloc_" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["lienBloc"], "bloc", [], "any", false, false, false, 5), "type", [], "any", false, false, false, 5)) . ".html.twig"), "bloc/liste.html.twig", 5)->display(twig_array_merge($context, ["bloc" => twig_get_attribute($this->env, $this->source, $context["lienBloc"], "bloc", [], "any", false, false, false, 5)]));
// line 6
echo " </div>
";
}
// line 8
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['lienBloc'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 9
echo "</section>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "bloc/liste.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 97 => 9, 83 => 8, 79 => 6, 77 => 5, 66 => 4, 63 => 3, 46 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<section class=\"blocs\">
{% for lienBloc in lienBlocs %}
{% if lienBloc.visible is same as(true) %}
<div class=\"bloc bloc-type-{{ lienBloc.bloc.type }} bloc-fond-{{ lienBloc.bloc.fond }} pt-{{ lienBloc.bloc.espacementHaut }} pb-{{ lienBloc.bloc.espacementBas }}\">
{% include 'bloc/_bloc_' ~ lienBloc.bloc.type ~ '.html.twig' with {'bloc' : lienBloc.bloc} %}
</div>
{% endif %}
{% endfor %}
</section>", "bloc/liste.html.twig", "/home/promostamt/dev/templates/bloc/liste.html.twig");
}
}