var/cache/dev/twig/d3/d38727ea12538e4c11ab512995518de2.php line 48

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/topweek.html.twig */
  14. class __TwigTemplate_d4d700987adb0f5432660a4fcebbda0b 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.             'title_suffix' => [$this'block_title_suffix'],
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         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/topweek.html.twig"1);
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/video/topweek.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/video/topweek.html.twig"));
  39.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 2
  46.     public function block_title_suffix($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title_suffix"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title_suffix"));
  53.         echo "Top Videos der Woche - Seite ";
  54.         echo twig_escape_filter($this->env, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'2$this->source); })()), "html"nulltrue);
  55.         
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57.         
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59.     }
  60.     // line 4
  61.     public function block_body($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         // line 5
  69.         echo "    ";
  70.         $this->loadTemplate("_structure/menu-tabs-video.html.twig""content/video/topweek.html.twig"5)->display($context);
  71.         // line 6
  72.         echo "
  73.     ";
  74.         // line 17
  75.         echo "
  76.     <div class=\"resultlist row\">
  77.         ";
  78.         // line 19
  79.         $context['_parent'] = $context;
  80.         $context['_seq'] = twig_ensure_traversable((isset($context["videos"]) || array_key_exists("videos"$context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.'19$this->source); })()));
  81.         $context['loop'] = [
  82.           'parent' => $context['_parent'],
  83.           'index0' => 0,
  84.           'index'  => 1,
  85.           'first'  => true,
  86.         ];
  87.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  88.             $length count($context['_seq']);
  89.             $context['loop']['revindex0'] = $length 1;
  90.             $context['loop']['revindex'] = $length;
  91.             $context['loop']['length'] = $length;
  92.             $context['loop']['last'] = === $length;
  93.         }
  94.         foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
  95.             // line 20
  96.             echo "            ";
  97.             $this->loadTemplate("_widgets/home-content-video.html.twig""content/video/topweek.html.twig"20)->display(twig_array_merge($context, ["video" => $context["video"]]));
  98.             // line 21
  99.             echo "        ";
  100.             ++$context['loop']['index0'];
  101.             ++$context['loop']['index'];
  102.             $context['loop']['first'] = false;
  103.             if (isset($context['loop']['length'])) {
  104.                 --$context['loop']['revindex0'];
  105.                 --$context['loop']['revindex'];
  106.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  107.             }
  108.         }
  109.         $_parent $context['_parent'];
  110.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
  111.         $context array_intersect_key($context$_parent) + $_parent;
  112.         // line 22
  113.         echo "    </div>
  114.     ";
  115.         // line 23
  116.         if (twig_length_filter($this->env, (isset($context["videos"]) || array_key_exists("videos"$context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.'23$this->source); })()))) {
  117.             // line 24
  118.             echo "        ";
  119.             echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["videos"]) || array_key_exists("videos"$context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.'24$this->source); })()));
  120.             echo "
  121.     ";
  122.         }
  123.         
  124.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  125.         
  126.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  127.     }
  128.     public function getTemplateName()
  129.     {
  130.         return "content/video/topweek.html.twig";
  131.     }
  132.     public function isTraitable()
  133.     {
  134.         return false;
  135.     }
  136.     public function getDebugInfo()
  137.     {
  138.         return array (  137 => 24,  135 => 23,  132 => 22,  118 => 21,  115 => 20,  98 => 19,  94 => 17,  91 => 6,  88 => 5,  78 => 4,  58 => 2,  36 => 1,);
  139.     }
  140.     public function getSourceContext()
  141.     {
  142.         return new Source("{% extends baseTemplateName(app.request) %}
  143. {% block title_suffix %}Top Videos der Woche - Seite {{ page }}{% endblock %}
  144. {% block body %}
  145.     {% include '_structure/menu-tabs-video.html.twig' %}
  146.     {# https://interquest.atlassian.net/browse/FE-7
  147.     <div class=\"filter row align-items-center bg-grey-10 py-3 mx-0 mb-4\">
  148.         <h6 class=\"col-1 mb-0\">Filter:</h6>
  149.         <form class=\"col-11\">
  150.             <select class=\"col-3 mr-3 form-control custom-select\"><option>Geschlecht: bitte wählen</option></select>
  151.             <select class=\"col-3 mr-3 form-control custom-select\"><option>Alter: bitte wählen</option></select>
  152.             <select class=\"col-3 form-control custom-select\"><option>PLZ: bitte wählen</option></select>
  153.         </form>
  154.     </div>
  155.     #}
  156.     <div class=\"resultlist row\">
  157.         {% for video in videos %}
  158.             {% include '_widgets/home-content-video.html.twig' with { video: video } %}
  159.         {% endfor %}
  160.     </div>
  161.     {% if videos|length %}
  162.         {{ knp_pagination_render(videos) }}
  163.     {% endif %}
  164. {% endblock %}""content/video/topweek.html.twig""/var/www/frontend-dev/apps/frontend/templates/content/video/topweek.html.twig");
  165.     }
  166. }