var/cache/dev/twig/e0/e0d5923c218b87c655d94e59c836e087.php line 63

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. /* _widgets/aside-bonus.html.twig */
  14. class __TwigTemplate_e8068a6eeeb1747185899c03015cc285 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""_widgets/aside-bonus.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""_widgets/aside-bonus.html.twig"));
  33.         // line 1
  34.         $macros["macro"] = $this->macros["macro"] = $this->loadTemplate("macros.html.twig""_widgets/aside-bonus.html.twig"1)->unwrap();
  35.         // line 2
  36.         echo "
  37. <div id=\"aside-bonus\" class=\"m-0 d-none d-md-block p-0 w-100\">
  38.     <div class=\"slider-carousel\">
  39.         ";
  40.         // line 5
  41.         $context["bonusData"] = $this->extensions['App\Twig\SidebarExtension']->getCurrentBonus();
  42.         // line 6
  43.         echo "        ";
  44.         $context["marketingImageData"] = $this->extensions['App\Twig\SidebarExtension']->getCurrentMarketingImage();
  45.         // line 7
  46.         echo "        ";
  47.         $this->loadTemplate("_widgets/aside-bonus-block.html.twig""_widgets/aside-bonus.html.twig"7)->display($context);
  48.         // line 8
  49.         echo "        ";
  50.         $this->loadTemplate("_widgets/aside-marketingImage-block.html.twig""_widgets/aside-bonus.html.twig"8)->display($context);
  51.         // line 9
  52.         echo "        ";
  53.         $context['_parent'] = $context;
  54.         $context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\AmateurExtension']->getRandomOnlineAmateurs(10));
  55.         $context['loop'] = [
  56.           'parent' => $context['_parent'],
  57.           'index0' => 0,
  58.           'index'  => 1,
  59.           'first'  => true,
  60.         ];
  61.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  62.             $length count($context['_seq']);
  63.             $context['loop']['revindex0'] = $length 1;
  64.             $context['loop']['revindex'] = $length;
  65.             $context['loop']['length'] = $length;
  66.             $context['loop']['last'] = === $length;
  67.         }
  68.         foreach ($context['_seq'] as $context["_key"] => $context["member"]) {
  69.             // line 10
  70.             echo "            <div class=\"item\">
  71.                 <div class=\"card border-0 profile badge-container\">
  72.                 ";
  73.             // line 12
  74.             if (_twig_default_filter($this->extensions['App\Twig\AmateurExtension']->isWebcamOnline($context["member"]), false)) {
  75.                 // line 13
  76.                 echo "                    <a href=\"";
  77.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\MemberExtension']->getLivecamUri(twig_get_attribute($this->env$this->source$context["member"], "username", [], "any"falsefalsefalse13)), "html"nulltrue);
  78.                 echo "\" class=\"badge btn btn-action bg-action text-white is-online-livecam-marker\" target=\"_blank\"
  79.                        ";
  80.                 // line 14
  81.                 $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"falsefalsefalse14)]));
  82.                 echo ">
  83.                         <i class=\"fas fa-video position-relative\"></i>
  84.                         <span class=\"ml-2\">Zur Livecam</span>
  85.                     </a>
  86.                 ";
  87.             } else {
  88.                 // line 19
  89.                 echo "                    <span class=\"badge bg-action text-white\">
  90.                         <i class=\"fas fa-circle position-relative\"></i>
  91.                         <span>Online</span>
  92.                     </span>
  93.                 ";
  94.             }
  95.             // line 24
  96.             echo "
  97.                     ";
  98.             // line 25
  99.             echo twig_call_macro($macros["macro"], "macro_profileImage", [$context["member"], twig_constant("\\App\\Dictionary\\ImageVars::SIZE_500x375"), true], 25$context$this->getSourceContext());
  100.             echo "
  101.                     <!--<img src=\"https://assets.frivol.com/mediacache/media/500x375/membermedia/3a/01/52/b1dfc086340c.jpg\" />-->
  102.                     <div class=\"";
  103.             // line 28
  104.             echo twig_escape_filter($this->envtwig_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"nulltrue);
  105.             echo "\" style=\"bottom: 0; background: #000;\">
  106.                         <h5 class=\"card-title w-100\">
  107.                             <small class=\"float-right\">
  108.                                 <i class=\"flag-icon flag-icon-";
  109.             // line 31
  110.             echo twig_escape_filter($this->env$this->extensions['App\Twig\MemberExtension']->getPublicRegionCountryCode(((twig_get_attribute($this->env$this->source$context["member"], "public_region", [], "any"truetruefalse31)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["member"], "public_region", [], "any"falsefalsefalse31), "DE")) : ("DE"))), "html"nulltrue);
  111.             echo "\"></i>
  112.                             </small>
  113.                             <a href=\"";
  114.             // line 33
  115.             echo twig_escape_filter($this->env$this->extensions['App\Twig\MemberExtension']->getProfileUri(twig_get_attribute($this->env$this->source$context["member"], "username", [], "any"falsefalsefalse33)), "html"nulltrue);
  116.             echo "\" class=\"text-white frivol-xhr\">
  117.                                 ";
  118.             // line 34
  119.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["member"], "username", [], "any"falsefalsefalse34), "html"nulltrue);
  120.             if ((((twig_get_attribute($this->env$this->source$context["member"], "age", [], "any"truetruefalse34)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["member"], "age", [], "any"falsefalsefalse34),  -1)) : ( -1)) > 17)) {
  121.                 echo ",
  122.                                 ";
  123.                 // line 35
  124.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["member"], "age", [], "any"truetruefalse35)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["member"], "age", [], "any"falsefalsefalse35), "")) : ("")), "html"nulltrue);
  125.                 echo "
  126.                                 ";
  127.             }
  128.             // line 37
  129.             echo "                            </a>
  130.                         </h5>
  131.                     </div>
  132.                 </div>
  133.             </div>
  134.         ";
  135.             ++$context['loop']['index0'];
  136.             ++$context['loop']['index'];
  137.             $context['loop']['first'] = false;
  138.             if (isset($context['loop']['length'])) {
  139.                 --$context['loop']['revindex0'];
  140.                 --$context['loop']['revindex'];
  141.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  142.             }
  143.         }
  144.         $_parent $context['_parent'];
  145.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['member'], $context['_parent'], $context['loop']);
  146.         $context array_intersect_key($context$_parent) + $_parent;
  147.         // line 44
  148.         echo "    </div>
  149. </div>
  150. ";
  151.         
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  153.         
  154.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  155.     }
  156.     public function getTemplateName()
  157.     {
  158.         return "_widgets/aside-bonus.html.twig";
  159.     }
  160.     public function isTraitable()
  161.     {
  162.         return false;
  163.     }
  164.     public function getDebugInfo()
  165.     {
  166.         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,);
  167.     }
  168.     public function getSourceContext()
  169.     {
  170.         return new Source("{% import 'macros.html.twig' as macro %}
  171. <div id=\"aside-bonus\" class=\"m-0 d-none d-md-block p-0 w-100\">
  172.     <div class=\"slider-carousel\">
  173.         {% set bonusData = getCurrentBonus() %}
  174.         {% set marketingImageData = getCurrentMarketingImage() %}
  175.         {% include '_widgets/aside-bonus-block.html.twig' %}
  176.         {% include '_widgets/aside-marketingImage-block.html.twig' %}
  177.         {% for member in randomOnlineAmateurs(10) %}
  178.             <div class=\"item\">
  179.                 <div class=\"card border-0 profile badge-container\">
  180.                 {% if isWebcamOnline(member)|default(false) %}
  181.                     <a href=\"{{ livecamUri(member.username) }}\" class=\"badge btn btn-action bg-action text-white is-online-livecam-marker\" target=\"_blank\"
  182.                        {% include '_widgets/_livecam_tooltip_attributes.html.twig' with {'username': member.username} %}>
  183.                         <i class=\"fas fa-video position-relative\"></i>
  184.                         <span class=\"ml-2\">Zur Livecam</span>
  185.                     </a>
  186.                 {% else %}
  187.                     <span class=\"badge bg-action text-white\">
  188.                         <i class=\"fas fa-circle position-relative\"></i>
  189.                         <span>Online</span>
  190.                     </span>
  191.                 {% endif %}
  192.                     {{ macro.profileImage(member, constant('\\\\App\\\\Dictionary\\\\ImageVars::SIZE_500x375'), true) }}
  193.                     <!--<img src=\"https://assets.frivol.com/mediacache/media/500x375/membermedia/3a/01/52/b1dfc086340c.jpg\" />-->
  194.                     <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;\">
  195.                         <h5 class=\"card-title w-100\">
  196.                             <small class=\"float-right\">
  197.                                 <i class=\"flag-icon flag-icon-{{ publicRegionCountryCode(member.public_region|default('DE')) }}\"></i>
  198.                             </small>
  199.                             <a href=\"{{ profileUri(member.username) }}\" class=\"text-white frivol-xhr\">
  200.                                 {{ member.username }}{% if member.age|default(-1) > 17 %},
  201.                                 {{ member.age|default('') }}
  202.                                 {% endif %}
  203.                             </a>
  204.                         </h5>
  205.                     </div>
  206.                 </div>
  207.             </div>
  208.         {% endfor %}
  209.     </div>
  210. </div>
  211. ""_widgets/aside-bonus.html.twig""/var/www/frontend-dev/apps/frontend/templates/_widgets/aside-bonus.html.twig");
  212.     }
  213. }