var/cache/dev/twig/b1/b114147d072824d3853249598f7453cd.php line 78

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. /* livecam/index.html.twig */
  14. class __TwigTemplate_cc13bf95a54c16758fbc9eefd91db108 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)), "livecam/index.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""livecam/index.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""livecam/index.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 "Live-Cams - Seite ";
  54.         echo twig_escape_filter($this->env, ((array_key_exists("page"$context)) ? (_twig_default_filter((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'2$this->source); })()), 1)) : (1)), "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.         $cached $this->env->getRuntime('Twig\Extra\Cache\CacheRuntime')->getCache()->get(("livecams-online-page-" . ((array_key_exists("page"$context)) ? (_twig_default_filter((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'5$this->source); })()), 1)) : (1))), function (\Symfony\Contracts\Cache\ItemInterface $item) use ($context$macros) {
  71.             $item->expiresAfter(5);
  72.             ob_start(function () { return ''; });
  73.             // line 6
  74.             echo "        ";
  75.             if (twig_length_filter($this->env, (isset($context["amateurs"]) || array_key_exists("amateurs"$context) ? $context["amateurs"] : (function () { throw new RuntimeError('Variable "amateurs" does not exist.'6$this->source); })()))) {
  76.                 // line 7
  77.                 echo "            <h2 class=\"mb-3\">Die besten online Amateure mit Live-Cam</h2>
  78.             <div class=\"resultlist row\">
  79.                 ";
  80.                 // line 9
  81.                 $context['_parent'] = $context;
  82.                 $context['_seq'] = twig_ensure_traversable((isset($context["amateurs"]) || array_key_exists("amateurs"$context) ? $context["amateurs"] : (function () { throw new RuntimeError('Variable "amateurs" does not exist.'9$this->source); })()));
  83.                 $context['loop'] = [
  84.                   'parent' => $context['_parent'],
  85.                   'index0' => 0,
  86.                   'index'  => 1,
  87.                   'first'  => true,
  88.                 ];
  89.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  90.                     $length count($context['_seq']);
  91.                     $context['loop']['revindex0'] = $length 1;
  92.                     $context['loop']['revindex'] = $length;
  93.                     $context['loop']['length'] = $length;
  94.                     $context['loop']['last'] = === $length;
  95.                 }
  96.                 foreach ($context['_seq'] as $context["_key"] => $context["amateur"]) {
  97.                     // line 10
  98.                     echo "                    ";
  99.                     $this->loadTemplate("_widgets/home-amateur.html.twig""livecam/index.html.twig"10)->display(twig_array_merge($context, ["member" => $context["amateur"]]));
  100.                     // line 11
  101.                     echo "                ";
  102.                     ++$context['loop']['index0'];
  103.                     ++$context['loop']['index'];
  104.                     $context['loop']['first'] = false;
  105.                     if (isset($context['loop']['length'])) {
  106.                         --$context['loop']['revindex0'];
  107.                         --$context['loop']['revindex'];
  108.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  109.                     }
  110.                 }
  111.                 $_parent $context['_parent'];
  112.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['amateur'], $context['_parent'], $context['loop']);
  113.                 $context array_intersect_key($context$_parent) + $_parent;
  114.                 // line 12
  115.                 echo "            </div>
  116.             ";
  117.                 // line 13
  118.                 if ($this->extensions['App\Twig\MiscExtension']->shouldSeePagination((isset($context["amateurs"]) || array_key_exists("amateurs"$context) ? $context["amateurs"] : (function () { throw new RuntimeError('Variable "amateurs" does not exist.'13$this->source); })()))) {
  119.                     // line 14
  120.                     echo "                ";
  121.                     echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["amateurs"]) || array_key_exists("amateurs"$context) ? $context["amateurs"] : (function () { throw new RuntimeError('Variable "amateurs" does not exist.'14$this->source); })()));
  122.                     echo "
  123.             ";
  124.                 }
  125.                 // line 16
  126.                 echo "        ";
  127.             }
  128.             // line 17
  129.             echo "        <h2> Online Amateure mit Live-Chat</h2>
  130.         <div class=\"resultlist row\">
  131.             ";
  132.             // line 19
  133.             $context['_parent'] = $context;
  134.             $context['_seq'] = twig_ensure_traversable((isset($context["online_amateurs"]) || array_key_exists("online_amateurs"$context) ? $context["online_amateurs"] : (function () { throw new RuntimeError('Variable "online_amateurs" does not exist.'19$this->source); })()));
  135.             $context['loop'] = [
  136.               'parent' => $context['_parent'],
  137.               'index0' => 0,
  138.               'index'  => 1,
  139.               'first'  => true,
  140.             ];
  141.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  142.                 $length count($context['_seq']);
  143.                 $context['loop']['revindex0'] = $length 1;
  144.                 $context['loop']['revindex'] = $length;
  145.                 $context['loop']['length'] = $length;
  146.                 $context['loop']['last'] = === $length;
  147.             }
  148.             foreach ($context['_seq'] as $context["_key"] => $context["amateur"]) {
  149.                 // line 20
  150.                 echo "                ";
  151.                 if ( !$this->extensions['App\Twig\AmateurExtension']->isWebcamOnline($context["amateur"])) {
  152.                     // line 21
  153.                     echo "                    ";
  154.                     $this->loadTemplate("_widgets/home-amateur.html.twig""livecam/index.html.twig"21)->display(twig_array_merge($context, ["member" => $context["amateur"]]));
  155.                     // line 22
  156.                     echo "                ";
  157.                 }
  158.                 // line 23
  159.                 echo "            ";
  160.                 ++$context['loop']['index0'];
  161.                 ++$context['loop']['index'];
  162.                 $context['loop']['first'] = false;
  163.                 if (isset($context['loop']['length'])) {
  164.                     --$context['loop']['revindex0'];
  165.                     --$context['loop']['revindex'];
  166.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  167.                 }
  168.             }
  169.             $_parent $context['_parent'];
  170.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['amateur'], $context['_parent'], $context['loop']);
  171.             $context array_intersect_key($context$_parent) + $_parent;
  172.             // line 24
  173.             echo "        </div>
  174.     ";
  175.             
  176.             return ob_get_clean();
  177.         });
  178.         echo '' === $cached '' : new Markup($cached$this->env->getCharset());
  179.         
  180.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  181.         
  182.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  183.     }
  184.     public function getTemplateName()
  185.     {
  186.         return "livecam/index.html.twig";
  187.     }
  188.     public function isTraitable()
  189.     {
  190.         return false;
  191.     }
  192.     public function getDebugInfo()
  193.     {
  194.         return array (  192 => 24,  178 => 23,  175 => 22,  172 => 21,  169 => 20,  152 => 19,  148 => 17,  145 => 16,  139 => 14,  137 => 13,  134 => 12,  120 => 11,  117 => 10,  100 => 9,  96 => 7,  93 => 6,  88 => 5,  78 => 4,  58 => 2,  36 => 1,);
  195.     }
  196.     public function getSourceContext()
  197.     {
  198.         return new Source("{% extends baseTemplateName(app.request) %}
  199. {% block title_suffix %}Live-Cams - Seite {{ page|default(1) }}{% endblock %}
  200. {% block body %}
  201.     {% cache \"livecams-online-page-\" ~ page|default(1)  ttl(5) %}
  202.         {% if amateurs|length %}
  203.             <h2 class=\"mb-3\">Die besten online Amateure mit Live-Cam</h2>
  204.             <div class=\"resultlist row\">
  205.                 {% for amateur in amateurs %}
  206.                     {% include '_widgets/home-amateur.html.twig' with { member: amateur } %}
  207.                 {% endfor %}
  208.             </div>
  209.             {% if shouldSeePagination(amateurs) %}
  210.                 {{ knp_pagination_render(amateurs) }}
  211.             {% endif %}
  212.         {% endif %}
  213.         <h2> Online Amateure mit Live-Chat</h2>
  214.         <div class=\"resultlist row\">
  215.             {% for amateur in online_amateurs %}
  216.                 {% if not isWebcamOnline(amateur) %}
  217.                     {% include '_widgets/home-amateur.html.twig' with { member: amateur } %}
  218.                 {% endif %}
  219.             {% endfor %}
  220.         </div>
  221.     {% endcache %}
  222. {% endblock %}
  223. ""livecam/index.html.twig""/var/www/frontend-dev/apps/frontend/templates/livecam/index.html.twig");
  224.     }
  225. }