templates/_widgets/home-amateur-6.html.twig line 1

Open in your IDE?
  1. {% import 'macros.html.twig' as macro %}
  2. {% for member in amateurs|default([]) %}
  3.     <div class="{{ classNames|default(['col-12', 'col-sm-6', 'col-lg-3', 'ml-0 pl-0'])|join(' ') }}">
  4.         <div class="card border-0 profile">
  5.             {% if isMemberOnline(member) %}
  6.                 {% if isWebcamOnline(member)|default(false) %}
  7.                     <a href="{{ livecamUri(member.username) }}"
  8.                        class="badge btn btn-action bg-action text-white is-online-livecam-marker rounded-top d-block text-center"
  9.                        style="border-bottom-right-radius: 0; border-bottom-left-radius: 0;"
  10.                        target="_blank"
  11.                        {% include '_widgets/_livecam_tooltip_attributes.html.twig' with {'username': member.username} %}
  12.                     >
  13.                         <i class="fas fa-video position-relative"></i>
  14.                         <span class="ml-2">Live-Cam</span>
  15.                     </a>
  16.                 {% else %}
  17.                     <span class="badge bg-action text-white rounded-top d-block text-center" style="border-bottom-right-radius: 0; border-bottom-left-radius: 0;">
  18.                         <span class="ml-2">Online</span>
  19.                     </span>
  20.                 {% endif %}
  21.             {% endif %}
  22.             {{ macro.profileImage(member, constant('\\App\\Dictionary\\ImageVars::SIZE_500x375'), true, false, ['card-img-top']) }}
  23.             <div class="card-body px-2 py-2 rounded-bottom">
  24.                 <h6 class="card-title mb-1 pb-0">
  25.                     <a href="{{ profileUri(member.username) }}" class="text-white d-block text-truncate frivol-xhr">
  26.                         {{ member.username }}{% if member.age|default(-1) > 17 %},
  27.                         {{ member.age|default('') }}
  28.                         {% endif %}
  29.                     </a>
  30.                 </h6>
  31.             </div>
  32.         </div>
  33.     </div>
  34. {% endfor %}