<?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;
/* _widgets/aside-bonus.html.twig */
class __TwigTemplate_e8068a6eeeb1747185899c03015cc285 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "_widgets/aside-bonus.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "_widgets/aside-bonus.html.twig"));
// line 1
$macros["macro"] = $this->macros["macro"] = $this->loadTemplate("macros.html.twig", "_widgets/aside-bonus.html.twig", 1)->unwrap();
// line 2
echo "
<div id=\"aside-bonus\" class=\"m-0 d-none d-md-block p-0 w-100\">
<div class=\"slider-carousel\">
";
// line 5
$context["bonusData"] = $this->extensions['App\Twig\SidebarExtension']->getCurrentBonus();
// line 6
echo " ";
$context["marketingImageData"] = $this->extensions['App\Twig\SidebarExtension']->getCurrentMarketingImage();
// line 7
echo " ";
$this->loadTemplate("_widgets/aside-bonus-block.html.twig", "_widgets/aside-bonus.html.twig", 7)->display($context);
// line 8
echo " ";
$this->loadTemplate("_widgets/aside-marketingImage-block.html.twig", "_widgets/aside-bonus.html.twig", 8)->display($context);
// line 9
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\AmateurExtension']->getRandomOnlineAmateurs(10));
$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["member"]) {
// line 10
echo " <div class=\"item\">
<div class=\"card border-0 profile badge-container\">
";
// line 12
if (_twig_default_filter($this->extensions['App\Twig\AmateurExtension']->isWebcamOnline($context["member"]), false)) {
// line 13
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\MemberExtension']->getLivecamUri(twig_get_attribute($this->env, $this->source, $context["member"], "username", [], "any", false, false, false, 13)), "html", null, true);
echo "\" class=\"badge btn btn-action bg-action text-white is-online-livecam-marker\" target=\"_blank\"
";
// line 14
$this->loadTemplate("_widgets/_livecam_tooltip_attributes.html.twig", "_widgets/aside-bonus.html.twig", 14)->display(twig_array_merge($context, ["username" => twig_get_attribute($this->env, $this->source, $context["member"], "username", [], "any", false, false, false, 14)]));
echo ">
<i class=\"fas fa-video position-relative\"></i>
<span class=\"ml-2\">Zur Livecam</span>
</a>
";
} else {
// line 19
echo " <span class=\"badge bg-action text-white\">
<i class=\"fas fa-circle position-relative\"></i>
<span>Online</span>
</span>
";
}
// line 24
echo "
";
// line 25
echo twig_call_macro($macros["macro"], "macro_profileImage", [$context["member"], twig_constant("\\App\\Dictionary\\ImageVars::SIZE_500x375"), true], 25, $context, $this->getSourceContext());
echo "
<!--<img src=\"https://assets.frivol.com/mediacache/media/500x375/membermedia/3a/01/52/b1dfc086340c.jpg\" />-->
<div class=\"";
// line 28
echo twig_escape_filter($this->env, twig_join_filter(((array_key_exists("cardTextClasses", $context)) ? (_twig_default_filter((isset($context["cardTextClasses"]) || array_key_exists("cardTextClasses", $context) ? $context["cardTextClasses"] : (function () { throw new RuntimeError('Variable "cardTextClasses" does not exist.', 28, $this->source); })()), ["card-text", "col-12", "text-white", "row", "no-gutters", "text-nowrap", "position-absoulte", "py-2", "w-100"])) : (["card-text", "col-12", "text-white", "row", "no-gutters", "text-nowrap", "position-absoulte", "py-2", "w-100"])), " "), "html", null, true);
echo "\" style=\"bottom: 0; background: #000;\">
<h5 class=\"card-title w-100\">
<small class=\"float-right\">
<i class=\"flag-icon flag-icon-";
// line 31
echo twig_escape_filter($this->env, $this->extensions['App\Twig\MemberExtension']->getPublicRegionCountryCode(((twig_get_attribute($this->env, $this->source, $context["member"], "public_region", [], "any", true, true, false, 31)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["member"], "public_region", [], "any", false, false, false, 31), "DE")) : ("DE"))), "html", null, true);
echo "\"></i>
</small>
<a href=\"";
// line 33
echo twig_escape_filter($this->env, $this->extensions['App\Twig\MemberExtension']->getProfileUri(twig_get_attribute($this->env, $this->source, $context["member"], "username", [], "any", false, false, false, 33)), "html", null, true);
echo "\" class=\"text-white frivol-xhr\">
";
// line 34
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["member"], "username", [], "any", false, false, false, 34), "html", null, true);
if ((((twig_get_attribute($this->env, $this->source, $context["member"], "age", [], "any", true, true, false, 34)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["member"], "age", [], "any", false, false, false, 34), -1)) : ( -1)) > 17)) {
echo ",
";
// line 35
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["member"], "age", [], "any", true, true, false, 35)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["member"], "age", [], "any", false, false, false, 35), "")) : ("")), "html", null, true);
echo "
";
}
// line 37
echo " </a>
</h5>
</div>
</div>
</div>
";
++$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['member'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 44
echo " </div>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "_widgets/aside-bonus.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 159 => 44, 139 => 37, 134 => 35, 129 => 34, 125 => 33, 120 => 31, 114 => 28, 108 => 25, 105 => 24, 98 => 19, 90 => 14, 85 => 13, 83 => 12, 79 => 10, 61 => 9, 58 => 8, 55 => 7, 52 => 6, 50 => 5, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% import 'macros.html.twig' as macro %}
<div id=\"aside-bonus\" class=\"m-0 d-none d-md-block p-0 w-100\">
<div class=\"slider-carousel\">
{% set bonusData = getCurrentBonus() %}
{% set marketingImageData = getCurrentMarketingImage() %}
{% include '_widgets/aside-bonus-block.html.twig' %}
{% include '_widgets/aside-marketingImage-block.html.twig' %}
{% for member in randomOnlineAmateurs(10) %}
<div class=\"item\">
<div class=\"card border-0 profile badge-container\">
{% if isWebcamOnline(member)|default(false) %}
<a href=\"{{ livecamUri(member.username) }}\" class=\"badge btn btn-action bg-action text-white is-online-livecam-marker\" target=\"_blank\"
{% include '_widgets/_livecam_tooltip_attributes.html.twig' with {'username': member.username} %}>
<i class=\"fas fa-video position-relative\"></i>
<span class=\"ml-2\">Zur Livecam</span>
</a>
{% else %}
<span class=\"badge bg-action text-white\">
<i class=\"fas fa-circle position-relative\"></i>
<span>Online</span>
</span>
{% endif %}
{{ macro.profileImage(member, constant('\\\\App\\\\Dictionary\\\\ImageVars::SIZE_500x375'), true) }}
<!--<img src=\"https://assets.frivol.com/mediacache/media/500x375/membermedia/3a/01/52/b1dfc086340c.jpg\" />-->
<div class=\"{{ cardTextClasses|default(['card-text', 'col-12', 'text-white', 'row', 'no-gutters', 'text-nowrap', 'position-absoulte', 'py-2', 'w-100'])|join(' ') }}\" style=\"bottom: 0; background: #000;\">
<h5 class=\"card-title w-100\">
<small class=\"float-right\">
<i class=\"flag-icon flag-icon-{{ publicRegionCountryCode(member.public_region|default('DE')) }}\"></i>
</small>
<a href=\"{{ profileUri(member.username) }}\" class=\"text-white frivol-xhr\">
{{ member.username }}{% if member.age|default(-1) > 17 %},
{{ member.age|default('') }}
{% endif %}
</a>
</h5>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
", "_widgets/aside-bonus.html.twig", "/var/www/frontend-dev/apps/frontend/templates/_widgets/aside-bonus.html.twig");
}
}