var/cache/dev/twig/97/97557ed70086f36253333c97f9e8166e.php line 47

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. /* content/category_imageset/index.html.twig */
  14. class __TwigTemplate_6083b46f3eb00acdc875b726fb840de5 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->blocks = [
  23.             'body' => [$this'block_body'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return $this->loadTemplate($this->extensions['App\Twig\MiscExtension']->getBaseTemplateName(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1$this->source); })()), "request", [], "any"falsefalsefalse1)), "content/category_imageset/index.html.twig"1);
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/category_imageset/index.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/category_imageset/index.html.twig"));
  38.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  39.         
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  41.         
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  43.     }
  44.     // line 3
  45.     public function block_body($context, array $blocks = [])
  46.     {
  47.         $macros $this->macros;
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  52.         // line 4
  53.         echo "    ";
  54.         $this->loadTemplate("_structure/menu-tabs-categories.html.twig""content/category_imageset/index.html.twig"4)->display($context);
  55.         // line 5
  56.         echo "
  57.     ";
  58.         // line 6
  59.         $context['_parent'] = $context;
  60.         $context['_seq'] = twig_ensure_traversable((isset($context["tree"]) || array_key_exists("tree"$context) ? $context["tree"] : (function () { throw new RuntimeError('Variable "tree" does not exist.'6$this->source); })()));
  61.         $context['loop'] = [
  62.           'parent' => $context['_parent'],
  63.           'index0' => 0,
  64.           'index'  => 1,
  65.           'first'  => true,
  66.         ];
  67.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  68.             $length count($context['_seq']);
  69.             $context['loop']['revindex0'] = $length 1;
  70.             $context['loop']['revindex'] = $length;
  71.             $context['loop']['length'] = $length;
  72.             $context['loop']['last'] = === $length;
  73.         }
  74.         foreach ($context['_seq'] as $context["_key"] => $context["group"]) {
  75.             // line 7
  76.             echo "        <h2>";
  77.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["group"], "name", [], "any"falsefalsefalse7), "html"nulltrue);
  78.             echo "</h2>
  79.         <div class=\"resultlist row\">
  80.             ";
  81.             // line 9
  82.             $context['_parent'] = $context;
  83.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["group"], "categories", [], "any"falsefalsefalse9));
  84.             $context['loop'] = [
  85.               'parent' => $context['_parent'],
  86.               'index0' => 0,
  87.               'index'  => 1,
  88.               'first'  => true,
  89.             ];
  90.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  91.                 $length count($context['_seq']);
  92.                 $context['loop']['revindex0'] = $length 1;
  93.                 $context['loop']['revindex'] = $length;
  94.                 $context['loop']['length'] = $length;
  95.                 $context['loop']['last'] = === $length;
  96.             }
  97.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  98.                 // line 10
  99.                 echo "                ";
  100.                 $this->loadTemplate("_widgets/category.html.twig""content/category_imageset/index.html.twig"10)->display(twig_array_merge($context, ["type" => "imageset""group" => $context["group"], "item" => $context["category"], "slugField" => "imageset_slug"]));
  101.                 // line 11
  102.                 echo "            ";
  103.                 ++$context['loop']['index0'];
  104.                 ++$context['loop']['index'];
  105.                 $context['loop']['first'] = false;
  106.                 if (isset($context['loop']['length'])) {
  107.                     --$context['loop']['revindex0'];
  108.                     --$context['loop']['revindex'];
  109.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  110.                 }
  111.             }
  112.             $_parent $context['_parent'];
  113.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  114.             $context array_intersect_key($context$_parent) + $_parent;
  115.             // line 12
  116.             echo "        </div>
  117.     ";
  118.             ++$context['loop']['index0'];
  119.             ++$context['loop']['index'];
  120.             $context['loop']['first'] = false;
  121.             if (isset($context['loop']['length'])) {
  122.                 --$context['loop']['revindex0'];
  123.                 --$context['loop']['revindex'];
  124.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  125.             }
  126.         }
  127.         $_parent $context['_parent'];
  128.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['group'], $context['_parent'], $context['loop']);
  129.         $context array_intersect_key($context$_parent) + $_parent;
  130.         
  131.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  132.         
  133.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  134.     }
  135.     public function getTemplateName()
  136.     {
  137.         return "content/category_imageset/index.html.twig";
  138.     }
  139.     public function isTraitable()
  140.     {
  141.         return false;
  142.     }
  143.     public function getDebugInfo()
  144.     {
  145.         return array (  130 => 12,  116 => 11,  113 => 10,  96 => 9,  90 => 7,  73 => 6,  70 => 5,  67 => 4,  57 => 3,  35 => 1,);
  146.     }
  147.     public function getSourceContext()
  148.     {
  149.         return new Source("{% extends baseTemplateName(app.request) %}
  150. {% block body %}
  151.     {% include '_structure/menu-tabs-categories.html.twig' %}
  152.     {% for group in tree %}
  153.         <h2>{{ group.name }}</h2>
  154.         <div class=\"resultlist row\">
  155.             {% for category in group.categories %}
  156.                 {% include '_widgets/category.html.twig' with { type: 'imageset', group: group, item: category, slugField: 'imageset_slug' } %}
  157.             {% endfor %}
  158.         </div>
  159.     {% endfor %}
  160. {% endblock %}""content/category_imageset/index.html.twig""/var/www/frontend-dev/apps/frontend/templates/content/category_imageset/index.html.twig");
  161.     }
  162. }