templates/club/default-home.html.twig line 1

Open in your IDE?
  1. {#-- Bannière centrale --#}
  2. <section class="banner banner_club_default banner_club_{{ club.uuid }}">
  3.     <div class="title">
  4.         <div class="logo">
  5.             {% if canConfigure == 'true' %}
  6.                 <div style="display: flex; justify-content: center;">
  7.                     <a class="btn btn-warning" href="{{ app.request.baseUrl }}/club/{{ club.uuid }}/modify" role="button" style="margin: 10px"><i class="fas fa-pencil-alt"></i></a>
  8.                 </div>
  9.             {% endif %}
  10.             <img src="{{ club._links.logo.href }}" alt="logo_{{ club.uuid }}">
  11.         </div>
  12.         <div class="name">
  13.             <h1>{{  club.name }}<br>
  14.                 {% for city in club.locations|map(p => "#{p.city}")|reduce((unique, item) => item in unique ? unique : unique|merge([item]), []) %}
  15.                     {{ city }}<br>
  16.                 {% endfor %}
  17.             <span>{% trans %}club.home.martialarts{% endtrans %}</span></h1>
  18.         </div>
  19.    </div>
  20.    {#-- boutons animés --#}
  21.     <div class="drop">
  22.         <button class="bloc-button">
  23.             <i class="fas fa-map-marker-alt"></i>
  24.         </button>
  25.         <div class="bloc-text">
  26.             {% if(club.locations|length == 1) %}
  27.                 {% for location in club.locations %}
  28.                     {{ location.address }}<br>{{ location.city }}
  29.                 {% endfor %}
  30.             {% else %}
  31.                 {% for location in club.locations %}
  32.                     {{ location.address }}, {{ location.city }}<br>
  33.                 {% endfor %}
  34.             {% endif %}
  35.         </div>
  36.     </div>
  37.     
  38.     {% set dropNum = 2 %}
  39.     {% if(club.contact_phone is defined and club.contact_phone != '') %}
  40.         <div class="drop{{ dropNum }}">
  41.             <button class="bloc-button">
  42.                 <i class="fas fa-phone-alt" aria-hidden="true"></i>
  43.             </button>
  44.             <div class="bloc-text">
  45.                 {%  for phone in club.contact_phone|split('/') %}
  46.                     {{ phone|trim }}<br>
  47.                    {% endfor %}
  48.             </div>
  49.         </div>
  50.         {% set dropNum = dropNum + 1 %}
  51.     {% endif %}
  52.     {% if(club.contact_emails is defined and club.contact_emails != '') %}
  53.         <div class="drop{{ dropNum }}">
  54.             <button class="bloc-button">
  55.                 <i class="fas fa-envelope" aria-hidden="true"></i>
  56.             </button>
  57.             <div class="bloc-text">
  58.                 {{ club.contact_emails }}
  59.             </div>
  60.         </div>
  61.         {% set dropNum = dropNum + 1 %}
  62.     {% endif %}
  63.     <div class="drop{{ dropNum }}">
  64.         <button class="bloc-button">
  65.             <i class="fas fa-gift"></i>
  66.         </button>
  67.         <div class="bloc-text">
  68.             {% trans %}club.buttons.firstsessionfree{% endtrans %}
  69.         </div>
  70.     </div>
  71.     {#-- Boutons disciplines --#}
  72.     {% include 'club/disciplines-buttons.html.twig' %}
  73.     
  74.     <div class="buttons">
  75.         <div class="btn"><a href="{{ app.request.baseUrl }}/club/{{ club.uuid }}/infos">Horaires & tarifs</a></div>
  76.     </div>
  77.     {% include 'modules/locale-button.html.twig' %}
  78.     
  79. </section>
  80. {% include 'club/' ~ club.uuid ~ '/sponsors.html.twig' ignore missing %}