var/cache/dev/twig/90/9032bd39601e5887edd26546e16ce6e832abb981e3f12a7938f5d10a5eb9fa36.php line 77

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. /* bloc/liste.html.twig */
  14. class __TwigTemplate_e2e87c5ee485b5cccb9a1fe9f73ddcbe4802ac91f5f057d18a8a55afe9281f82 extends \Twig\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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""bloc/liste.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""bloc/liste.html.twig"));
  33.         // line 1
  34.         echo "<section class=\"blocs\">
  35.     ";
  36.         // line 2
  37.         $context['_parent'] = $context;
  38.         $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); })()));
  39.         $context['loop'] = [
  40.           'parent' => $context['_parent'],
  41.           'index0' => 0,
  42.           'index'  => 1,
  43.           'first'  => true,
  44.         ];
  45.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  46.             $length count($context['_seq']);
  47.             $context['loop']['revindex0'] = $length 1;
  48.             $context['loop']['revindex'] = $length;
  49.             $context['loop']['length'] = $length;
  50.             $context['loop']['last'] = === $length;
  51.         }
  52.         foreach ($context['_seq'] as $context["_key"] => $context["lienBloc"]) {
  53.             // line 3
  54.             echo "        ";
  55.             if ((twig_get_attribute($this->env$this->source$context["lienBloc"], "visible", [], "any"falsefalsefalse3) === true)) {
  56.                 // line 4
  57.                 echo "            <div class=\"bloc bloc-type-";
  58.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["lienBloc"], "bloc", [], "any"falsefalsefalse4), "type", [], "any"falsefalsefalse4), "html"nulltrue);
  59.                 echo " bloc-fond-";
  60.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["lienBloc"], "bloc", [], "any"falsefalsefalse4), "fond", [], "any"falsefalsefalse4), "html"nulltrue);
  61.                 echo " pt-";
  62.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["lienBloc"], "bloc", [], "any"falsefalsefalse4), "espacementHaut", [], "any"falsefalsefalse4), "html"nulltrue);
  63.                 echo " pb-";
  64.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["lienBloc"], "bloc", [], "any"falsefalsefalse4), "espacementBas", [], "any"falsefalsefalse4), "html"nulltrue);
  65.                 echo "\">
  66.                 ";
  67.                 // line 5
  68.                 $this->loadTemplate((("bloc/_bloc_" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["lienBloc"], "bloc", [], "any"falsefalsefalse5), "type", [], "any"falsefalsefalse5)) . ".html.twig"), "bloc/liste.html.twig"5)->display(twig_array_merge($context, ["bloc" => twig_get_attribute($this->env$this->source$context["lienBloc"], "bloc", [], "any"falsefalsefalse5)]));
  69.                 // line 6
  70.                 echo "            </div>
  71.         ";
  72.             }
  73.             // line 8
  74.             echo "    ";
  75.             ++$context['loop']['index0'];
  76.             ++$context['loop']['index'];
  77.             $context['loop']['first'] = false;
  78.             if (isset($context['loop']['length'])) {
  79.                 --$context['loop']['revindex0'];
  80.                 --$context['loop']['revindex'];
  81.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  82.             }
  83.         }
  84.         $_parent $context['_parent'];
  85.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lienBloc'], $context['_parent'], $context['loop']);
  86.         $context array_intersect_key($context$_parent) + $_parent;
  87.         // line 9
  88.         echo "</section>";
  89.         
  90.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  91.         
  92.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  93.     }
  94.     public function getTemplateName()
  95.     {
  96.         return "bloc/liste.html.twig";
  97.     }
  98.     public function isTraitable()
  99.     {
  100.         return false;
  101.     }
  102.     public function getDebugInfo()
  103.     {
  104.         return array (  97 => 9,  83 => 8,  79 => 6,  77 => 5,  66 => 4,  63 => 3,  46 => 2,  43 => 1,);
  105.     }
  106.     public function getSourceContext()
  107.     {
  108.         return new Source("<section class=\"blocs\">
  109.     {% for lienBloc in lienBlocs %}
  110.         {% if lienBloc.visible is same as(true) %}
  111.             <div class=\"bloc bloc-type-{{ lienBloc.bloc.type }} bloc-fond-{{ lienBloc.bloc.fond }} pt-{{ lienBloc.bloc.espacementHaut }} pb-{{ lienBloc.bloc.espacementBas }}\">
  112.                 {% include 'bloc/_bloc_' ~ lienBloc.bloc.type ~ '.html.twig' with {'bloc' : lienBloc.bloc} %}
  113.             </div>
  114.         {% endif %}
  115.     {% endfor %}
  116. </section>""bloc/liste.html.twig""/home/promostamt/dev/templates/bloc/liste.html.twig");
  117.     }
  118. }