var/cache/dev/twig/64/64a4fd53c9d79f017fa8994bb7e8c1a0.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/video/categories.html.twig */
  14. class __TwigTemplate_d1aff44f20b89dc5f0b6cb4cce44bc3d 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/video/categories.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/video/categories.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/video/categories.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-video.html.twig""content/video/categories.html.twig"4)->display($context);
  55.         // line 5
  56.         echo "    ";
  57.         $context['_parent'] = $context;
  58.         $context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'5$this->source); })()));
  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["_key"] => $context["group"]) {
  73.             // line 6
  74.             echo "        <h2>";
  75.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["group"], "name", [], "any"falsefalsefalse6), "html"nulltrue);
  76.             echo "</h2>
  77.         <div class=\"resultlist row\">
  78.             ";
  79.             // line 8
  80.             $context['_parent'] = $context;
  81.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["group"], "categories", [], "any"falsefalsefalse8));
  82.             $context['loop'] = [
  83.               'parent' => $context['_parent'],
  84.               'index0' => 0,
  85.               'index'  => 1,
  86.               'first'  => true,
  87.             ];
  88.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  89.                 $length count($context['_seq']);
  90.                 $context['loop']['revindex0'] = $length 1;
  91.                 $context['loop']['revindex'] = $length;
  92.                 $context['loop']['length'] = $length;
  93.                 $context['loop']['last'] = === $length;
  94.             }
  95.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  96.                 // line 9
  97.                 echo "                ";
  98.                 $this->loadTemplate("_widgets/category.html.twig""content/video/categories.html.twig"9)->display(twig_array_merge($context, ["type" => "video""group" => $context["group"], "item" => $context["category"], "slugField" => "video_slug"]));
  99.                 // line 10
  100.                 echo "            ";
  101.                 ++$context['loop']['index0'];
  102.                 ++$context['loop']['index'];
  103.                 $context['loop']['first'] = false;
  104.                 if (isset($context['loop']['length'])) {
  105.                     --$context['loop']['revindex0'];
  106.                     --$context['loop']['revindex'];
  107.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  108.                 }
  109.             }
  110.             $_parent $context['_parent'];
  111.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  112.             $context array_intersect_key($context$_parent) + $_parent;
  113.             // line 11
  114.             echo "        </div>
  115.     ";
  116.             ++$context['loop']['index0'];
  117.             ++$context['loop']['index'];
  118.             $context['loop']['first'] = false;
  119.             if (isset($context['loop']['length'])) {
  120.                 --$context['loop']['revindex0'];
  121.                 --$context['loop']['revindex'];
  122.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  123.             }
  124.         }
  125.         $_parent $context['_parent'];
  126.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['group'], $context['_parent'], $context['loop']);
  127.         $context array_intersect_key($context$_parent) + $_parent;
  128.         
  129.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  130.         
  131.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  132.     }
  133.     public function getTemplateName()
  134.     {
  135.         return "content/video/categories.html.twig";
  136.     }
  137.     public function isTraitable()
  138.     {
  139.         return false;
  140.     }
  141.     public function getDebugInfo()
  142.     {
  143.         return array (  128 => 11,  114 => 10,  111 => 9,  94 => 8,  88 => 6,  70 => 5,  67 => 4,  57 => 3,  35 => 1,);
  144.     }
  145.     public function getSourceContext()
  146.     {
  147.         return new Source("{% extends baseTemplateName(app.request) %}
  148. {% block body %}
  149.     {% include '_structure/menu-tabs-video.html.twig' %}
  150.     {% for group in categories %}
  151.         <h2>{{ group.name }}</h2>
  152.         <div class=\"resultlist row\">
  153.             {% for category in group.categories %}
  154.                 {% include '_widgets/category.html.twig' with { type: 'video', group: group, item: category, slugField: 'video_slug' } %}
  155.             {% endfor %}
  156.         </div>
  157.     {% endfor %}
  158. {% endblock %}
  159. ""content/video/categories.html.twig""/var/www/frontend-dev/apps/frontend/templates/content/video/categories.html.twig");
  160.     }
  161. }