<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* home/index.html.twig */
class __TwigTemplate_97606f7d009d83000777c54a0c2251f8 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title_suffix' => [$this, 'block_title_suffix'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
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", false, false, false, 1)), "home/index.html.twig", 1);
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "home/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "home/index.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_title_suffix($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title_suffix"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title_suffix"));
echo "Home";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 4
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 5
echo " <div class=\"kyc-phone-container\">
";
// line 6
if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MEMBER") && !$this->extensions['App\Twig\MemberExtension']->shallHardcore())) {
// line 7
echo " <div class=\"kyc-incentive-container gradient-danger\">
<h2><img src=\"";
// line 8
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/kyc/18.png"), "html", null, true);
echo "\"> Jetzt Hardcore freischalten!</h2>
<p>
Sichere dir den Zugang zu allen Hardcore-Inhalten - sofort & sicher!
</p>
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-xs-12 col-sm-6\">
<img src=\"";
// line 15
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/kyc/check.png"), "html", null, true);
echo "\"> Altersprüfung mit Yoti
</div>
<div class=\"col-xs-12 col-sm-6\">
<img src=\"";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/kyc/lock.png"), "html", null, true);
echo "\"> 100% Datenschutz
</div>
<div class=\"col-xs-12 col-sm-6\">
<img src=\"";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/kyc/rocket.png"), "html", null, true);
echo "\"> Sofortiger Zugriff nach Verifizierung
</div>
<div class=\"col-xs-12 col-sm-6\">
<img src=\"";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/kyc/flame.png"), "html", null, true);
echo "\"> 500 Coins geschenkt
</div>
</div>
</div>
<a href=\"";
// line 28
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_user_kyc_index");
echo "\">
<button class=\"btn\"> <img src=\"";
// line 29
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/kyc/finger.png"), "html", null, true);
echo "\"> Jetzt verifizieren & freischalten</button>
</a>
</div>
";
}
// line 33
echo " <div id=\"handy-banner\"></div>
</div>
<div class=\"slider-home mb-3\">
";
// line 37
$this->loadTemplate("_widgets/home-amateur-6.html.twig", "home/index.html.twig", 37)->display(twig_array_merge($context, ["amateurs" => (isset($context["onlineAmateurs"]) || array_key_exists("onlineAmateurs", $context) ? $context["onlineAmateurs"] : (function () { throw new RuntimeError('Variable "onlineAmateurs" does not exist.', 37, $this->source); })())]));
// line 38
echo " </div>
<div id=\"homepage-feed-container\" class=\"d-block ";
// line 40
if ((twig_get_attribute($this->env, $this->source, 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.', 40, $this->source); })()), "request", [], "any", false, false, false, 40), "pathInfo", [], "any", false, false, false, 40) != "/infostream")) {
echo "d-md-none";
}
echo "\">
<ul id=\"react-homepage-feed\" class=\"p-0\"></ul>
";
// line 42
if ((null === 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.', 42, $this->source); })()), "user", [], "any", false, false, false, 42))) {
// line 43
echo " <div id=\"jquery-homepage-feed\">
";
// line 44
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(((twig_get_attribute($this->env, $this->source, ($context["feedHtmls"] ?? null), "initial", [], "any", true, true, false, 44)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["feedHtmls"] ?? null), "initial", [], "any", false, false, false, 44), [])) : ([])));
foreach ($context['_seq'] as $context["_key"] => $context["itemHtml"]) {
// line 45
echo " <div class=\"feed-item\">";
echo $context["itemHtml"];
echo "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['itemHtml'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 47
echo " </div>
";
}
// line 49
echo " </div>
<hr class=\"d-block d-md-none\">
<h2 class=\"mb-3\">Ausgewählte Amateure ...</h2>
<div class=\"resultlist row\">
";
// line 54
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["otherAmateurs"]) || array_key_exists("otherAmateurs", $context) ? $context["otherAmateurs"] : (function () { throw new RuntimeError('Variable "otherAmateurs" does not exist.', 54, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["amateur"]) {
// line 55
echo " ";
$this->loadTemplate("_widgets/home-amateur.html.twig", "home/index.html.twig", 55)->display(twig_array_merge($context, ["member" => $context["amateur"]]));
// line 56
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['amateur'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 57
echo " </div>
<a href=\"";
// line 58
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_user_amateur_online");
echo "\" class=\"btn btn-secondary btn-block mb-3 frivol-xhr\">Mehr Amateure zum kennenlernen</a>
<h2 class=\"mb-3\">Top Videos unserer Amateure</h2>
<div class=\"resultlist row\">
";
// line 62
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["videos"]) || array_key_exists("videos", $context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.', 62, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
// line 63
echo " ";
$this->loadTemplate("_widgets/home-content-video.html.twig", "home/index.html.twig", 63)->display(twig_array_merge($context, ["video" => $context["video"]]));
// line 64
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 65
echo " </div>
<a href=\"";
// line 66
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_content_video_topmonth");
echo "\" class=\"btn btn-secondary btn-block frivol-xhr\">Mehr Videos</a>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 71
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 72
echo " ";
if (( !twig_get_attribute($this->env, $this->source, 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.', 72, $this->source); })()), "request", [], "any", false, false, false, 72), "isXmlHttpRequest", [], "any", false, false, false, 72) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MEMBER"))) {
// line 73
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
} else {
// line 75
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script type=\"text/javascript\">
\$(function() {
let msgs = [
";
// line 79
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(((twig_get_attribute($this->env, $this->source, ($context["feedHtmls"] ?? null), "delayed", [], "any", true, true, false, 79)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["feedHtmls"] ?? null), "delayed", [], "any", false, false, false, 79), [])) : ([])));
foreach ($context['_seq'] as $context["delay"] => $context["feedItem"]) {
// line 80
echo " {'delay': ";
echo twig_escape_filter($this->env, ($context["delay"] * 1000), "html", null, true);
echo ", 'html': '<div class=\"feed-item\">";
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $context["feedItem"], "js"), "html", null, true);
echo "</div>'},
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['delay'], $context['feedItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 82
echo " ];
msgs.forEach(function(val) {
setTimeout(function () {
\$('#jquery-homepage-feed').prepend(val.html);
\$('#jquery-homepage-feed .feed-item:last-child').remove();
}, val.delay);
});
});
</script>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "home/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 326 => 82, 315 => 80, 311 => 79, 303 => 75, 297 => 73, 294 => 72, 284 => 71, 271 => 66, 268 => 65, 254 => 64, 251 => 63, 234 => 62, 227 => 58, 224 => 57, 210 => 56, 207 => 55, 190 => 54, 183 => 49, 179 => 47, 170 => 45, 166 => 44, 163 => 43, 161 => 42, 154 => 40, 150 => 38, 148 => 37, 142 => 33, 135 => 29, 131 => 28, 124 => 24, 118 => 21, 112 => 18, 106 => 15, 96 => 8, 93 => 7, 91 => 6, 88 => 5, 78 => 4, 59 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends baseTemplateName(app.request) %}
{% block title_suffix %}Home{% endblock %}
{% block body %}
<div class=\"kyc-phone-container\">
{% if is_granted('ROLE_MEMBER') and not shallHardcore() %}
<div class=\"kyc-incentive-container gradient-danger\">
<h2><img src=\"{{ asset('build/images/kyc/18.png') }}\"> Jetzt Hardcore freischalten!</h2>
<p>
Sichere dir den Zugang zu allen Hardcore-Inhalten - sofort & sicher!
</p>
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-xs-12 col-sm-6\">
<img src=\"{{ asset('build/images/kyc/check.png') }}\"> Altersprüfung mit Yoti
</div>
<div class=\"col-xs-12 col-sm-6\">
<img src=\"{{ asset('build/images/kyc/lock.png') }}\"> 100% Datenschutz
</div>
<div class=\"col-xs-12 col-sm-6\">
<img src=\"{{ asset('build/images/kyc/rocket.png') }}\"> Sofortiger Zugriff nach Verifizierung
</div>
<div class=\"col-xs-12 col-sm-6\">
<img src=\"{{ asset('build/images/kyc/flame.png') }}\"> 500 Coins geschenkt
</div>
</div>
</div>
<a href=\"{{ path('app_user_kyc_index')}}\">
<button class=\"btn\"> <img src=\"{{ asset('build/images/kyc/finger.png') }}\"> Jetzt verifizieren & freischalten</button>
</a>
</div>
{% endif %}
<div id=\"handy-banner\"></div>
</div>
<div class=\"slider-home mb-3\">
{% include '_widgets/home-amateur-6.html.twig' with { amateurs: onlineAmateurs } %}
</div>
<div id=\"homepage-feed-container\" class=\"d-block {% if app.request.pathInfo != '/infostream' %}d-md-none{% endif %}\">
<ul id=\"react-homepage-feed\" class=\"p-0\"></ul>
{% if app.user is null %}
<div id=\"jquery-homepage-feed\">
{% for itemHtml in feedHtmls.initial|default([]) %}
<div class=\"feed-item\">{{ itemHtml|raw }}</div>
{% endfor %}
</div>
{% endif %}
</div>
<hr class=\"d-block d-md-none\">
<h2 class=\"mb-3\">Ausgewählte Amateure ...</h2>
<div class=\"resultlist row\">
{% for amateur in otherAmateurs %}
{% include '_widgets/home-amateur.html.twig' with { member: amateur } %}
{% endfor %}
</div>
<a href=\"{{ path('app_user_amateur_online') }}\" class=\"btn btn-secondary btn-block mb-3 frivol-xhr\">Mehr Amateure zum kennenlernen</a>
<h2 class=\"mb-3\">Top Videos unserer Amateure</h2>
<div class=\"resultlist row\">
{% for video in videos %}
{% include '_widgets/home-content-video.html.twig' with { video: video } %}
{% endfor %}
</div>
<a href=\"{{ path('app_content_video_topmonth') }}\" class=\"btn btn-secondary btn-block frivol-xhr\">Mehr Videos</a>
{% endblock %}
{% block javascripts %}
{% if not app.request.isXmlHttpRequest and is_granted('ROLE_MEMBER') %}
{{ parent() }}
{% else %}
{{ parent() }}
<script type=\"text/javascript\">
\$(function() {
let msgs = [
{% for delay,feedItem in feedHtmls.delayed|default([]) %}
{'delay': {{ delay * 1000 }}, 'html': '<div class=\"feed-item\">{{ feedItem|e('js') }}</div>'},
{% endfor %}
];
msgs.forEach(function(val) {
setTimeout(function () {
\$('#jquery-homepage-feed').prepend(val.html);
\$('#jquery-homepage-feed .feed-item:last-child').remove();
}, val.delay);
});
});
</script>
{% endif %}
{% endblock %}
", "home/index.html.twig", "/var/www/frontend-dev/apps/frontend/templates/home/index.html.twig");
}
}