templates/modules/footer.html.twig line 1

Open in your IDE?
  1. <footer class="d-flex m-0">
  2.     <div class="contact col-xl-4 col-lg-4 col-md-4">
  3.         <h6>{% trans %}footer.contactus.title{% endtrans %}</h6>
  4.         
  5.         {% if club is defined and club.uuid is defined %}
  6.             <div class="data-contact">
  7.                 {% if canConfigure == 'true' %}
  8.                     <span><a class="btn btn-warning" href="{{ app.request.baseUrl }}/club/{{ club.uuid }}/locations" role="button" style="margin: 10px"><i class="fas fa-pencil-alt"></i></a></span>
  9.                 {% endif %}
  10.                 {% for location in club.locations %}
  11.                     <p>{{ location.name }}</p>
  12.                     {{ location.address }}<br>
  13.                     {{ location.zipcode }} {{ location.city }}<br>
  14.                     {{ location.country }}<br>
  15.                     <br>
  16.                 {% endfor %}
  17.                 
  18.                 {% if(club.contact_phone is defined and club.contact_phone != '') %}
  19.                     {% set phones = club.contact_phone %}
  20.                 {% elseif(clubProperties["club.contact.default.phones"] is defined) %}
  21.                     {% set phones = clubProperties["club.contact.default.phones"] %}
  22.                 {% else %}
  23.                     {% set phones = '' %}
  24.                 {% endif %}
  25.                 {%  for phone in phones|split('/') %}
  26.                     <a href="tel:{{ phone|trim|replace({' ':''}) }}"><i class="fas fa-phone-alt"></i>{{ phone|trim }}</a>
  27.                    {% endfor %}
  28.                 
  29.                 {% if(club.contact_emails is defined and club.contact_emails != '') %}
  30.                     {% set emails = club.contact_emails %}
  31.                 {% elseif(clubProperties["club.contact.default.emails"] is defined) %}
  32.                     {% set emails = clubProperties["club.contact.default.emails"] %}
  33.                 {% else %}
  34.                     {% set emails = '' %}
  35.                 {% endif %}
  36.                  {%  for email in emails|split(',') %}
  37.                     <a href="mailto:{{ email|trim }}"><i class="fas fa-envelope"></i>{{ email|trim }}</a>
  38.                    {% endfor %}
  39.             </div>
  40.         {% else %}
  41.             {% if(cenacleProperties["cenacle.contact.name"] is defined) %}
  42.                 <p>{{ cenacleProperties["cenacle.contact.name"] }}</p>
  43.             {% endif %}
  44.             {% if(cenacleProperties["cenacle.contact.address"] is defined) %}
  45.                 {{ cenacleProperties["cenacle.contact.address"] }}<br>
  46.             {% endif %}
  47.             {% if(cenacleProperties["cenacle.contact.city"] is defined) %}
  48.                 {{ cenacleProperties["cenacle.contact.city"] }}<br>
  49.             {% endif %}
  50.             <div class="data-contact">
  51.                 {% if(cenacleProperties["cenacle.contact.phones"] is defined) %}
  52.                     {% set phones = cenacleProperties["cenacle.contact.phones"] %}
  53.                 {% else %}
  54.                     {% set phones = '' %}
  55.                 {% endif %}
  56.                 {%  for phone in phones|split('/') %}
  57.                     <a href="tel:{{ phone|trim|replace({' ':''}) }}"><i class="fas fa-phone-alt"></i>{{ phone|trim }}</a>
  58.                    {% endfor %}
  59.                 {% if(cenacleProperties["cenacle.contact.emails"] is defined) %}
  60.                     {% set emails = cenacleProperties["cenacle.contact.emails"] %}
  61.                 {% else %}
  62.                     {% set emails = '' %}
  63.                 {% endif %}
  64.                  {%  for email in emails|split(',') %}
  65.                     <a href="mailto:{{ email|trim }}"><i class="fas fa-envelope"></i>{{ email|trim }}</a>
  66.                    {% endfor %}
  67.            </div>
  68.         {% endif %} 
  69.     </div>
  70.     <div class="plan col-xl-3 col-lg-3">
  71.         <h6>{% trans %}footer.siteplan.title{% endtrans %}</h6>
  72.         <ul>
  73.             <a href="{{ app.request.baseUrl }}/"><li class="link">{% trans %}footer.siteplan.thecenacle{% endtrans %}</li></a> 
  74.             <a href="{{ app.request.baseUrl }}/master"><li class="link">{% trans %}footer.siteplan.themaster{% endtrans %}</li></a> 
  75.             {% if club is defined and club.uuid is defined %}
  76.                 <a href="{{ app.request.baseUrl }}/club?select=clear"><li class="link">{% trans %}footer.siteplan.clubselected{% endtrans %}</li></a>
  77.             {% else %}
  78.                 <a href="{{ app.request.baseUrl }}/club"><li class="link">{% trans %}footer.siteplan.clublist{% endtrans %}</li></a>
  79.             {% endif %}
  80.             <a href="{{ app.request.baseUrl }}/login"><li class="link">{% trans %}footer.siteplan.login{% endtrans %}</li></a> 
  81.             {#<a href="{{ app.request.baseUrl }}/#"><li class="link">{% trans %}footer.siteplan.privacypolicy{% endtrans %}</li></a>#}
  82.             <a href="{{ app.request.baseUrl }}/swagger"><li class="link">API</li></a>
  83.         </ul>
  84.     </div>
  85.     <div class="courses col-xl-3 col-lg-3">
  86.         <h6>{% trans %}footer.ourdisciplines.title{% endtrans %}</h6>
  87.         <ul>
  88.             <a href="{{ app.request.baseUrl }}/taekwonkido"><li class="link">{% trans %}discipline.taekwonkido{% endtrans %}</li></a>
  89.             <a href="{{ app.request.baseUrl }}/taekwondo"><li class="link">{% trans %}discipline.taekwondo{% endtrans %}</li></a>
  90.             <a href="{{ app.request.baseUrl }}/hapkido"><li class="link">{% trans %}discipline.hapkido{% endtrans %}</li></a>
  91.             <a href="{{ app.request.baseUrl }}/sinkido"> <li class="link">{% trans %}discipline.sinkido{% endtrans %}</li></a>
  92.         </ul>
  93.     </div>
  94.     <div class="social col-xl-2 col-lg-2">
  95.         {% set url = {} %}
  96.         {% if club is defined and club.uuid is defined %}
  97.             {% if club.facebook_url is defined and club.facebook_url is not empty %}
  98.                 {% set url = url|merge({'facebook': club.facebook_url }) %}
  99.             {% endif %}
  100.         {% elseif cenacleProperties["cenacle.contact.facebook.url"] is defined %}
  101.             {% set url = url|merge({'facebook': cenacleProperties["cenacle.contact.facebook.url"] })%}
  102.         {% endif %}
  103.         
  104.         {% if club is defined and club.uuid is defined %}
  105.             {% if club.instagram_url is defined and club.instagram_url is not empty %}
  106.                 {% set url = url|merge({'instagram': club.instagram_url }) %}
  107.             {% endif %}
  108.         {% elseif cenacleProperties["cenacle.contact.instagram.url"] is defined %}
  109.             {% set url = url|merge({'instagram': cenacleProperties["cenacle.contact.instagram.url"] })%}
  110.         {% endif %}
  111.         {% if club is defined and club.uuid is defined %}
  112.             {% if club.twitter_url is defined and club.twitter_url is not empty %}
  113.                 {% set url = url|merge({'twitter': club.twitter_url }) %}
  114.             {% endif %}
  115.         {% elseif cenacleProperties["cenacle.contact.twitter.url"] is defined %}
  116.             {% set url = url|merge({'twitter': cenacleProperties["cenacle.contact.twitter.url"] })%}
  117.         {% endif %}
  118.         {% if club is defined and club.uuid is defined %}
  119.             {% if club.youtube_url is defined and club.youtube_url is not empty %}
  120.                 {% set url = url|merge({'youtube': club.youtube_url }) %}
  121.             {% endif %}
  122.         {% elseif cenacleProperties["cenacle.contact.youtube.url"] is defined %}
  123.             {% set url = url|merge({'youtube': cenacleProperties["cenacle.contact.youtube.url"] })%}
  124.         {% endif %}
  125.         
  126.          {% if club is defined and club.uuid is defined %}
  127.             {% if club.dailymotion_url is defined and club.dailymotion_url is not empty %}
  128.                 {% set url = url|merge({'dailymotion': club.dailymotion_url }) %}
  129.             {% endif %}
  130.         {% elseif cenacleProperties["cenacle.contact.dailymotion.url"] is defined %}
  131.             {% set url = url|merge({'dailymotion': cenacleProperties["cenacle.contact.dailymotion.url"] })%}
  132.         {% endif %}
  133.         
  134.         {% if (club is not defined or club.uuid is not defined) and cenacleProperties["cenacle.contact.github.url"] is defined %}
  135.             {% set url = url|merge({'github': cenacleProperties["cenacle.contact.github.url"] })%}
  136.         {% endif %}
  137.         
  138.         {% if url is not empty %}
  139.             <h6>{% trans %}footer.followus.title{% endtrans %}</h6>
  140.             <div class="icons flex-xl-row flex-lg-column flex-md-column align-items-center">
  141.                 {% for key,value in url %}
  142.                     <a href="{{ value }}"><i class="fab fa-{{ key }}"></i></a>
  143.                 {% endfor %}
  144.             </div>
  145.         {% endif %}
  146.     </div>
  147. </footer>