templates/home/index.html.twig line 1

Open in your IDE?
  1. {% extends baseTemplateName(app.request) %}
  2. {% block title_suffix %}Home{% endblock %}
  3. {% block body %}
  4.     <div class="kyc-phone-container">
  5.     {% if is_granted('ROLE_MEMBER') and not shallHardcore() %}
  6.         <div class="kyc-incentive-container gradient-danger">
  7.             <h2><img src="{{ asset('build/images/kyc/18.png') }}"> Jetzt Hardcore freischalten!</h2>  
  8.             <p>
  9.               Sichere dir den Zugang zu allen Hardcore-Inhalten - sofort & sicher!
  10.             </p>
  11.             <div class="container-fluid">
  12.                 <div class="row">
  13.                     <div class="col-xs-12 col-sm-6">
  14.                         <img src="{{ asset('build/images/kyc/check.png') }}"> Altersprüfung mit Yoti
  15.                     </div>
  16.                     <div class="col-xs-12 col-sm-6">
  17.                         <img src="{{ asset('build/images/kyc/lock.png') }}"> 100% Datenschutz
  18.                     </div>
  19.                     <div class="col-xs-12 col-sm-6">
  20.                         <img src="{{ asset('build/images/kyc/rocket.png') }}"> Sofortiger Zugriff nach Verifizierung
  21.                     </div>
  22.                     <div class="col-xs-12 col-sm-6">
  23.                         <img src="{{ asset('build/images/kyc/flame.png') }}"> 500 Coins geschenkt
  24.                     </div>
  25.                 </div>
  26.             </div>
  27.             <a href="{{ path('app_user_kyc_index')}}">
  28.               <button class="btn"> <img src="{{ asset('build/images/kyc/finger.png') }}"> Jetzt verifizieren &amp; freischalten</button>
  29.             </a>
  30.         </div>
  31.     {% endif %}
  32.     <div id="handy-banner"></div>
  33.     </div>
  34.     <div class="slider-home mb-3">
  35.         {% include '_widgets/home-amateur-6.html.twig' with { amateurs: onlineAmateurs } %}
  36.     </div>
  37.     <div id="homepage-feed-container" class="d-block {% if app.request.pathInfo != '/infostream' %}d-md-none{% endif %}">
  38.         <ul id="react-homepage-feed" class="p-0"></ul>
  39.         {% if app.user is null %}
  40.         <div id="jquery-homepage-feed">
  41.             {% for itemHtml in feedHtmls.initial|default([]) %}
  42.                 <div class="feed-item">{{ itemHtml|raw }}</div>
  43.             {% endfor %}
  44.         </div>
  45.         {% endif %}
  46.     </div>
  47.     <hr class="d-block d-md-none">
  48.     <h2 class="mb-3">Ausgewählte Amateure ...</h2>
  49.     <div class="resultlist row">
  50.         {% for amateur in otherAmateurs %}
  51.             {% include '_widgets/home-amateur.html.twig' with { member: amateur } %}
  52.         {% endfor %}
  53.     </div>
  54.     <a href="{{ path('app_user_amateur_online') }}" class="btn btn-secondary btn-block mb-3 frivol-xhr">Mehr Amateure zum kennenlernen</a>
  55.     <h2 class="mb-3">Top Videos unserer Amateure</h2>
  56.     <div class="resultlist row">
  57.         {% for video in videos %}
  58.             {% include '_widgets/home-content-video.html.twig' with { video: video } %}
  59.         {% endfor %}
  60.     </div>
  61.     <a href="{{ path('app_content_video_topmonth') }}" class="btn btn-secondary btn-block frivol-xhr">Mehr Videos</a>
  62. {% endblock %}
  63. {% block javascripts %}
  64.     {% if not app.request.isXmlHttpRequest and is_granted('ROLE_MEMBER') %}
  65.         {{ parent() }}
  66.     {% else %}
  67.         {{ parent() }}
  68.         <script type="text/javascript">
  69.             $(function() {
  70.                 let msgs = [
  71.                     {% for delay,feedItem in feedHtmls.delayed|default([]) %}
  72.                     {'delay': {{ delay * 1000 }}, 'html': '<div class="feed-item">{{ feedItem|e('js') }}</div>'},
  73.                     {% endfor %}
  74.                 ];
  75.                 msgs.forEach(function(val) {
  76.                     setTimeout(function () {
  77.                         $('#jquery-homepage-feed').prepend(val.html);
  78.                         $('#jquery-homepage-feed .feed-item:last-child').remove();
  79.                     }, val.delay);
  80.                 });
  81.             });
  82.         </script>
  83. {% endif %}
  84. {% endblock %}