var/cache/website/dev/twig/b2/b21233b2bd6d69d619c27274eaea9675135311ebaf7c76dee53970e58e0de5cd.php line 66

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* blocks/preview-thematiques-logic.html.twig */
  15. class __TwigTemplate_dcf8c2aee1e796707f8d46bafcb53649867217f48f3ed8f61114b28fc20fd2e5 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blocks/preview-thematiques-logic.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blocks/preview-thematiques-logic.html.twig"));
  34.         // line 1
  35.         yield "<div class=\"articles-container mt-40px\">
  36. \t<div class=\"preview-articles dflex fwwrap jcsa\">
  37. \t\t";
  38.         // line 3
  39.         $context['_parent'] = $context;
  40.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'3$this->source); })()));
  41.         $context['loop'] = [
  42.           'parent' => $context['_parent'],
  43.           'index0' => 0,
  44.           'index'  => 1,
  45.           'first'  => true,
  46.         ];
  47.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  48.             $length count($context['_seq']);
  49.             $context['loop']['revindex0'] = $length 1;
  50.             $context['loop']['revindex'] = $length;
  51.             $context['loop']['length'] = $length;
  52.             $context['loop']['last'] = === $length;
  53.         }
  54.         foreach ($context['_seq'] as $context["i"] => $context["category"]) {
  55.             // line 4
  56.             yield "            ";
  57.             yield from             $this->loadTemplate("blocks/previews/preview-thematique-logic.html.twig""blocks/preview-thematiques-logic.html.twig"4)->unwrap()->yield($context);
  58.             // line 5
  59.             yield "        ";
  60.             ++$context['loop']['index0'];
  61.             ++$context['loop']['index'];
  62.             $context['loop']['first'] = false;
  63.             if (isset($context['loop']['length'])) {
  64.                 --$context['loop']['revindex0'];
  65.                 --$context['loop']['revindex'];
  66.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  67.             }
  68.         }
  69.         $_parent $context['_parent'];
  70.         unset($context['_seq'], $context['_iterated'], $context['i'], $context['category'], $context['_parent'], $context['loop']);
  71.         $context array_intersect_key($context$_parent) + $_parent;
  72.         // line 6
  73.         yield "\t</div>
  74. </div>
  75. ";
  76.         
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  78.         
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  80.         return; yield '';
  81.     }
  82.     /**
  83.      * @codeCoverageIgnore
  84.      */
  85.     public function getTemplateName()
  86.     {
  87.         return "blocks/preview-thematiques-logic.html.twig";
  88.     }
  89.     /**
  90.      * @codeCoverageIgnore
  91.      */
  92.     public function isTraitable()
  93.     {
  94.         return false;
  95.     }
  96.     /**
  97.      * @codeCoverageIgnore
  98.      */
  99.     public function getDebugInfo()
  100.     {
  101.         return array (  82 => 6,  68 => 5,  65 => 4,  48 => 3,  44 => 1,);
  102.     }
  103.     public function getSourceContext()
  104.     {
  105.         return new Source("<div class=\"articles-container mt-40px\">
  106. \t<div class=\"preview-articles dflex fwwrap jcsa\">
  107. \t\t{% for i, category in categories %}
  108.             {% include \"blocks/previews/preview-thematique-logic.html.twig\" %}
  109.         {% endfor %}
  110. \t</div>
  111. </div>
  112. ""blocks/preview-thematiques-logic.html.twig""/var/www/html/templates/blocks/preview-thematiques-logic.html.twig");
  113.     }
  114. }