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