footer.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. if(Core::$show_footer_content) {
  3. ?>
  4. <footer class="my-3 d-print-none">
  5. <div class="container">
  6. <hr />
  7. <div class="row">
  8. <div class="col-md mb-3">
  9. <h5><?=htmlspecialchars(__("Navigation"))?></h5>
  10. <ul class="nav flex-column">
  11. <li><a href="/home"><?=htmlspecialchars(__("Home"))?></a></li>
  12. <?php
  13. if(!Core::$user) {
  14. ?>
  15. <li><a href="/services"><?=htmlspecialchars(__("Services"))?></a></li>
  16. <li><a href="/become-a-tester"><?=htmlspecialchars(__("Become a Tester"))?></a></li>
  17. <li><a href="/contact"><?=htmlspecialchars(__("Contact"))?></a></li>
  18. <li><a href="/jobs"><?=htmlspecialchars(__("Jobs"))?></a></li>
  19. <?php
  20. }
  21. else {
  22. ?>
  23. <li><a href="/contact"><?=htmlspecialchars(__("Contact"))?></a></li>
  24. <li><a href="/account"><?=htmlspecialchars(__("Account"))?></a></li>
  25. <?php
  26. }
  27. ?>
  28. </ul>
  29. </div>
  30. <div class="col-md mb-3">
  31. <h5><?=htmlspecialchars(__("Find Us"))?></h5>
  32. <ul class="nav flex-column">
  33. <li><i class="fab fa-fw fa-facebook"></i> <a href="https://www.facebook.com/checkpolicy" target="_blank">Facebook</a></li>
  34. <?php
  35. if(WHATSAPP) {
  36. ?>
  37. <li><i class="fab fa-fw fa-whatsapp"></i> <a href="https://api.whatsapp.com/send?phone=<?=WHATSAPP?>" target="_blank">WhatsApp</a></li>
  38. <?php
  39. }
  40. ?>
  41. <li>
  42. <i class="fab fa-fw fa-google-play"></i>
  43. <a href="https://play.google.com/store/apps/details?id=com.CheckPolicy" target="_blank">Google Play</a>
  44. </li>
  45. </ul>
  46. </div>
  47. <div class="col-md mb-3">
  48. <h5><?=htmlspecialchars(__("Our Location"))?></h5>
  49. <ul class="nav flex-column">
  50. <li><i class="fal fa-fw fa-map-marker"></i> <?=htmlspecialchars(str_replace("\n", ", ", ADDRESS))?></li>
  51. <li><i class="fal fa-fw fa-phone"></i> <a href="tel:<?=urlencode(PHONE)?>"><?=htmlspecialchars(PHONE)?></a></li>
  52. <li><i class="fal fa-fw fa-envelope"></i> <a href="mailto:admin@<?=DOMAIN?>">admin@<?=DOMAIN?></a></li>
  53. </ul>
  54. </div>
  55. </div>
  56. <div class="text-center">
  57. &copy; <?=date("Y")?> <?=APP_NAME?><br />
  58. <small>
  59. <a class="mx-1" href="/terms-and-conditions"><?=htmlspecialchars(__("Terms & Conditions"))?></a>
  60. <a class="mx-1" href="/privacy-policy"><?=htmlspecialchars(__("Privacy Policy"))?></a>
  61. </small>
  62. </div>
  63. </div>
  64. </footer>
  65. <?php
  66. }
  67. ?>
  68. <?php
  69. $scripts = Core::getScripts();
  70. foreach($scripts as $script) {
  71. HTML::script($script);
  72. }
  73. ?>
  74. <script src="https://maps.googleapis.com/maps/api/js?key=<?=GOOGLE_MAPS_API_KEY?>&amp;libraries=places&amp;callback=initialiseMaps" async defer></script>
  75. <?php
  76. if(GOOGLE_RECAPTCHA_SITE_KEY) {
  77. $url = "https://www.google.com/recaptcha/api.js";
  78. if(GOOGLE_RECAPTCHA_VERSION == 3) {
  79. $url .= "?render=" . GOOGLE_RECAPTCHA_SITE_KEY;
  80. }
  81. ?>
  82. <script type="text/javascript" src="<?=htmlspecialchars($url)?>"></script>
  83. <?php
  84. if(GOOGLE_RECAPTCHA_VERSION == 3) {
  85. ?>
  86. <script>
  87. grecaptcha.ready(function() {
  88. grecaptcha.execute('<?=GOOGLE_RECAPTCHA_SITE_KEY?>', {action: '<?=htmlspecialchars(Core::$controller)?>'})
  89. .then(function(token) {
  90. $(function() {
  91. $("form[data-recaptcha-form]").each(function() {
  92. $(this).append('<input type="hidden" name="g-recaptcha-response" value="' + token + '" />');
  93. });
  94. });
  95. });
  96. });
  97. </script>
  98. <?php
  99. }
  100. }
  101. ?>
  102. </body>
  103. </html>