var/cache/website/dev/twig/74/743e83106553ea724c8bb43a408a6e26ed910c10e0ecae046a0c5ed3b32c4373.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/linked-with.html.twig */
  15. class __TwigTemplate_a7a162e8ecde2e3e6d1daf0e7b148c41bd555069bb8659e4dfe7b2ca67939ec2 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/linked-with.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/linked-with.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 mt-40px fw400\">
  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 "                            ";
  75.                 if ((CoreExtension::getAttribute($this->env$this->source$context["article"], "content", [], "any"truetruefalse13) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source$context["article"], "content", [], "any"falsefalsefalse13)))) {
  76.                     // line 14
  77.                     yield "                                <li class=\"splide__slide\">
  78.                                     ";
  79.                     // line 15
  80.                     yield from                     $this->loadTemplate("blocks/sort-articles.html.twig""articles-blocks/linked-with.html.twig"15)->unwrap()->yield(CoreExtension::merge($context, ["type" => CoreExtension::getAttribute($this->env$this->source$context["article"], "type", [], "any"falsefalsefalse15), "articleContentLinkedWith" => CoreExtension::getAttribute($this->env$this->source$context["article"], "content", [], "any"falsefalsefalse15), "cancel" => true]));
  81.                     // line 16
  82.                     yield "                                </li>
  83.                             ";
  84.                 }
  85.                 // line 18
  86.                 yield "                        ";
  87.                 ++$context['loop']['index0'];
  88.                 ++$context['loop']['index'];
  89.                 $context['loop']['first'] = false;
  90.                 if (isset($context['loop']['length'])) {
  91.                     --$context['loop']['revindex0'];
  92.                     --$context['loop']['revindex'];
  93.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  94.                 }
  95.             }
  96.             $_parent $context['_parent'];
  97.             unset($context['_seq'], $context['_iterated'], $context['i'], $context['article'], $context['_parent'], $context['loop']);
  98.             $context array_intersect_key($context$_parent) + $_parent;
  99.             // line 19
  100.             yield "                    </ul>
  101.                 </div>
  102.             </div>
  103.         </div>
  104.     </section>
  105. ";
  106.         }
  107.         
  108.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  109.         
  110.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  111.         return; yield '';
  112.     }
  113.     /**
  114.      * @codeCoverageIgnore
  115.      */
  116.     public function getTemplateName()
  117.     {
  118.         return "articles-blocks/linked-with.html.twig";
  119.     }
  120.     /**
  121.      * @codeCoverageIgnore
  122.      */
  123.     public function isTraitable()
  124.     {
  125.         return false;
  126.     }
  127.     /**
  128.      * @codeCoverageIgnore
  129.      */
  130.     public function getDebugInfo()
  131.     {
  132.         return array (  109 => 19,  95 => 18,  91 => 16,  89 => 15,  86 => 14,  83 => 13,  66 => 12,  60 => 8,  54 => 5,  51 => 4,  49 => 3,  46 => 2,  44 => 1,);
  133.     }
  134.     public function getSourceContext()
  135.     {
  136.         return new Source("{% if data.articles is defined and data.articles is not empty and data.articles|length > 0 %}
  137.     <section class=\"linked-with mb-40px\">
  138.         {% if data.title is defined and data.title is not empty %}
  139.             <h2 class=\"fs30 lh36 mt-40px fw400\">
  140.                 {{ data.title }}
  141.             </h2>
  142.         {% endif %}
  143.         <div class=\"articles-container mt-40px\">
  144.             <div class=\"splide-photo splide\" aria-label=\"En lien avec\">
  145.                 <div class=\"splide__track\">
  146.                     <ul class=\"splide__list mb-3p5em\">
  147.                         {% for i, article in data.articles %}
  148.                             {% if article.content is defined and article.content is not empty %}
  149.                                 <li class=\"splide__slide\">
  150.                                     {% include \"blocks/sort-articles.html.twig\" with {type: article.type, articleContentLinkedWith: article.content, cancel: true} %}
  151.                                 </li>
  152.                             {% endif %}
  153.                         {% endfor %}
  154.                     </ul>
  155.                 </div>
  156.             </div>
  157.         </div>
  158.     </section>
  159. {% endif %}
  160. ""articles-blocks/linked-with.html.twig""/var/www/html/templates/articles-blocks/linked-with.html.twig");
  161.     }
  162. }