var/cache/website/dev/twig/62/62098efe19dfd881c453cf9ca80de7e25aa5146913e9f9bad4fd9340ef9c5c3b.php line 34

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-content-logic.html.twig */
  15. class __TwigTemplate_1466ac17e69bc51ce9ffbc56e594c496b567df13918152f9688b6c383b3826d9 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-content-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-content-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.         if ((CoreExtension::getAttribute($this->env$this->source, ($context["block"] ?? null), "show_articles", [], "any"truetruefalse3) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'3$this->source); })()), "show_articles", [], "any"falsefalsefalse3)))) {
  40.             // line 4
  41.             yield "\t\t\t";
  42.             if ((CoreExtension::getAttribute($this->env$this->source, ($context["block"] ?? null), "slider_mode", [], "any"truetruefalse4) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'4$this->source); })()), "slider_mode", [], "any"falsefalsefalse4)))) {
  43.                 // line 5
  44.                 yield "\t\t\t\t<div class=\"splide-photo splide\" aria-label=\"En lien avec\">
  45. \t\t\t\t\t<div class=\"splide__track\">
  46. \t\t\t\t\t\t<ul class=\"splide__list mb-3p5em\">
  47. \t\t\t\t\t\t";
  48.             }
  49.             // line 9
  50.             yield "\t\t\t\t\t\t";
  51.             $context['_parent'] = $context;
  52.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'9$this->source); })()));
  53.             $context['loop'] = [
  54.               'parent' => $context['_parent'],
  55.               'index0' => 0,
  56.               'index'  => 1,
  57.               'first'  => true,
  58.             ];
  59.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  60.                 $length count($context['_seq']);
  61.                 $context['loop']['revindex0'] = $length 1;
  62.                 $context['loop']['revindex'] = $length;
  63.                 $context['loop']['length'] = $length;
  64.                 $context['loop']['last'] = === $length;
  65.             }
  66.             foreach ($context['_seq'] as $context["i"] => $context["article"]) {
  67.                 // line 10
  68.                 yield "\t\t\t\t\t\t\t";
  69.                 yield from                 $this->loadTemplate("blocks/sort-articles.html.twig""blocks/preview-content-logic.html.twig"10)->unwrap()->yield(CoreExtension::merge($context, ["type" => CoreExtension::getAttribute($this->env$this->source$context["article"], "type", [], "any"falsefalsefalse10)]));
  70.                 // line 11
  71.                 yield "\t\t\t\t\t\t";
  72.                 ++$context['loop']['index0'];
  73.                 ++$context['loop']['index'];
  74.                 $context['loop']['first'] = false;
  75.                 if (isset($context['loop']['length'])) {
  76.                     --$context['loop']['revindex0'];
  77.                     --$context['loop']['revindex'];
  78.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  79.                 }
  80.             }
  81.             $_parent $context['_parent'];
  82.             unset($context['_seq'], $context['_iterated'], $context['i'], $context['article'], $context['_parent'], $context['loop']);
  83.             $context array_intersect_key($context$_parent) + $_parent;
  84.             // line 12
  85.             yield "\t\t\t\t\t\t";
  86.             if ((CoreExtension::getAttribute($this->env$this->source, ($context["block"] ?? null), "slider_mode", [], "any"truetruefalse12) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'12$this->source); })()), "slider_mode", [], "any"falsefalsefalse12)))) {
  87.                 // line 13
  88.                 yield "\t\t\t\t\t\t</ul>
  89. \t\t\t\t\t</div>
  90. \t\t\t\t</div>
  91. \t\t\t";
  92.             }
  93.             // line 17
  94.             yield "\t\t";
  95.         }
  96.         // line 18
  97.         yield "\t</div>
  98. </div>
  99. ";
  100.         
  101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  102.         
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  104.         return; yield '';
  105.     }
  106.     /**
  107.      * @codeCoverageIgnore
  108.      */
  109.     public function getTemplateName()
  110.     {
  111.         return "blocks/preview-content-logic.html.twig";
  112.     }
  113.     /**
  114.      * @codeCoverageIgnore
  115.      */
  116.     public function isTraitable()
  117.     {
  118.         return false;
  119.     }
  120.     /**
  121.      * @codeCoverageIgnore
  122.      */
  123.     public function getDebugInfo()
  124.     {
  125.         return array (  106 => 18,  103 => 17,  97 => 13,  94 => 12,  80 => 11,  77 => 10,  59 => 9,  53 => 5,  50 => 4,  48 => 3,  44 => 1,);
  126.     }
  127.     public function getSourceContext()
  128.     {
  129.         return new Source("<div class=\"articles-container mt-40px\">
  130. \t<div class=\"preview-articles dflex fwwrap jcsa\">
  131. \t\t{% if block.show_articles is defined and block.show_articles is not empty %}
  132. \t\t\t{% if block.slider_mode is defined and block.slider_mode is not empty %}
  133. \t\t\t\t<div class=\"splide-photo splide\" aria-label=\"En lien avec\">
  134. \t\t\t\t\t<div class=\"splide__track\">
  135. \t\t\t\t\t\t<ul class=\"splide__list mb-3p5em\">
  136. \t\t\t\t\t\t{% endif %}
  137. \t\t\t\t\t\t{% for i, article in articles %}
  138. \t\t\t\t\t\t\t{% include \"blocks/sort-articles.html.twig\" with {type: article.type} %}
  139. \t\t\t\t\t\t{% endfor %}
  140. \t\t\t\t\t\t{% if block.slider_mode is defined and block.slider_mode is not empty %}
  141. \t\t\t\t\t\t</ul>
  142. \t\t\t\t\t</div>
  143. \t\t\t\t</div>
  144. \t\t\t{% endif %}
  145. \t\t{% endif %}
  146. \t</div>
  147. </div>
  148. ""blocks/preview-content-logic.html.twig""/var/www/html/templates/blocks/preview-content-logic.html.twig");
  149.     }
  150. }