footer.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. $content = (new \App\Settings('content'))->getAll();
  3. $footerLogo = json_decode($content['footer-logo'] ?? '{}', true);
  4. $currentDomain = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'];
  5. ?>
  6. <footer class="footer footer-color" style="color:#ffffff;">
  7. <div class="container">
  8. <div class="footer__content">
  9. <div class="footer__logo">
  10. <?php if (!empty($footerLogo['src'])): ?>
  11. <a href="<?= $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] ?>">
  12. <img src="<?= htmlspecialchars($footerLogo['src']) ?>" alt="<?= $footerLogo['alt'] ?? '' ?>" title="<?= $footerLogo['title'] ?? '' ?>">
  13. </a>
  14. <?php endif; ?>
  15. </div>
  16. <div class="footer__text">
  17. <?= $content['footer__text'] ?? '' ?>
  18. </div>
  19. <!-- <div class="footer__menu">
  20. <ul>
  21. <li><a class="redirect-js" href="">About us</a></li>
  22. <li><a class="redirect-js" href="">Responsible gambling</a></li>
  23. </ul>
  24. </div> -->
  25. </div>
  26. <ul class="footer__menu">
  27. <li><a href="<?= $currentDomain . '/contacts' ?>"><?= $content['contact-menu-name'] ?? '' ?></a></li>
  28. </ul>
  29. <ul class="footer__bottom-imgs">
  30. <li><span><img data-src="images/18+.png" class="lazy" alt="18+" title="18+" width="40" height="40"></span></li>
  31. <li><a href="https://www.begambleaware.org/" rel="nofollow noopener" target="_blank"><img height="40" width="252" class="lazy" data-src="images/GA.png" alt="BeGambleAware" title="BeGambleAware"></a></li>
  32. <li><a href="https://itechlabs.com/" rel="nofollow noopener" target="_blank"><img height="40" width="40" class="lazy" data-src="images/itechlabs.png" alt="iTech Labs" title="iTech Labs"></a></li>
  33. <li><a href="https://www.mga.org.mt/" rel="nofollow noopener" target="_blank"><img height="40" width="92" class="lazy" data-src="images/mga.png" alt="MGA" title="MGA"></a></li>
  34. <li><img height="40" width="126" class="lazy" data-src="images/ecogra.png" alt="eCOGRA" title="eCOGRA"></li>
  35. <li><a href="https://gaminglabs.com/" rel="nofollow noopener" target="_blank"><img height="46" width="86" class="lazy" data-src="images/GLI.png" alt="GLI" title="GLI"></a></li>
  36. </ul>
  37. <div class="footer__copyright">
  38. <?= $content['copyright'] ?? '' ?>
  39. </div>
  40. </div>
  41. </footer>