templates/partials/footer.html.twig line 1

Open in your IDE?
  1. {% block footer %}
  2. {% set socialMediaSnippets = sulu_snippet_load_by_area('footer_social_media_links') %}
  3. {% set contentSnippets = sulu_snippet_load_by_area('footer_content') %}
  4. <footer id="footer" class="footer" style="margin-top: 3%">
  5. <div class="footer-content position-relative" style="background-color: #D7D7D2; font-size: 25px; line-height: 1.2; font-family: Rajdhani Medium,serif">
  6. <div class="container">
  7. <div class="row mx-1 ">
  8. <div class="col-lg-4 col-md-6" style="margin-top: -15px; line-height: 1.1">
  9. <div class="footer-info" >
  10. <p>{{ contentSnippets.content.footerInfoBlock|raw }}</p>
  11. </div>
  12. </div><!-- End footer info column-->
  13. <div class="col-lg-2 col-md-3 footer-links">
  14. {% set lines = contentSnippets.content.footerInfo2Block|split('\n') %}
  15. {% for line in lines %}
  16. {% if ',' in line %}
  17. {% set safeLine = line|replace({'\\,': '##ESCAPED_COMMA##'}) %}
  18. {% set parts = safeLine|split(',') %}
  19. {% if parts|length >= 2 %}
  20. {% set url = parts[1]|trim|replace({'##ESCAPED_COMMA##': ','}) %}
  21. {% set displayName = parts[0]|trim|replace({'##ESCAPED_COMMA##': ','}) %}
  22. <div>
  23. {% if url|lower starts with 'http://' or url|lower starts with 'https://' or url|lower starts with '/' %}
  24. <a href="{{ url }}"><strong>{{ displayName }}</strong></a>
  25. {% else %}
  26. {{ displayName }}: {{ url }}
  27. {% endif %}
  28. </div>
  29. {% endif %}
  30. {% else %}
  31. <div style="color:#293C46FF;">{{ line }}</div>
  32. {% endif %}
  33. {% endfor %}
  34. </div><!-- End footer links column-->
  35. <div class="col-lg-2 col-md-3 footer-links">
  36. {% set lines = contentSnippets.content.footerInfo3Block|split('\n') %}
  37. {% for line in lines %}
  38. {% set isStrong = line starts with '##' %}
  39. {% set cleanedLine = isStrong ? line|slice(2) : line %}
  40. {% set parts = cleanedLine|split(',') %}
  41. {% if parts|length >= 2 %}
  42. <div>
  43. <a href="{{ parts[1]|trim }}">
  44. {% if isStrong %}
  45. <strong>{{ parts[0]|trim }}</strong>
  46. {% else %}
  47. {{ parts[0]|trim }}
  48. {% endif %}
  49. </a>
  50. </div>
  51. {% endif %}
  52. {% endfor %}
  53. </div><!-- End footer links column-->
  54. <div class="col-lg-1 col-md-3 footer-links-3">
  55. {% set lines = contentSnippets.content.footerInfo4Block|split('\n') %}
  56. {% for line in lines %}
  57. {% set isStrong = line starts with '##' %}
  58. {% set cleanedLine = isStrong ? line|slice(2) : line %}
  59. {% set parts = cleanedLine|split(',') %}
  60. {% if parts|length >= 2 %}
  61. <div>
  62. <a href="{{ parts[1]|trim }}">
  63. {% if isStrong %}
  64. <strong>{{ parts[0]|trim }}</strong>
  65. {% else %}
  66. {{ parts[0]|trim }}
  67. {% endif %}
  68. </a>
  69. </div>
  70. {% endif %}
  71. {% endfor %}
  72. </div><!-- End footer links column-->
  73. </div>
  74. <!-- Move the logos section outside of the columns, but inside the container style="bottom: 30px;left: 75%; transform: translateX(-50%); -->
  75. <div class="col d-flex footer-icons">
  76. <div class="logos">
  77. {% for socialMediaContentBlock in socialMediaSnippets.content.blocks %}
  78. <a href="{{ socialMediaContentBlock.urlIcon }}">
  79. <img src="{{ socialMediaContentBlock.imageSelection.url }}" alt="Logo" style="max-height: 60px; margin-right: 30px;">
  80. </a>
  81. {% endfor %}
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. {# <div class="footer-legal text-center position-relative" style="background-color: #D7D7D2">
  88. <div class="container">
  89. <div class="copyright" style="margin-bottom: 10px;">
  90. entwickelt von <img src="{{ asset('build/website/website/styles/icon/designdaemon.png') }}" alt="Icon" style="max-height: 40px; margin-left: 10px; margin-right: 10px;">
  91. <strong><span>
  92. <a href="https://www.design-daemon.de">Design Daemon.</a>
  93. </span></strong>
  94. <br> All Rights Reserved
  95. </div>
  96. </div>
  97. <!-- logos section -->
  98. <div class="logos">
  99. {% for socialMediaContentBlock in socialMediaSnippets.content.blocks %}
  100. <a href="{{ socialMediaContentBlock.urlIcon }}"><img
  101. src="{{ socialMediaContentBlock.imageSelection.url }}" alt="Logo 1"
  102. style="max-height: 40px; margin-right: 10px;"></a>
  103. {% endfor %}
  104. </div>
  105. </div>#}
  106. </footer>
  107. {% endblock %}