templates/Layout/_footer.html.twig line 1

Open in your IDE?
  1. <footer class="footer">
  2.     {# Main footer #}
  3.     {% if nodemenu is defined %}
  4.         <section class="main-footer container-fluid">
  5.             <div class="row">
  6.                 <div class="col-md-2 main-footer__logo">
  7.                     <img alt="Logo GCS" src="{{ asset('/frontend/img/general/logo-white.svg') }}">
  8.                 </div>
  9.                 {# Footer navigation #}
  10.                 {{ get_menu('footer_navigation', app.request.locale, {'activeClass': 'active', 'rootOpen': '<ul class="footer-nav__list col-md-10">', 'childOpen': '<li class="footer-nav__list-item">'}) }}
  11.                 {#                {% set activeSubnode = nodemenu.getActiveForDepth(1) %}#}
  12. {#                {% for node in activeSubnode.children %}#}
  13. {#                    {% if not node.node.isHiddenFromNav() and node.node.internalName != 'contact' %}#}
  14. {#                    <div class="col-md-1 col-sm-1">#}
  15. {#                        <nav class="footer-nav">#}
  16. {#                            <h6 class="footer-nav__title">#}
  17. {#                                <a href="{{ path('_slug', { 'url': node.slug }) }}" class="footer-nav__title__link">{{ node.title }}</a>#}
  18. {#                            </h6>#}
  19. {#                            {% if node.children|length>0 %}#}
  20. {#                                {% if node.node.internalName == 'article_overview_page' %}#}
  21. {#                                    {% for node2 in node.children %}#}
  22. {#                                        {% if loop.index < 4 %}#}
  23. {#                                        {% if node2.title|length > 40 %}#}
  24. {#                                            {% set ltitle = node2.title[:40] ~ '...' %}#}
  25. {#                                        {% else %}#}
  26. {#                                            {% set ltitle = node2.title %}#}
  27. {#                                        {% endif %}#}
  28. {#                                        <a href="{{ path('_slug', { 'url': node2.slug }) }}" class="footer-nav__item{% if(node2.active) %} footer-nav__item--active{% endif %}">#}
  29. {#                                            {{ ltitle }}#}
  30. {#                                        </a>#}
  31. {#                                        {% endif %}#}
  32. {#                                    {% endfor %}#}
  33. {#                                {% else %}#}
  34. {#                                    {% for node2 in node.children | slice(0, 3) %}#}
  35. {#                                        {% if not node.node.isHiddenFromNav() %}#}
  36. {#                                        <a href="{{ path('_slug', { 'url': node2.slug }) }}" class="footer-nav__item{% if(node2.active) %} footer-nav__item--active{% endif %}">#}
  37. {#                                            {{ node2.title }}#}
  38. {#                                        </a>#}
  39. {#                                        {% endif %}#}
  40. {#                                    {% endfor %}#}
  41. {#                                {% endif %}#}
  42. {#                            {% endif %}#}
  43. {#                        </nav>#}
  44. {#                    </div>#}
  45. {#                    {% endif %}#}
  46. {#                {% endfor %}#}
  47.             </div>
  48.         </section>
  49.     {% endif %}
  50.     {# Sub-footer #}
  51.     <section class="sub-footer">
  52.         <div class="container-fluid">
  53.             <div class="sub-footer__inner">
  54.                 <p class="sub-footer__info">
  55.                     Copyright &copy; {{ "now"|date("Y") }} GdyƄskie Centrum Sportu
  56.                     {% if nodemenu is defined %}
  57.                     {% set sitemap = nodemenu.getNodeByInternalName('sitemap') %}
  58.                     {% if (sitemap != null and sitemap.online) %}- <a href="{{ path('_slug', { 'url': sitemap.slug }) }}" class="sub-footer__info__link">{{ sitemap.title }}</a>{% endif %}
  59.                     {% endif %}
  60.                 </p>
  61.                 <p class="sub-footer__credentials">
  62.                     <a href="https://www.jamel.pl/?utm_source=www&utm_medium=footer&utm_campaign=gcs" class="sub-footer__credentials__link" rel="noopener" target="_blank"><img src="{{ asset('/frontend/img/general/jamel_logo.svg') }}" alt="Jamel" class="sub-footer__credentials__img"></a>
  63.                 </p>
  64.             </div>
  65.         </div>
  66.     </section>
  67. </footer>