var/cache/dev/twig/c8/c869de9d94a70f1dd60630c7bf375c8e.php line 33

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. /* @openform_front_templates/News/components/_list.html.twig */
  14. class __TwigTemplate_b7cc01efaaa0e105c3859e6569f9b43b extends 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@openform_front_templates/News/components/_list.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@openform_front_templates/News/components/_list.html.twig"));
  33.         // line 1
  34.         $context['_parent'] = $context;
  35.         $context['_seq'] = twig_ensure_traversable((isset($context["entities"]) || array_key_exists("entities"$context) ? $context["entities"] : (function () { throw new RuntimeError('Variable "entities" does not exist.'1$this->source); })()));
  36.         $context['loop'] = [
  37.           'parent' => $context['_parent'],
  38.           'index0' => 0,
  39.           'index'  => 1,
  40.           'first'  => true,
  41.         ];
  42.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  43.             $length count($context['_seq']);
  44.             $context['loop']['revindex0'] = $length 1;
  45.             $context['loop']['revindex'] = $length;
  46.             $context['loop']['length'] = $length;
  47.             $context['loop']['last'] = === $length;
  48.         }
  49.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  50.             // line 2
  51.             echo "    ";
  52.             $this->loadTemplate("@openform_front_templates/News/_item.html.twig""@openform_front_templates/News/components/_list.html.twig"2)->display(twig_array_merge($context, ["item" => $context["item"]]));
  53.             ++$context['loop']['index0'];
  54.             ++$context['loop']['index'];
  55.             $context['loop']['first'] = false;
  56.             if (isset($context['loop']['length'])) {
  57.                 --$context['loop']['revindex0'];
  58.                 --$context['loop']['revindex'];
  59.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  60.             }
  61.         }
  62.         $_parent $context['_parent'];
  63.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  64.         $context array_intersect_key($context$_parent) + $_parent;
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.         
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  69.     }
  70.     public function getTemplateName()
  71.     {
  72.         return "@openform_front_templates/News/components/_list.html.twig";
  73.     }
  74.     public function isTraitable()
  75.     {
  76.         return false;
  77.     }
  78.     public function getDebugInfo()
  79.     {
  80.         return array (  60 => 2,  43 => 1,);
  81.     }
  82.     public function getSourceContext()
  83.     {
  84.         return new Source("{% for item in entities %}
  85.     {% include '@openform_front_templates/News/_item.html.twig' with {item} %}
  86. {% endfor %}""@openform_front_templates/News/components/_list.html.twig""/var/www/php81/fpd.in.openform.pl/src/Package/Openform/Front/Templates/News/components/_list.html.twig");
  87.     }
  88. }